[ET Trac] [Einstein Toolkit] #443: Output a stack backtrace on a fatal error in a simulation

Einstein Toolkit trac-noreply at einsteintoolkit.org
Tue Jul 5 19:16:54 CDT 2011


#443: Output a stack backtrace on a fatal error in a simulation
--------------------------+-------------------------------------------------
  Reporter:  hinder       |       Owner:  eschnett
      Type:  enhancement  |      Status:  review  
  Priority:  major        |   Milestone:          
 Component:  Carpet       |     Version:          
Resolution:               |    Keywords:          
--------------------------+-------------------------------------------------

Comment (by rhaas):

 When trying this with gcc (4.6) I needed to #include <cstring>. I also
 added code to output the backtrace.xx,txt files to out_dir in case more
 than one run segfaults. Finally I seem to require -ldl in LDFLAGS
 otherwise it fails during link time with dladdr not found. -lcrypto (from
 OpenSSL) also allows me to link (I assume crypto links to dl), so maybe
 this never happened with the ET thorn lists. Since dladdr is not POSIX but
 a GNU extension, is there maybe an autoconf test for it? I have never used
 autoconf myself so have no idea.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/443#comment:5>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list