On 5/11/07, Tim Prins <firstname.lastname@example.org> wrote:
On Thursday 10 May 2007 07:19 pm, Code Master wrote:
> I am a newbie in openmpi. I have just compiled a program with -g -pg (an
> mpi program with a listener thread, which all MPI calls except
> initialization and MPI_Finalize are placed within) and I run it. However
> it crashes and I can't find any core dump, even I set the core dump max
> size to 100000 by
> ulimit -c 100000
You probably need to set the ulimit in your .bashrc to get a core dump, since
processes are (by default) started via ssh.
> Signal:11 info.si_errno:0(Success) si_code:1(SEGV_MAPERR)
> Failing at addr:(nil)
>  func:raytrace [0x8185581]
>  func:[0xffffe440]
>  func:raytrace [0x8056736]
>  func:/lib/tls/libpthread.so.0 [0x40063b63]
>  func:/lib/tls/libc.so.6(__clone+0x5a) [0x4014618a]
> *** End of error message ***
> I tried to use gdb and I ran:
> gdb mpirun
> run --hostfile ../hostfile n 16 raytrace -finputs/car.env
> when I type
> after it crashes, it just said "no stack"
This is because you are debugging mpirun, and not your application. Mpirun
runs to completion successfully, but it is your program which is crashing.
That's great, but how can I debug my program under mpi?