From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9342 Path: news.gmane.org!not-for-mail From: Hugues Bruant Newsgroups: gmane.linux.lib.musl.general Subject: Re: dynlink.c: bug in reclaim_gaps leading to segfault in __libc_exit_fini Date: Wed, 17 Feb 2016 01:16:55 -0500 Message-ID: References: <20160216215550.GC9915@port70.net> <20160217002123.GB9349@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bae4532595f46052bf13225 X-Trace: ger.gmane.org 1455689833 22255 80.91.229.3 (17 Feb 2016 06:17:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Feb 2016 06:17:13 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9355-gllmg-musl=m.gmane.org@lists.openwall.com Wed Feb 17 07:17:11 2016 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 1aVvQE-0004qv-6m for gllmg-musl@m.gmane.org; Wed, 17 Feb 2016 07:17:10 +0100 Original-Received: (qmail 5807 invoked by uid 550); 17 Feb 2016 06:17:07 -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 5784 invoked from network); 17 Feb 2016 06:17:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aerofs-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=fDNzER2URoYAUZNUiHpLHPWJFN3MjpdcfDR1lROssXc=; b=ADNbpJMOnEyxyl29+kPwNwWV7itie/ktOK7vxVgEOnYL3yyOTzSFBmnqoDscoUKmlk eeyDo9xqgidoF1qz97q13+D8HauXjwP7Ac6BvKuC/2Bk+mSkj/ZhlreTWdaMUDpE/RgT N+JVUyzKsUgKZ9jWBuqPz1GCj/bV8OdvkdpBuMn59k1S3OlcJa23MUr22MpEx5KR82I3 4om+xcSavMoTHG3Nt2ITEDfhVqcQB1p9XD6mxlkSnuxWezI7CyAXGlmHjF4FOtgQIL8n ydYt14/sQZxrybLy/4V5y0rplQFWvYUgNENM8Vu5P+Z2h2c/8GzE0jlMVYfs/wGBsOO4 iwEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=fDNzER2URoYAUZNUiHpLHPWJFN3MjpdcfDR1lROssXc=; b=RHnb8iz8XHkqUsD+vjU79YTvEvnK/WFIiSV9tyNUHfLYMYLiBsI9JuqmdfMzRFXkXg kBSgARq+wHqXQ+8g3Dc70oGtA9I7Kxi3gKJfS64yLp9EeQnf3DRi+bG+R8PemX/jx97s 6NHIZMyHC8oCdXPCm0y3HOS3qfJpFeKv257svHbbphI67CMwLFNlqIURki/oIWydaQeL +yEFglRPvYRQlnqDqdJdZbU1a7GYwhXnByJ0Z0FHnMib2WLx8jpKXd6nTxelajufFuwk YeXiLhFM7ojfM9hqye9YV/a4pETnWcTBjNxGyJEmElAbhJYB+72tekIF74vl0cd5Yn0M K11w== X-Gm-Message-State: AG10YOTFsp7nTQBpcaQRS39JHOypmEj3FqW/OFglY9mlgjZMc6XC3Pci9AyBpbdei05y7cjEaWlllbITifQdx050 X-Received: by 10.194.203.5 with SMTP id km5mr29609978wjc.172.1455689815375; Tue, 16 Feb 2016 22:16:55 -0800 (PST) In-Reply-To: <20160217002123.GB9349@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:9342 Archived-At: --047d7bae4532595f46052bf13225 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I packaged a small reproducer in a docker image: docker run huguesb/dmg-musl-crash-repro dmg build /repro.dmg.hfs /repro.dmg Should successfully create a dmg from the hfs file and return exit code 139 due to the segfault in __libc_exit_fini The failure is 100% reproducible on all the hosts I've tried so far, which gives me some confidence that it's not a bad interaction with the kernel: - boot2docker 1.10.1 with kernel 4.1.17 / docker 1.10.1 / aufs - CoreOS 899.6.0 with kernel 4.3.3 / docker 1.9.1 / overlayfs - Ubuntu 14.04 with kernel 3.19.0-43 / docker 1.9.1 / aufs - Alpine 3.3.1 with kernel 4.1.15 / docker 1.9.1 / overlayfs Although my main use case is for this to run inside a container, for completeness I copied the hfs file out of the docker image on the alpine host (docker cp). The issue still manifests, which rules out any bad interaction with docker. Please let me know if there's anything more I can do. Regards, Hugues =E2=80=8B --047d7bae4532595f46052bf13225 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I packaged a small reproducer in a docker image:

<= /div>docker run huguesb/dmg-musl-crash-repro dmg build /repro.dmg.hfs /repr= o.dmg

Should successfully create a dmg from the hfs file= and return exit code 139 due to the segfault in __libc_exit_fini

The failure is 100% reproducible on all the hosts I've = tried so far, which gives me some confidence that it's not a bad intera= ction with the kernel:
=C2=A0 - boot2docker 1.10.1 with kernel 4.= 1.17 / docker 1.10.1 / aufs
=C2=A0 - CoreOS 899.6.0 with kernel= =C2=A04.3.3 / docker 1.9.1 / overlayfs
=C2=A0 - Ubuntu 14.04 with= kernel=C2=A03.19.0-43 / docker 1.9.1 / aufs
=C2=A0 - Alpine 3.3.= 1 with kernel 4.1.15 / docker 1.9.1 / overlayfs

Al= though my main use case is for this to run inside a container, for complete= ness I copied the hfs file out of the docker image on the alpine host (dock= er cp). The issue still manifests, which rules out any bad interaction with= docker.

Please let me know if there's anythin= g more I can do.

Regards,
Hugues
= =E2=80=8B
--047d7bae4532595f46052bf13225--