[MPICH] Using mpiexec with gdg

Anthony Chan chan at mcs.anl.gov
Wed May 23 11:01:27 CDT 2007



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