DA:
Sometimes I may encounter crashing when using PETSc, it doesn’t happen always.
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: Caught
signal number 15
Terminate: Somet process (or the batch system) has told this process to end
[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
[0]PETSC ERROR: or see http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html#Signal[0]PETSC ERROR: or try
http://valgrind.org on GNU/linux
and Apple Mac OS X to find memory corruption errors
[0]PETSC ERROR: configure using --with-debugging=yes, recompile, link, and run
[0]PETSC ERROR: to get more information on the crash.
[0]PETSC ERROR: --------------------- Error Message ------------------------------------
[0]PETSC ERROR: Signal received!
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: Petsc Release Version 3.1.0, Patch 8, Thu Mar 17 13:37:48 CDT 2011
[0]PETSC ERROR: See docs/changes/index.html for recent updates.
[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
[0]PETSC ERROR: See docs/index.html for manual pages.
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: Unknown Name on a linux-gnu named r0leaf17 by tachyon Thu Aug 4 04:04:19 2011
[0]PETSC ERROR: Libraries linked from /home/dshao/dev_t2k/third_party/OOQP/OOQP-0.99.19/extras/petsc-3.1-p8/linux-gnu-c-debug/lib
[0]PETSC ERROR: Configure run at Thu Apr 21 18:09:19 2011
[0]PETSC ERROR: Configure options --with-mpi=0 --with-debugging=0 -with-log=0 -with-info=0
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: User provided function() line 0 in unknown directory unknown file
Do you happen to know the possible cause?
I also have a question about the usage of “PetscInitialize” & “PetscFinalize”. I can’t totally understand them from the manual.
Now, I wrote it as:
Int main(int argc, char **argv)
{
PetscInitialize(0, 0, 0, 0 );
VerifyApp app(argc, argv);
app.Initialize();
app.Run();
PetscFinalize();
return 0;
}
Then, built a binary, say “verify”, and executed “verify” on a server first, then, started another “verify” on client by server.
The program ran at client side can be multiple processes and multiple threads.
Is my usage correct?
Your answer is appreciated.
Thanks,