[mpich-discuss] Trouble running mpiexec with gdb
Vikram Ramanathan
vramana2 at iit.edu
Tue May 24 11:40:05 CDT 2011
Thanks for the quick response. Using ddd helped.
I had to run gdb with sudo because it wouldn't attach to the process.
Thank you so much for the quick solution.
- Vikram
On Tue, May 24, 2011 at 10:42 AM, Darius Buntinas <buntinas at mcs.anl.gov>wrote:
> 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
>
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110524/ca387fad/attachment.htm>
More information about the mpich-discuss
mailing list