Bug#637360: backtrace() doesn't work on armel
# Restoring original tags and severity
severity 637360 normal
tag 637360 - upstream
tag 637360 - wontfix
thanks
On Wed, Aug 10, 2011 at 06:15:59PM -0500, Jonathan Nieder wrote:
> 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.
>
Backtrace code for ARM EABI has been added in glibc 2.11 [1], and is
based on unwind information. -funwind-tables is therefore necessary to
get it working, and then backtrace() is fully functional.
I therefore don't see the need to tag this bug as wontfix. In my opinion
in can even be closed.
[1] http://sourceware.org/ml/libc-ports/2009-06/msg00012.html
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
Reply to: