[MPICH] Using mpiexec with gdg

Christian Zemlin zemlinc at upstate.edu
Wed May 23 13:30:59 CDT 2007


Thank you, I had not compiled the program with -g.

Christian

----- Original Message ----- 
From: "Anthony Chan" <chan at mcs.anl.gov>
To: "Christian Zemlin" <zemlinc at upstate.edu>
Cc: <mpich-discuss at mcs.anl.gov>
Sent: Wednesday, May 23, 2007 12:01 PM
Subject: Re: [MPICH] Using mpiexec with gdg


>
>
> On Tue, 22 May 2007, Christian Zemlin wrote:
>
>> Dear MPICH experts,
>>
>> I am using MPICH2 on a Beowulf cluster, and I am trouble setting 
>> breakpoints.
>>
>> This is a typical interaction I have with gdb:
>>
>> testm at master:~/test> mpiexec -gdb -n 4 ./RNC
>> 0-3:  (gdb) break main
>> 0-3:  Note: breakpoint 1 also set at pc 0x402560.
>> 0-3:  Breakpoint 2 at 0x402560
>> 0-3:  (gdb) run
>> 0-3:  Continuing.
>> 0:
>> 0:  Program received signal SIGSEGV, Segmentation fault.
>> 0:  0x00002b49f7267ace in _int_free () from /lib64/libc.so.6
>> 0:  (gdb) 0:  (gdb)
>>
>> The problem is that although I set the breakpoint, the program does not 
>> stop.
>
> Did you recompile your program with -g ?
>
> Any other option is to run your program with ddd, i.e.
>
> mpiexec -n 4 ddd ./RNC
>
> A.Chan
> 




More information about the mpich-discuss mailing list