On Sat, Aug 6, 2011 at 2:22 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sat, 6 Aug 2011, Dominik Szczerba wrote:<br>
<br>
> >> Also, run with -start_in_debugger and get a stack trace when it fails.<br>
> >> Matt<br>
> ><br>
> > I get:<br>
> ><br>
> > [0]PETSC ERROR: PETSC: Attaching gdb to<br>
> > /home/dsz/build/framework-debug/trunk/bin/sm3t4mpi of pid 12238 on<br>
> > display localhost:11.0 on machine nexo<br>
><br>
> OK after long waiting all 12 gdb windows showed up. Starting the app<br>
> with its args leads to:<br>
><br>
> Reading symbols from /home/dsz/build/framework-debug/trunk/bin/sm3t4mpi...done.<br>
> Attaching to program:<br>
> /home/dsz/build/framework-debug/trunk/bin/sm3t4mpi, process 12241<br>
> ptrace: No such process.<br>
> /home/dsz/data/test-solve/SM/box/run3/12241: No such file or directory.<br>
> (gdb) r run.xml<br>
> Starting program: /home/dsz/build/framework-debug/trunk/bin/sm3t4mpi run.xml<br>
> [Thread debugging using libthread_db enabled]<br>
> [cli_3]: PMIU_parse_keyvals: unexpected key delimiter at character 54 in cmd<br>
> [cli_3]: parse_kevals failed -1<br>
<br>
<br>
</div>The application is already started with -start_in_debugger. So you don't do 'r run.xml'<br>
<br>
You place a break point at relavent locations - and then do 'c' for continue<br></blockquote><div><br></div><div>Satish is right. Also, at this point you can set the arguments using</div><div><br></div><div> set args run.xml</div>
<div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
(gdb) b PetscError<br>
(gdb) c<br>
<font color="#888888"><br>
Satish</font></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>