NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/46490: libexecinfo only wokrs on amd64



The following reply was made to PR toolchain/46490; it has been noted by GNATS.

From: christos%zoulas.com@localhost (Christos Zoulas)
To: gnats-bugs%NetBSD.org@localhost, toolchain-manager%netbsd.org@localhost, 
        gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Cc: 
Subject: Re: toolchain/46490: libexecinfo only wokrs on amd64
Date: Mon, 28 May 2012 09:06:19 -0400

 On May 28, 10:50am, martin%NetBSD.org@localhost (martin%NetBSD.org@localhost) 
wrote:
 -- Subject: toolchain/46490: libexecinfo only wokrs on amd64
 
 | The new libexecinfo seems to be implemented using a technique that is gcc
 | specific and only works (with default compile flags) on amd64, where
 | .eh_frame_hdr and .eh_frame sections are generated by default.n
 
 I thought that using _Unwind_Foo should work on every arch.
 
 | The corresponding test case seems to fail everywhere else right now.
 | 
 | The _Unwind_Backtrace() call calls back into "tracer" once, the t->n value
 | is still (size_t)~0U so this frame is skipped, then unwinding terminates
 | with reason 5 (end of stack) and zero frames are returned.
 | 
 | >How-To-Repeat:
 | Run t_backtrace for example on sparc64.
 | 
 | >Fix:
 | I am not sure this is fixable, may need some other technique.
 
 Try USE_BUILTIN=yes in the Makefile.
 
 christos
 


Home | Main Index | Thread Index | Old Index