<font class="Apple-style-span" face="'trebuchet ms', sans-serif">Thanks for the quick response. </font>Using ddd helped. <div>I had to run gdb with sudo because it wouldn't attach to the process.<br><br></div><div>
Thank you so much for the quick solution.</div><div>- Vikram</div><div><br><div class="gmail_quote">On Tue, May 24, 2011 at 10:42 AM, Darius Buntinas <span dir="ltr"><<a href="mailto:buntinas@mcs.anl.gov">buntinas@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">You shouldn't need sudo to run gdb. If you're running on a single machine, try doing this:<br>
mpiexec -n 2 ddd [program name]<br>
<br>
or if you don't have ddd installed:<br>
mpiexec -n 2 xterm -hold -e gdb [program name]<br>
<br>
-d<br>
<div><div></div><div class="h5"><br>
On May 24, 2011, at 10:29 AM, Vikram Ramanathan wrote:<br>
<br>
> Hi<br>
> 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.<br>
> 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:<br>
> /usr/bin/mpdroot: open failed for root's mpd conf filempiexec_vikram-Aspire-4820TG (__init__ 1214): forked process failed; status=255<br>
> What does this exactly mean? Is there a way to work around this?<br>
><br>
> Thank you,<br>
> Vikram Ramanathan<br>
> Graduate Student, ECE Dept,<br>
> Illinois Institute of Technology<br>
</div></div>> _______________________________________________<br>
> mpich-discuss mailing list<br>
> <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br>
_______________________________________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</blockquote></div><br></div>