From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8618 Path: news.gmane.org!not-for-mail From: u-uy74@aetey.se Newsgroups: gmane.linux.lib.musl.general Subject: musl bug or not, real or not? (Was: [musl] Update: [musl] pthread_getattr_np() vs explicit runtime) loader Date: Tue, 6 Oct 2015 13:34:51 +0200 Message-ID: <20151006113451.GI28311@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> <20150930154337.GC13149@example.net> <20150930203548.GF13149@example.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 1444131338 16957 80.91.229.3 (6 Oct 2015 11:35:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Oct 2015 11:35:38 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8630-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 06 13:35:21 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 1ZjQWf-0008Lx-Hv for gllmg-musl@m.gmane.org; Tue, 06 Oct 2015 13:35:21 +0200 Original-Received: (qmail 28335 invoked by uid 550); 6 Oct 2015 11:35:19 -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 28311 invoked from network); 6 Oct 2015 11:35:19 -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=1444131307; x=1445945708; bh=ApxfDPgFk iEHYo5QE1Pks6tPYFIMw1rpzVIDNL92UAQ=; b=Vgx7V0uY6bVuBr+0SH++FTTPA 1a4goL2DMKROcyPJnHYojMHdpjDeNVYvI9WVxmNmsIngGq1ecvv8dqBS/xwkO1dS OopAvWlnL42MVIKAUxDXR5PsFyx9l2qVrABFp1S0aA/mzrtwplM8sCOu8o6fH+s5 eihh57zF9awT5zrybg= X-Virus-Scanned: Debian amavisd-new at fripost.org Content-Disposition: inline In-Reply-To: <20150930203548.GF13149@example.net> Xref: news.gmane.org gmane.linux.lib.musl.general:8618 Archived-At: Either nobody cares or nobody has a gcc-5.x toolchain built with musl? Wondering. gcc-5 looks like a case important enough to care. Rune On Wed, Sep 30, 2015 at 10:35:48PM +0200, u-uy74@aetey.se wrote: > On Wed, Sep 30, 2015 at 05:43:37PM +0200, u-uy74@aetey.se wrote: > > > > I still think that the crashes are caused by errors > > while guessing the stack placement in pthread_getattr_np(), > > simply because of the kernel doing something else than usual. > > I can reproduce the problem and this looks like something > to fix or at least work around, either in gcc or in musl. > > Running with the implicit loader works, but using the explicit one yields: > > ---------------------------------------------------------------- > # cat /proc/sys/kernel/randomize_va_space > 2 > > $ /pathtomusllibc.so --library-path /pathtogcc-5libs /pathto/jv-convert --help > Usage: jv-convert [OPTIONS] [INPUTFILE [OUTPUTFILE]] > > Convert from one encoding to another. > > --encoding FROM > --from FROM use FROM as source encoding name > --to TO use TO as target encoding name > -i FILE read from FILE > -o FILE print output to FILE > --reverse swap FROM and TO encodings > --help print this help, then exit > --version print version number, then exit > > `-' as a file name argument can be used to refer to stdin or stdout. > > # echo 0 > /proc/sys/kernel/randomize_va_space > > $ /pathtomusllibc.so --library-path /pathtogcc-5libs /pathto/jv-convert --help > Segmentation fault > ---------------------------------------------------------------- > > Would anybody try this and confirm or refute? > > Rune