[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.2b3-282-g9950224

Service Account noreply at mpich.org
Wed Jul 22 14:31:51 CDT 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".

The branch, master has been updated
       via  995022474ca93f07095ea0c0585c589559205fe0 (commit)
      from  b2770c7e195d091f5710c8016cff5b39c4496832 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/995022474ca93f07095ea0c0585c589559205fe0

commit 995022474ca93f07095ea0c0585c589559205fe0
Author: Rob Latham <robl at mcs.anl.gov>
Date:   Wed Jun 24 14:45:40 2015 -0500

    Test case for segfault in spawn
    
    Ref: #2282
    
    Signed-off-by: Pavan Balaji <balaji at anl.gov>

diff --git a/test/mpi/spawn/Makefile.am b/test/mpi/spawn/Makefile.am
index 938271d..ce96518 100644
--- a/test/mpi/spawn/Makefile.am
+++ b/test/mpi/spawn/Makefile.am
@@ -39,6 +39,7 @@ noinst_PROGRAMS =         \
     disconnect3           \
     pgroup_connect_test   \
     pgroup_intercomm_test \
-    concurrent_spawns
+    concurrent_spawns     \
+    spawn-rootargs
 
 join_LDADD = $(LDADD) @socklib@ @nslib@
diff --git a/test/mpi/spawn/spawn-rootargs.c b/test/mpi/spawn/spawn-rootargs.c
new file mode 100644
index 0000000..abcf5b3
--- /dev/null
+++ b/test/mpi/spawn/spawn-rootargs.c
@@ -0,0 +1,38 @@
+#include <mpi.h>
+#include <stdio.h>
+
+/* Derived from mpi4py test case.  This test that tries to follow what the MPI
+ * standard says about spawning processes with arguments that should be
+ * relevant only at the root process.  See
+ * https://bitbucket.org/mpi4py/mpi4py/issues/19/unit-tests-fail-with-mpich-master#comment-19261971
+ * and
+ * https://trac.mpich.org/projects/mpich/ticket/2282
+ */
+
+int main(int argc, char *argv[])
+{
+    char *args[] = { "a", "b", "c", (char *) 0 };
+    int rank;
+    MPI_Comm master, worker;
+
+    MPI_Init(&argc, &argv);
+    MPI_Comm_get_parent(&master);
+
+    if (master == MPI_COMM_NULL) {
+        MPI_Comm_rank(MPI_COMM_WORLD, &rank);
+        MPI_Comm_spawn("./spawn-nullargs", args,        /*MPI_ARGV_NULL, */
+                       5, MPI_INFO_NULL, 0, MPI_COMM_SELF, &worker, MPI_ERRCODES_IGNORE);
+        MPI_Barrier(worker);
+        MPI_Comm_disconnect(&worker);
+        if (!rank)
+            printf(" No Errors\n");
+    }
+    else {
+        MPI_Barrier(master);
+        MPI_Comm_disconnect(&master);
+    }
+
+    MPI_Finalize();
+
+    return 0;
+}
diff --git a/test/mpi/spawn/testlist.in b/test/mpi/spawn/testlist.in
index 94c4d5b..083d47f 100644
--- a/test/mpi/spawn/testlist.in
+++ b/test/mpi/spawn/testlist.in
@@ -26,3 +26,4 @@ disconnect3 3
 concurrent_spawns 1
 pgroup_connect_test 4
 pgroup_intercomm_test 4
+spawn-rootargs 10  xfail=2282

-----------------------------------------------------------------------

Summary of changes:
 test/mpi/spawn/Makefile.am      |    3 ++-
 test/mpi/spawn/spawn-rootargs.c |   38 ++++++++++++++++++++++++++++++++++++++
 test/mpi/spawn/testlist.in      |    1 +
 3 files changed, 41 insertions(+), 1 deletions(-)
 create mode 100644 test/mpi/spawn/spawn-rootargs.c


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list