This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Getting Stack Backtraces on ARM


Hi

I have been trying to get stack backtraces on the ARM platform.If I
compile my program with -funwind-tables compiler flag, I am able to
get a stack backtrace through backtrace() and related APIs. However I
observed that the backtrace() API does not work from a signal handler
of the SIGABRT signal.

Furtrher, I observerd that if a SIGTERM signal is received while
executing my application code, I can get a stack backtrace() from
SIGTERM signal handler. However, If the code is executing inside
glibc, and a SIGTERM is received, no meaningful backtrace() is
generated from the SIGTERM signal handler.

Can anyone suggest how to get this working. My glibc version is  2.13-12.12.

Regards
Abhinav


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]