I am trying to connect a client MPI app to a server with MPI_Comm_connect. I get this error:

$ mpiexec -n 1 client 0.1.0:2000
Processor 0 (1193, Sender) initialized
Processor 0 connecting to '0.1.0:2000'
[local:01193] *** Process received signal ***
[local:01193] Signal: Bus error (10)
[local:01193] Signal code:  (0)
[local:01193] Failing at address: 0x74730000
[ 1] [0xbffff048, 0x00000000] (-P-)
[ 2] (ompi_parse_port + 0x8f) [0xbffff0b8, 0x0021030a]
[ 3] (MPI_Comm_connect + 0x18a) [0xbffff128, 0x002343ce]
[ 4] (main + 0x12c) [0xbffff3b8, 0x00001c7e]
[ 5] (_start + 0xd8) [0xbffff3f8, 0x00001b36]
[ 6] (start + 0x29) [0xbffff410, 0x00001a5d]
[ 7] [0x00000000, 0x00000002] (FP-)
[iMac:01193] *** End of error message ***
mpiexec noticed that job rank 0 with PID 1193 on node iMac.local exited on signal 10 (Bus error).


$ ompi_info
                Open MPI: 1.2.6
   Open MPI SVN revision: r17946
                Open RTE: 1.2.6
   Open RTE SVN revision: r17946
                    OPAL: 1.2.6
       OPAL SVN revision: r17946
                  Prefix: /opt/local/openmpi-1.2.6/
 Configured architecture: i386-apple-darwin8.11.1
...

My client code:

  while( 1 ) {
    printf("Processor %d connecting to '%s'\n", rank, argv[1]);
if( MPI_Comm_connect(myservice, MPI_INFO_NULL, 0, MPI_COMM_WORLD, &intercomm) == MPI_SUCCESS )
      break;
    sleep(1);
  }
  printf("Processor %d connected\n", rank);



Reply via email to