SL Baur <steve(a)xemacs.org> writes:
I don't know about that. There used to be code in XEmacs to
self-generate a C stack backtrace in Solaris. I took it out because
it had a tendency to crash in the middle of printing the backtrace.
The code I have in glibc does not have this problem. There are three
functions:
backtrace() to get the values
backtrace_symbols() to convert it into symbols
or
backtrace_symbols_fd() to immediately write the result to
an file descriptor
I would say that seeing these functions crashing is highly unlikely
unless the memory the libc uses gets clobbered. It is not a simple
minded implementation.
--
---------------. drepper at
gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at
cygnus.com `------------------------