Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: [OMPI users] Help with a strange error
From: jody (jody.xha_at_[hidden])
Date: 2010-10-28 11:59:22

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
function main

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/
Current language: auto; currently c
(gdb) where
#0 0x0016cb16 in PMPI_Comm_size () from /opt/openmpi/lib/
#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?
Thank You