Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Tue, 23 Jan 2018 18:55:56 -0800 (PST)
From: Po-yi Wang <>
Subject: Re: seg fault at src/string/strlen.c:15

On Wed, 24 Jan 2018, Andre Renaud wrote:

> 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
> Does it go away if /dev/pts is properly mounted?

After "mount -n -t devpts devpts /dev/pts", both works fine.
Strangely, on i486, even if I "umount /dev/pts", seg fault do not occur.

> Regards,
> Andre

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.