<div dir="ltr">You want to do a 'where' on the second break, when your program is raising an abort signal...<div><br></div><div>A<br><br><div class="gmail_quote">On Fri, Aug 19, 2011 at 6:57 PM, Dominik Szczerba <span dir="ltr"><<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">(gdb) where<br>
#0 0x00007fae5b941590 in __nanosleep_nocancel () at<br>
<div class="im">../sysdeps/unix/syscall-template.S:82<br>
</div>#1 0x00007fae5b94143c in __sleep (seconds=0) at<br>
../sysdeps/unix/sysv/linux/sleep.c:138<br>
#2 0x000000000056cc48 in PetscSleep (s=10) at psleep.c:56<br>
#3 0x0000000000838887 in PetscAttachDebugger () at adebug.c:410<br>
#4 0x00000000005590a7 in PetscOptionsCheckInitial_Private () at init.c:392<br>
#5 0x000000000055e40e in PetscInitialize (argc=0x7ffff403debc,<br>
args=0x7ffff403deb0, file=0x0,<br>
help=0x0) at pinit.c:639<br>
#6 0x0000000000524a16 in PetscSolver::InitializePetsc<br>
(argc=0x7ffff403debc, argv=0x7ffff403deb0)<br>
at /home/dsz/src/framework/trunk/solve/PetscSolver.cxx:124<br>
#7 0x00000000004c404f in main (argc=4, argv=0x7ffff403e4c8)<br>
at /home/dsz/src/framework/trunk/solve/cd3t10mpi_main.cxx:526<br>
(gdb)<br>
<br>
PetscSolver.cxx:124:<br>
<br>
ierr = PetscInitialize(argc, argv, (char *)0, (char *)0); CHKERRQ(ierr);<br>
<br>
Hmmm, not very helpful.....<br>
<br>
The app runs on one cpu, but silently crashes on two.<br>
<br>
Any hints are very appreciated.<br>
<font color="#888888"><br>
Dominik<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
On Fri, Aug 19, 2011 at 5:49 PM, Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br>
> On Fri, 19 Aug 2011, Dominik Szczerba wrote:<br>
><br>
>> Hi,<br>
>><br>
>> I am starting my app in the debugger as:<br>
>><br>
>> mpiexec -np 2 sm3t4mpi run.xml -start_in_debugger -display :0.0<br>
>><br>
>> In the console I get:<br>
>><br>
>> [1]PETSC ERROR: MPI error 14<br>
>><br>
>> in the two open terminals with gdb I get:<br>
>><br>
>> 0x00007f2ecdd15590 in __nanosleep_nocancel () at<br>
>> ../sysdeps/unix/syscall-template.S:82<br>
>> 82 ../sysdeps/unix/syscall-template.S: No such file or directory.<br>
>> in ../sysdeps/unix/syscall-template.S<br>
>> (gdb)<br>
>><br>
>><br>
>> I type 'c' nonetheless and see:<br>
>><br>
>> (gdb) c<br>
>> Continuing.<br>
>> [New Thread 0x7f268e975700 (LWP 22388)]<br>
>><br>
>> Program received signal SIGABRT, Aborted.<br>
>> 0x00007f268f421d05 in raise (sig=6) at<br>
>> ../nptl/sysdeps/unix/sysv/linux/raise.c:64<br>
>> 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.<br>
>> in ../nptl/sysdeps/unix/sysv/linux/raise.c<br>
>><br>
>><br>
>><br>
>> How do I go on debugging?<br>
><br>
> what do you get for:<br>
><br>
> (gdb) where<br>
><br>
> Satish<br>
><br>
><br>
>><br>
>> Many thanks for any hints,<br>
>><br>
>> Dominik<br>
>><br>
><br>
><br>
</div></div></blockquote></div><br></div></div>