From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8378 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: _Unwind_Backtrace crashes Date: Thu, 27 Aug 2015 15:14:30 -0400 Message-ID: <20150827191430.GW32742@brightrain.aerifal.cx> 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 1440702902 12036 80.91.229.3 (27 Aug 2015 19:15:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Aug 2015 19:15:02 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8390-gllmg-musl=m.gmane.org@lists.openwall.com Thu Aug 27 21:14:49 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 1ZV2dK-0004S9-FB for gllmg-musl@m.gmane.org; Thu, 27 Aug 2015 21:14:46 +0200 Original-Received: (qmail 20003 invoked by uid 550); 27 Aug 2015 19:14:44 -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 19979 invoked from network); 27 Aug 2015 19:14:43 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:8378 Archived-At: On Thu, Aug 27, 2015 at 11:55:24AM -0700, Andy Lutomirski wrote: > This works on glibc. It aborts on musl on i386 using the latest git version. > > I suspect it's because whatever calls main isn't properly annotated, > but I don't know how to debug this without rebuilding gcc, which is > kind of a mess. I can't reproduce the crash. The program runs and produces the output: Unwind directly Unwind from signal handler In signal handler. Trying to unwind. OK I tried pre-CFI-patch and post-CFI-patch musl git, static and dynamic linking. Perhaps it's GCC version-specific? I'm using 4.7.3 on my i386 system. Rich