Hi,

On Mon, Jul 30, 2012 at 02:02:50AM +0200, Michael Banck wrote:
> On Mon, Jul 30, 2012 at 01:40:49AM +0200, Michael Banck wrote:
> > nighthawk:/tmp# mpirun /bin/true
> > Segmentation fault

I have rebuilt mpich2 with the patch I mentioned and now it no longer
segfaults:

Preparing to replace mpich2 1.4.1-4 (using
.../tmp/mpich2_1.4.1-4.1_amd64.deb) ...
Unpacking replacement mpich2 ...
Preparing to replace libmpich2-3 1.4.1-4 (using
.../libmpich2-3_1.4.1-4.1_amd64.deb) ...
Unpacking replacement libmpich2-3 ...
Setting up libmpich2-3 (1.4.1-4.1) ...
Setting up mpich2 (1.4.1-4.1) ...
(unstable-amd64-sbuild)root@hartree:/home/mba/build# mpirun /bin/true 
(unstable-amd64-sbuild)root@hartree:/home/mba/build# echo $?
0
[...]
dpkg: warning: downgrading mpich2 from 1.4.1-4.1 to 1.4.1-4
(Reading database ... 11856 files and directories currently installed.)
Preparing to replace mpich2 1.4.1-4.1 (using
.../mpich2_1.4.1-4_amd64.deb) ...
Unpacking replacement mpich2 ...
dpkg: warning: downgrading libmpich2-3 from 1.4.1-4.1 to 1.4.1-4
Preparing to replace libmpich2-3 1.4.1-4.1 (using
.../libmpich2-3_1.4.1-4_amd64.deb) ...
Unpacking replacement libmpich2-3 ...
Setting up libmpich2-3 (1.4.1-4) ...
Setting up mpich2 (1.4.1-4) ...
(unstable-amd64-sbuild)root@hartree:/home/mba/build# mpirun /bin/true 
Segmentation fault

The patch is attached.


Cheers,

Michael
--- mpich2-1.4.1.orig/src/pm/hydra/utils/args/args.c
+++ mpich2-1.4.1/src/pm/hydra/utils/args/args.c
@@ -226,6 +226,9 @@ char *HYDU_get_abs_wd(const char *wd)
 {
     char *cwd, *retdir;
 
+    if (wd == NULL)
+        return NULL;
+
     if (wd[0] != '.')
         return (char *) wd;
 

Reply via email to