Stack backtracing

Andrew Morton morton@nortelnetworks.com
Tue Nov 2 02:10:00 GMT 1999


Andreas Jaeger wrote:
> 
> Have a look at the debug support in glibc 2.1.2 (catchsegv and
> libSegFault).  I'm not sure if it does everything you like but it's at
> least a starting point.

Thanks again, Andreas.  You guys make a Linux-only application very
tempting :-)

Do you think it would be hard to make the guts of this work on a
respectable subset of platforms?  Perhaps via libbfd?



BTW - a minor nit: there's a comment in front of
sysdeps/generic/segfault.c:catch_segfault() which says "don't call
malloc()", but it calls  __backtrace_symbols_fd().

Both the generic/ and generic/elf/ versions of __backtrace_symbols_fd()
call malloc().


More information about the Binutils mailing list