Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] bug with /bin/sh and /bin/ksh
From: Jonathan Vincent (jonathan.k.vincent_at_[hidden])
Date: 2010-04-29 11:24:29


Hi,

We had some trouble with a user using /bin/sh together with
openmpi/1.4.1 (Centos 5 on amd64 processors, intel compiler 11.1)

When spawning MPI processes on a different machine it gave errors such as

/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `/usr/bin/env
LD_LIBRARY_PATH=/pdc/vol/openmpi/1.4.1/intel/lib:/pdc/vol/i-compilers/11.1/icc/lib/intel64:/pdc/vol/i-compilers/11.1/ifort/lib/intel64
( test ! -r ./.profile || . ./.profile;
/pdc/vol/openmpi/1.4.1/intel/bin/orted -mca ess env -mca
orte_ess_jobid 284360704 -mca orte_ess_vpid 3 -mca orte_ess_num_procs
5 --hnp-uri "284360704.0;tcp://193.11.170.208:49530" )'

openMPI is making a malformed statement

i.e. a simpler version such as

sh -c '/usr/bin/env FOO=bar (echo hello)'
ksh -c '/usr/bin/env FOO=bar (echo hello)'

is not valid
sh -c '/usr/bin/env FOO=bar echo hello'
works.

This problem seems to be confined to the sh and ksh logic in

openmpi-1.4.1/orte/mca/plm/rsh/plm_rsh_module.c

Jon