Bug#637360: backtrace() doesn't work on armel
severity 637360 wishlist
retitle 637360 [arm] backtrace() requires unwind information
# unlikely to be fixed any time soon
tags 637360 + upstream wontfix
quit
Hi Stéphane,
Stéphane Glondu wrote:
> #include <execinfo.h>
>
> int main() {
> void *buffer[100];
> return backtrace(buffer, 100);
> }
>
> returns 0. It returns with a non-zero status (3 everywhere I've tried
> myself) on all other release architectures.
>
> Is that expected?
I'm surprised it works on mips. Building with -funwind-tables should
help.
This is a somewhat fundamental limitation, and very hard to work
around. See e.g. [1] for inspiration if you want to work on it.
Hope that helps,
Jonathan
[1] http://www.celinux.org/elc08_presentations/ELC2008%20-%20Back-tracing%20in%20MIPS-based%20Linux%20Systems.pdf
Reply to: