From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8394 Path: news.gmane.org!not-for-mail From: Alexander Monakov Newsgroups: gmane.linux.lib.musl.general Subject: Re: _Unwind_Backtrace crashes Date: Fri, 28 Aug 2015 17:46:20 +0300 (MSK) Message-ID: References: <20150828141602.GG3609@port70.net> 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 1440773196 23916 80.91.229.3 (28 Aug 2015 14:46:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Aug 2015 14:46:36 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8406-gllmg-musl=m.gmane.org@lists.openwall.com Fri Aug 28 16:46:36 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 1ZVKvK-0008U7-9U for gllmg-musl@m.gmane.org; Fri, 28 Aug 2015 16:46:34 +0200 Original-Received: (qmail 7601 invoked by uid 550); 28 Aug 2015 14:46:32 -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 7582 invoked from network); 28 Aug 2015 14:46:31 -0000 In-Reply-To: <20150828141602.GG3609@port70.net> User-Agent: Alpine 2.20 (LNX 67 2015-01-07) Xref: news.gmane.org gmane.linux.lib.musl.general:8394 Archived-At: On Fri, 28 Aug 2015, Szabolcs Nagy wrote: > * 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). You probably need -static-libgcc together with absence of .eh_frame_hdr to trigger the crash. Alexander