[ET Trac] [Einstein Toolkit] #443: Output a stack backtrace on a fatal error in a simulation
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Wed Jun 1 06:59:25 CDT 2011
#443: Output a stack backtrace on a fatal error in a simulation
-------------------------+--------------------------------------------------
Reporter: hinder | Owner: eschnett
Type: enhancement | Status: new
Priority: major | Milestone:
Component: Carpet | Version:
Keywords: |
-------------------------+--------------------------------------------------
When a Cactus simulation aborts with a signal, it is often difficult to
determine which part of the code led to the problem. The attached patch
registers a signal handler on Carpet startup for signals 11 and 6
(segmentation fault and abort, e.g. from assert()) which outputs a stack
backtrace from each process to a file, including demangling symbol names.
It uses some low-level and possibly unofficial APIs, and is likely not
completely portable. However, I have tested it on Mac OS (gcc) and Linux
(intel) and it works in those places.
Part of this code was contributed by Justin Luitjens at the Carpet
developers' workshop in summer 2010.
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/443>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list