From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8393 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: _Unwind_Backtrace crashes Date: Fri, 28 Aug 2015 16:16:02 +0200 Message-ID: <20150828141602.GG3609@port70.net> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1440771395 25808 80.91.229.3 (28 Aug 2015 14:16:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Aug 2015 14:16:35 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8405-gllmg-musl=m.gmane.org@lists.openwall.com Fri Aug 28 16:16:31 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ZVKS5-0003Pq-Ra for gllmg-musl@m.gmane.org; Fri, 28 Aug 2015 16:16:22 +0200 Original-Received: (qmail 28221 invoked by uid 550); 28 Aug 2015 14:16:15 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 28196 invoked from network); 28 Aug 2015 14:16:14 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:8393 Archived-At: * Alexander Monakov [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