[mpich-discuss] Trouble running mpiexec with gdb

Darius Buntinas buntinas at mcs.anl.gov
Tue May 24 10:42:10 CDT 2011


You shouldn't need sudo to run gdb.  If you're running on a single machine, try doing this:
    mpiexec -n 2 ddd [program name]

or if you don't have ddd installed:
    mpiexec -n 2 xterm -hold -e gdb [program name]

-d

On May 24, 2011, at 10:29 AM, Vikram Ramanathan wrote:

> Hi
>   I'm using petsc-dev on a Linux (Ubuntu 10.10 64-bit) machine with 2 processors. I was hoping to debug some code when running it on two processors. 
>   The problem is that gdb needs root permissions to run. I can use/run mpiexec fine by itself, but when I do something like sudo mpiexec -n 2 [program name] [parameters] -start_in_debugger, I get the following error:
> /usr/bin/mpdroot: open failed for root's mpd conf filempiexec_vikram-Aspire-4820TG (__init__ 1214): forked process failed; status=255
>   What does this exactly mean? Is there a way to work around this?
> 
> Thank you,
> Vikram Ramanathan
> Graduate Student, ECE Dept,
> Illinois Institute of Technology
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss



More information about the mpich-discuss mailing list