#1100: Correct backtrace generation in Carpet
Reporter:Erik Schnetter
Status:open
Milestone:
Version:
Type:bug
Priority:minor
Component:Carpet

Changes (by Roland Haas):

status:open (was new)

The file backtrace.cc in CarpetLib does not #include <cctk.h>; hence all HAVE_BACKTRACE* macros are undefined, and only basic backtraces are generated.

Correcting this is non-trivial, since the backtrace code is arcane, is written in C, probably expects glibc, contains (I'm fairly certain) memory allocation errors, and doesn't build e.g. on Mac OSX. The code also spends an inordinate amount of time allocating and freeing string buffers, which should be replaced by simply using C++ streams.

The backtrace code also probably requires a few more autoconf tests, so that it can be disabled where it does not work.

Keyword:

Comment (by Roland Haas):

@Erik Schnetter @Ian Hinder Please review.

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/1100/correct-backtrace-generation-in-carpet