I have a (rather complex) OpenMPI application which works nicely.
In the main file i have the function main(), in which MPI_Comm_size()
and MPI_Comm_rank() are being called.
However, when i add a function check() to the main file, process 0 will
crash in PMPI_Comm_size(), even when the function check() is not called!
All other processes hang inside PMPI_Init().
The crash also occurs when the function check() is written after the
The gdb stack trace for process 0:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208715568 (LWP 10072)]
0x0016cb16 in PMPI_Comm_size () from /opt/openmpi/lib/libmpi.so.0
Current language: auto; currently c
#0 0x0016cb16 in PMPI_Comm_size () from /opt/openmpi/lib/libmpi.so.0
#1 0x080c379d in main (iArgC=14, apArgV=0xbfc60bc4) at TDMain.cpp:22
Missing separate debuginfos, use: debuginfo-install gcc.i386 zlib.i386
I am using OpenMPI 1.4.2
Has anybody got an idea how i could find the problem?