This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Getting Stack Backtraces on ARM
- From: Abhinav Ratna <abhinav dot ratna at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Mon, 21 Apr 2014 17:30:45 -0700
- Subject: Getting Stack Backtraces on ARM
- Authentication-results: sourceware.org; auth=none
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