From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8392 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 16:21:08 +0300 (MSK) Message-ID: 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 1440768094 2121 80.91.229.3 (28 Aug 2015 13:21:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Aug 2015 13:21:34 +0000 (UTC) To: "musl@lists.openwall.com" Original-X-From: musl-return-8404-gllmg-musl=m.gmane.org@lists.openwall.com Fri Aug 28 15:21:34 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 1ZVJas-0003Qt-TZ for gllmg-musl@m.gmane.org; Fri, 28 Aug 2015 15:21:23 +0200 Original-Received: (qmail 13861 invoked by uid 550); 28 Aug 2015 13:21:21 -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 13835 invoked from network); 28 Aug 2015 13:21:20 -0000 In-Reply-To: User-Agent: Alpine 2.20 (LNX 67 2015-01-07) Xref: news.gmane.org gmane.linux.lib.musl.general:8392 Archived-At: 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. Normally this ld option is present in built-in specs, but musl-gcc's specs don't set it. Alexander