Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 28 Aug 2015 17:46:20 +0300 (MSK)
From: Alexander Monakov <amonakov@...ras.ru>
To: musl@...ts.openwall.com
Subject: Re: _Unwind_Backtrace crashes



On Fri, 28 Aug 2015, Szabolcs Nagy wrote:

> * Alexander Monakov <amonakov@...ras.ru> [2015-08-28 16:21:08 +0300]:
> > I was able to reproduce this using the musl-gcc wrapper on a glibc-based
> > system.  I tracked it down to dl_iterate_phdr callback in libgcc failing to
> > find PT_GNU_EH_FRAME header in this loop:
> > 
> > https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=libgcc/unwind-dw2-fde-dip.c;h=137dced8d558b9f786d935c8e4ab73200fb6409d;hb=HEAD#l267
> > 
> > And indeed adding -Wl,--eh-frame-hdr to the musl-gcc command line fixes it.
> > 
> 
> here the test works even without .eh_frame_hdr with gcc-5.1 (alpine, musl based toolchain).

You probably need -static-libgcc together with absence of .eh_frame_hdr to
trigger the crash.

Alexander

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.