From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8524 Path: news.gmane.org!not-for-mail From: u-wsnj@aetey.se Newsgroups: gmane.linux.lib.musl.general Subject: Re: pthread_getattr_np() vs explicit runtime loader Date: Sun, 20 Sep 2015 19:22:37 +0200 Message-ID: <20150920172237.GR12087@example.net> References: <20150920063909.GO12087@example.net> <20150920163405.GK17773@brightrain.aerifal.cx> 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 1442769811 13743 80.91.229.3 (20 Sep 2015 17:23:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Sep 2015 17:23:31 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8536-gllmg-musl=m.gmane.org@lists.openwall.com Sun Sep 20 19:23:17 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 1ZdiKM-0006kR-RK for gllmg-musl@m.gmane.org; Sun, 20 Sep 2015 19:23:02 +0200 Original-Received: (qmail 20164 invoked by uid 550); 20 Sep 2015 17:23:00 -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 20142 invoked from network); 20 Sep 2015 17:23:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fripost.org; h= in-reply-to:content-disposition:content-type:content-type :mime-version:references:message-id:subject:subject:from:from :date:date; s=20140703; t=1442769768; x=1444584169; bh=6f5+d0CHf 80E7HyOEOkwYjjW4pQZyzxKEg5fzjf1nss=; b=kw4smgkqUzHLgtEamUEkZyrq7 Vpwpe0IBgDCn85F/O7IWr2jz81OikjbYoUtTEGRYixa1xq0sCfzedhTRZNrJv2X3 HfmgsKBzZRO2RvkFzbG3QFSLMwMghS5lGCl9ksZdyOC/iha5+ZaZHz2VQq5j5mub rZ3qmhwYnk93W8xKCQ= X-Virus-Scanned: Debian amavisd-new at fripost.org Content-Disposition: inline In-Reply-To: <20150920163405.GK17773@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:8524 Archived-At: On Sun, Sep 20, 2015 at 12:34:05PM -0400, Rich Felker wrote: > On Sun, Sep 20, 2015 at 08:39:09AM +0200, u-wsnj@aetey.se wrote: > > Would you comment on whether this guess is correct and hopefully make > > pthread_getattr_np() work even with the explicit loader? > > I reviewed the code and there are no assumptions about how the program > is loaded made there. And the original test program I used to test > pthread_getattr_np runs fine both normally and with an explicit loader > command. So I think the actual problem must be elsewhere, likely in > whatever the application is doing right after pthread_getattr_np. Thanks for checking, sorry that the hypothesis seems to be wrong. May I run a test with that program of yours? > What triggered the crash to start happening? Upgrading musl? Upgrading It is the behaviour of gcc 5. This was the case when I built 5.1.0 but 5.2.0 was supposed to be more compatible with musl, so I did not research 5.1.0. Now gcc 5.2.0 behaves identically in this respect. > gcc? Have you used gdb to get a backtrace and see where the program > actually crashes? Not yet, going to. Rebuilding gcc with '-g', this takes some time. Rune