From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12382 Path: news.gmane.org!.POSTED!not-for-mail From: Andre Renaud Newsgroups: gmane.linux.lib.musl.general Subject: Re: seg fault at src/string/strlen.c:15 Date: Wed, 24 Jan 2018 02:33:42 +0000 Message-ID: References: <20180124022743.GX1627@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c03caac86100805637c7ee4" X-Trace: blaine.gmane.org 1516761130 7371 195.159.176.226 (24 Jan 2018 02:32:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 24 Jan 2018 02:32:10 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-12398-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jan 24 03:32:05 2018 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 1eeAr7-0001bz-2A for gllmg-musl@m.gmane.org; Wed, 24 Jan 2018 03:32:05 +0100 Original-Received: (qmail 24408 invoked by uid 550); 24 Jan 2018 02:34:06 -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 24390 invoked from network); 24 Jan 2018 02:34:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ignavus-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=lZKBB/cs1oIx4QxEcrUexva201O3AoceiZA2CEMxntg=; b=2TjlM8euBfi0O1rwX5kBK1y7jzpxcAWiuLsjdDgyGutUVReotlKh54Dtv4U+a9CytR is6lkEi7zEO3cae2BrUFIyz061szOfr249130JtfR6DaA+/O9hijzr62UVBQsPOY3ot4 mWzwxSydPw07zXgB4nMiHyV0C3Lkspu9hx37gTAk3F5sWFGsqrg7SYQwkGiBUCSP4GSq nnIkDjFUmgssjeFnUU9ieQYPiei2/UeUcr3Pn2Z1MPrYGaTSDfQNfozM8LqZhq8wUHsy 6j2xtGkhp5Tn1PKxY/JuLz8ZD0HN+QO4QNIIxZY6CGkxdD6e/GDP320ys34g4YKahaVj 2pVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=lZKBB/cs1oIx4QxEcrUexva201O3AoceiZA2CEMxntg=; b=c6gISeKigNeTM8nraRhYGoV00yuizg3rdU17jghPZjbEeKuCvu3NbnauYDFA0TOKod f5CaVNbzPtK05wXQZLLFJjrT7i1eQrxJbIiuSQx1U0DOaHUyt5iSGXS+KlQYpmdOf0FG OXPgSrhKg74cDQ1ZU4mPoqp4Bhu7ABDAAJMThm0KLx8YlLwEfBx5VyHs7XuVEwCw5lo4 LL4UgiXJ75WxEarTQX9qhRkxLaI4w4R/EUwGLodUpxr4OG5yTjF4z32qUZXgDtmjmASG uLuZY+lE/9lr/liDYbRg548kkNNmt2GOI/8BVxbBYT0PPRGFLafKvsySeYhUEuYmV8od gAnw== X-Gm-Message-State: AKwxytcfs4eHeEVFazesq1sJRHvQ2zqacoE4dnFqmRRXObCjfqfZL8rc cvdTdU7gAgZwShubJoNHOIa92pzJ4XTL5Rrm8VtLDY8v X-Google-Smtp-Source: AH8x226c6a5JSb8KptqbIBc01j3QGlRpCYR40i7MoxXWvJ1rohFk/DZbv/s7UuXT04vpEsyflaGueaYa93NCzAH5Otw= X-Received: by 10.36.160.5 with SMTP id o5mr6624659ite.79.1516761233356; Tue, 23 Jan 2018 18:33:53 -0800 (PST) In-Reply-To: <20180124022743.GX1627@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:12382 Archived-At: --94eb2c03caac86100805637c7ee4 Content-Type: text/plain; charset="UTF-8" On Wed, 24 Jan 2018 at 15:28 Rich Felker wrote: > On Tue, Jan 23, 2018 at 05:07:32PM -0800, Po-yi Wang wrote: > > (gdb) run --version > > Starting program: /tmp/build/make-4.1/make-4.1 --version > > > > Program received signal SIGSEGV, Segmentation fault. > > strlen (s=0x0) at src/string/strlen.c:15 > > 15 for (w = (const void *)s; !HASZERO(*w); w++); > > (gdb) > > This means make is calling strlen(0), so the bug is somewhere else -- > in whatever causing the string pointer passed to strlen to be a null > pointer. Can you show a full backtrace (bt) rather than just the point > of the crash? It's quite possible that this is a known bug in Make 4.1 https://savannah.gnu.org/bugs/?43434 Does it go away if /dev/pts is properly mounted? Regards, Andre --94eb2c03caac86100805637c7ee4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, 24 Jan= 2018 at 15:28 Rich Felker <dalias@li= bc.org> wrote:
On Tue, Jan 2= 3, 2018 at 05:07:32PM -0800, Po-yi Wang wrote:
> (gdb) run --version<= br> > Starting program: /tmp/build/make-4.1/make-4.1 --version
>
> Program received signal SIGSEGV, Segmentation fault.
> strlen (s=3D0x0) at src/string/strlen.c:15
> 15=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 for (w =3D (const v= oid *)s; !HASZERO(*w); w++);
> (gdb)

This means make is calling strlen(0), so the bug is somewhere else --
in whatever causing the string pointer passed to strlen to be a null
pointer. Can you show a full backtrace (bt) rather than just the point
of the crash?

It's quite possible that = this is a known bug in Make 4.1

Does it go away if /dev/pts is properly mounted?

Regards,
Andre
--94eb2c03caac86100805637c7ee4--