From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8533 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: Mon, 21 Sep 2015 09:57:19 +0200 Message-ID: <20150921075719.GV12087@example.net> References: <20150920063909.GO12087@example.net> <20150920163405.GK17773@brightrain.aerifal.cx> <20150920172237.GR12087@example.net> <20150920182728.GM17773@brightrain.aerifal.cx> <20150920193033.GS12087@example.net> <20150920194132.GO17773@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 1442822276 5886 80.91.229.3 (21 Sep 2015 07:57:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Sep 2015 07:57:56 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8545-gllmg-musl=m.gmane.org@lists.openwall.com Mon Sep 21 09:57:47 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 1Zdvys-0003rk-AS for gllmg-musl@m.gmane.org; Mon, 21 Sep 2015 09:57:46 +0200 Original-Received: (qmail 3250 invoked by uid 550); 21 Sep 2015 07:57:43 -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 3215 invoked from network); 21 Sep 2015 07:57:42 -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=1442822250; x=1444636651; bh=ASqxVWVNL 6eJyYg/vZZhV2ODgXrh9sXXU1AQDYylabY=; b=iXnxXCe6f6WiEUVwualuvOcce GelHDLiw+uNhP7Uew5/tFVvzyuwsCwK7/Yx914zGOP2tuqQmuh+Nh1CFA5n1DKuZ pBDPYt2W4yiXsOglcZbaS0KTw15NJjDcDASHu2M+gxIxIcYoztRhcv60EqtiIexD ZTE7zaBHxp+laCl9DA= X-Virus-Scanned: Debian amavisd-new at fripost.org Content-Disposition: inline In-Reply-To: <20150920194132.GO17773@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:8533 Archived-At: On Sun, Sep 20, 2015 at 03:41:32PM -0400, Rich Felker wrote: > > These _are_ several of the binaries of gcc-5.x which crash. It looks like > > the ones which crash (java-related ones?) are using pthread_getattr_np() > > while others do not. I did not though consequently check all of them. > > > > You can easily test this if you have got say a jv-convert binary of > > gcc-5.2.0, dynamically linked with musl and run this binary via the > > explicit loader. Yours and mine environments are different but I would > > not be surprised if the binary crashes for you too. > > I might get a chance to look later, but first thought: is jv-convert Unfortunately I could not get any useful backtrace from gdb, this would need more time. Hope you would make a simple crash test with //libc.so //jv-convert. > using boehm gc? I ask because boehm is one of the main users (iirc) of Libjava (and then presumably jv-convert too) involves boehm gc. > pthread_getattr_np and it's full of UB. It's possible that gcc 5 broke > some of the things it's doing, or that they were already broken but > didn't happen to crash before. I think boehm needs some patches to > work safely on musl but maybe not anymore. boehm needs some patches to be buildable but this is about removing harmful glibc-related include/define heuristics. For the record, there are no similar crashes of jv-convert or other binaries from an older gcc (4.2.3) built with the same musl. Rune