bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 4.3.90 release candidate segfaults on linux and solaris


From: Martin Dorey
Subject: Re: 4.3.90 release candidate segfaults on linux and solaris
Date: Sun, 25 Sep 2022 14:35:26 +0000

https://docs.oracle.com/cd/E88353_01/html/E37841/execvpe-2.html alleges to document Oracle Solaris 11.4 and appears to support execvpe.  Yes, it's listed in Linux pages as a GNU extension and it's not on the Open Group page for the exec family, but symmetry makes it quite an obvious extension.  Perhaps that could be detected by a configure test.

The Linux page for vfork, but not the Open Group one, says that vfork suspend the caller until the exec is done, so the caller could restore environ after.  I don't immediately see that it could hurt and should fix it for Linux.

Or there's copying the environment somewhere else.  Huh, even just the environ pointer.


From: Bug-make <bug-make-bounces+martin.dorey=hds.com@gnu.org> on behalf of Martin Dorey <Martin.Dorey@hitachivantara.com>
Sent: Sunday, September 25, 2022 07:09
To: psmith@gnu.org <psmith@gnu.org>; Denis Excoffier <bug-tar@Denis-Excoffier.org>
Cc: bug-make@gnu.org <bug-make@gnu.org>
Subject: Re: 4.3.90 release candidate segfaults on linux and solaris
 
execvpe does indeed fix it for me.  Undoing the fix again, doing make clean -k and coming out of the chroot to configure --disable-posix-spawn for my 64 bit root environment (with libc 2.24 from Debian Stretch on Linux 4.9.0-19-amd64), I can reproduce the problem again with this makefile.  I'd be surprised if that doesn't crash for Paul too because I suggest that the kernel version isn't actually important either.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]