Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Mostyn Lewis (Mostyn.Lewis_at_[hidden])
Date: 2007-04-23 20:38:38


After 1.3a1r14155 (not sure how much after but certainly currently) you
get a SEGV if you use an unknown shell (I use something called ksh93).

Error is at lines 576->580

         if ( i == ORTE_PLS_RSH_SHELL_UNKNOWN ) {
             opal_output(0, "WARNING: local probe returned unhandled shell:%s assuming bash\n",
                         orte_pls_rsh_shell_name[i]);
             local_sh = true;
         }

The lines

  opal_output(0, "WARNING: local probe returned unhandled shell:%s assuming bash\n",
              orte_pls_rsh_shell_name[i]);

should be

  opal_output(0, "WARNING: local probe returned unhandled shell:%s assuming bash\n",
              sh_name);

At 1.3a1r14155, when the i index was at ORTE_PLS_RSH_SHELL_UNKNOWN there was an
extra "unknown" shell in orte_pls_rsh_shell_name[]

static const char * orte_pls_rsh_shell_name[] = {
     "bash",
     "zsh",
     "tcsh", /* tcsh has to be first otherwise strstr finds csh */
     "csh",
     "ksh",
     "sh",
     "unknown"
};

which prevented the SEGV but you still didn't get your true shell name.

Regards,
Mostyn