Re: 4.3.90 release candidate segfaults on linux and solaris

2022-09-26 Thread Denis Excoffier
> On 2022-09-25 16:25, Dmitry Goncharov wrote: > > On Sun, Sep 25, 2022 at 2:09 AM Martin Dorey > wrote: >> And vfork is where that happens. If I’ve followed the thicket of #ifdef >> correctly and understood the vfork man page, then this is illegal when using >> vfork: >> >>

Re: 4.3.90 release candidate segfaults on linux and solaris

2022-09-25 Thread Paul Smith
On Sun, 2022-09-25 at 13:03 -0400, Paul Smith wrote: > The odd thing is that make ALREADY preserves the environment pointer > and restores it, but it does so after child_execute_job() is called > (after removing some ifdefs): Oh, well, clearly child_execute_job() is called from other places, that

Re: 4.3.90 release candidate segfaults on linux and solaris

2022-09-25 Thread Paul Smith
On Sun, 2022-09-25 at 10:25 -0400, Dmitry Goncharov wrote: > However, the this does this reproduce on my sun. Sorry Dmitry but I didn't understand that sentence...? The odd thing is that make ALREADY preserves the environment pointer and restores it, but it does so after child_execute_job() is

Re: 4.3.90 release candidate segfaults on linux and solaris

2022-09-25 Thread Martin Dorey
Subject: Re: 4.3.90 release candidate segfaults on linux and solaris * EXTERNAL EMAIL * On Sun, 2022-09-25 at 06:02 +, Martin Dorey wrote: > And vfork is where that happens. If I’ve followed the thicket of > #ifdef correctly and understood the vfork man page, then this is > ill

Re: 4.3.90 release candidate segfaults on linux and solaris

2022-09-25 Thread Dmitry Goncharov
On Sun, Sep 25, 2022 at 2:09 AM Martin Dorey wrote: > And vfork is where that happens. If I’ve followed the thicket of #ifdef > correctly and understood the vfork man page, then this is illegal when using > vfork: > > https://github.com/mirror/make/blob/master/src/job.c#L2556 Thanks, Martin.

Re: 4.3.90 release candidate segfaults on linux and solaris

2022-09-25 Thread Martin Dorey
release candidate segfaults on linux and solaris * EXTERNAL EMAIL * On Sun, 2022-09-25 at 06:02 +, Martin Dorey wrote: > And vfork is where that happens. If I’ve followed the thicket of > #ifdef correctly and understood the vfork man page, then this is > illegal when using vfork:

Re: 4.3.90 release candidate segfaults on linux and solaris

2022-09-25 Thread Paul Smith
On Sun, 2022-09-25 at 06:02 +, Martin Dorey wrote: > And vfork is where that happens.  If I’ve followed the thicket of > #ifdef correctly and understood the vfork man page, then this is > illegal when using vfork: > > https://github.com/mirror/make/blob/master/src/job.c#L2556 It's long past

Re: 4.3.90 release candidate segfaults on linux and solaris

2022-09-25 Thread Martin Dorey
Sent: Saturday, September 24, 2022 14:17 To: Denis Excoffier Cc: bug-make@gnu.org Subject: Re: 4.3.90 release candidate segfaults on linux and solaris * EXTERNAL EMAIL * On Sat, 2022-09-24 at 13:06 -0400, Paul Smith wrote: > > The crashes in solaris and linux are so similar, and g

Re: 4.3.90 release candidate segfaults on linux and solaris

2022-09-24 Thread Paul Smith
On Sat, 2022-09-24 at 13:06 -0400, Paul Smith wrote: > > The crashes in solaris and linux are so similar, and go away also > > so similarly, that i would primarily think about size of types. > > Under cygwin and MacOS all sizes (pointers, long int, size_t, > > SIZE_MAX, time_t) are 8, while under

Re: 4.3.90 release candidate segfaults on linux and solaris

2022-09-24 Thread Paul Smith
On Sat, 2022-09-24 at 18:23 +0200, Denis Excoffier wrote: > The segfault also occurs without ‘env -i’. Thanks for helping me avoid that red herring. > The crashes in solaris and linux are so similar, and go away also so > similarly, that i would primarily think about size of types. Under >

Re: 4.3.90 release candidate segfaults on linux and solaris

2022-09-24 Thread Denis Excoffier
> On 2022-09-24 17:19, Paul Smith wrote: > > On Sat, 2022-09-24 at 09:36 +0200, Denis Excoffier wrote: >> In my specific configuration (under linux, with --disable-nls, >> --disable-load, without using -j, using 'env -i make -d -n'), a >> segfault always occurs around line 118 of src/expand.c:

Re: 4.3.90 release candidate segfaults on linux and solaris

2022-09-24 Thread Paul Smith
On Sat, 2022-09-24 at 09:36 +0200, Denis Excoffier wrote: > In my specific configuration (under linux, with --disable-nls, > --disable-load, without using -j, using 'env -i make -d -n'), a > segfault always occurs around line 118 of src/expand.c: > > My linux is old (2.6.32), The kernel version

4.3.90 release candidate segfaults on linux and solaris

2022-09-24 Thread Denis Excoffier
Hello, At the beginning, i found a segfault in the source code of autoconf-2.71. I reduced the case and the current test Makefile is as follows: % cat Makefile export PATH = $(shell echo "`pwd`/tests:$$PATH") foo = $(shell echo yes) all: echo $(foo) % In my specific configuration