Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150828141602.GG3609@port70.net>
Date: Fri, 28 Aug 2015 16:16:02 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: _Unwind_Backtrace crashes

* 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).

but i see the same failure with gcc-4.9.2 (debian, glibc based) and then --eh-frame-hdr fixes it.

> Normally this ld option is present in built-in specs, but musl-gcc's specs
> don't set it.
> 
> 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.