[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 4.3.90 release candidate segfaults on linux and solaris
From: |
Paul Smith |
Subject: |
Re: 4.3.90 release candidate segfaults on linux and solaris |
Date: |
Sun, 25 Sep 2022 09:21:44 -0400 |
User-agent: |
Evolution 3.44.4 (by Flathub.org) |
On Sun, 2022-09-25 at 06:02 +0000, 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 time to rewrite this entire part of job.c but I don't
want to do that before the release.
I did try this with a 32bit Ubuntu 14.04 docker container image which
uses a similar libc version, but contrary to my previous assertion
(sorry Denis!) if it's an issue with vfork then it IS related to the
kernel version and so my docker containers won't be of any use.
This is not an actual fix (won't work on Solaris obviously since
execvpe() is a GNU extension) but can you try this change to see if it
works on your system Martin? At least we can verify that this is the
issue:
diff --git a/src/job.c b/src/job.c
index d12a9138..0a4ddae8 100644
--- a/src/job.c
+++ b/src/job.c
@@ -2553,8 +2553,7 @@ exec_command (char **argv, char **envp)
# else
/* Run the program. */
- environ = envp;
- execvp (argv[0], argv);
+ execvpe (argv[0], argv, envp);
# endif /* !__EMX__ */
- 4.3.90 release candidate segfaults on linux and solaris, Denis Excoffier, 2022/09/24
- Re: 4.3.90 release candidate segfaults on linux and solaris, Paul Smith, 2022/09/24
- Re: 4.3.90 release candidate segfaults on linux and solaris, Denis Excoffier, 2022/09/24
- Re: 4.3.90 release candidate segfaults on linux and solaris, Paul Smith, 2022/09/24
- Re: 4.3.90 release candidate segfaults on linux and solaris, Paul Smith, 2022/09/24
- Re: 4.3.90 release candidate segfaults on linux and solaris, Martin Dorey, 2022/09/25
- Re: 4.3.90 release candidate segfaults on linux and solaris,
Paul Smith <=
- Re: 4.3.90 release candidate segfaults on linux and solaris, Martin Dorey, 2022/09/25
- Re: 4.3.90 release candidate segfaults on linux and solaris, Martin Dorey, 2022/09/25
- Re: 4.3.90 release candidate segfaults on linux and solaris, Dmitry Goncharov, 2022/09/25
- Re: 4.3.90 release candidate segfaults on linux and solaris, Paul Smith, 2022/09/25
- Re: 4.3.90 release candidate segfaults on linux and solaris, Paul Smith, 2022/09/25
- Re: 4.3.90 release candidate segfaults on linux and solaris, Denis Excoffier, 2022/09/26