From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12096 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: diffutils crash in malloc Date: Sun, 12 Nov 2017 18:05:41 -0500 Message-ID: <20171112230541.GY1627@brightrain.aerifal.cx> References: <5A08C239.4070003@adelielinux.org> <5A08CA06.6070701@adelielinux.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1510527961 11816 195.159.176.226 (12 Nov 2017 23:06:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Nov 2017 23:06:01 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-12112-gllmg-musl=m.gmane.org@lists.openwall.com Mon Nov 13 00:05:51 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1eE1K2-0002Wu-Nc for gllmg-musl@m.gmane.org; Mon, 13 Nov 2017 00:05:50 +0100 Original-Received: (qmail 10022 invoked by uid 550); 12 Nov 2017 23:05:56 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 10000 invoked from network); 12 Nov 2017 23:05:55 -0000 Content-Disposition: inline In-Reply-To: Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:12096 Archived-At: On Sun, Nov 12, 2017 at 11:38:58PM +0100, Tobias Koch wrote: > Hi, > > I will try that. In the mean time, I found this piece of weirdness > in the readelf output: > > 0x0000000000000001 (NEEDED) Shared library: > [/tools/lib/libc.so] > 0x0000000000000001 (NEEDED) Shared library: [libc.so] > 0x000000000000001d (RUNPATH) Library runpath: [/tools/lib] > > Apart from being a silly duplicate, can this cause problems? Having multiple copies of libc in the program can definitely cause serious problems, and crashing in malloc seems like a very likely symptom. However 1.1.17 introduced logic to prevent this from happening. Can you describe what sort of build procedure you're using that's causing /tools/lib to appear here? And can you strace the crashing command and attach the strace output? That should show what's happening with shared library loading. Rich > On 12/11/2017 23:24, A. Wilcox wrote: > >[...] > >Ah, okay. We're using diffutils 3.6 here. Not sure if they changed > >behaviour between the point releases. Can you try 3.6 and check if > >you see the same behaviour? If so, there may be something specific to > >your environment causing it (build flags for either musl or diffutils, > >for instance). > > > >[...]