delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 0CA4C389AC23 |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
s=default; t=1641926960; | |
bh=V291dEaVlWWmnH29bY6T3wkGN2kAbe178G6d7SQVR0M=; | |
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: | |
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: | |
From; | |
b=bnELBA/CsGp/4B6ia46x0DF5oau147XamSvLCHD1ELleFIEe/h7LV9h8ZtfgJ/WgE | |
Icjgqk1DJ/2eWNK2BXz6J2dmiQyTn0WF8hunuSAmcS+be4BEpDK4OI/8xMVLqg4Wpp | |
VHRyyeaOT91VEeEGn2YEbDCakTr8PON23dme7rRQ= | |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.4.1 sourceware.org 0F3A73858023 |
Date: | Tue, 11 Jan 2022 10:45:00 -0800 (PST) |
X-X-Sender: | jeremyd AT resin DOT csoft DOT net |
To: | cygwin AT cygwin DOT com |
Subject: | Re: posix_spawn issues on i686 |
In-Reply-To: | <alpine.BSO.2.21.2201101132030.11760@resin.csoft.net> |
Message-ID: | <alpine.BSO.2.21.2201111042390.11760@resin.csoft.net> |
References: | <alpine DOT BSO DOT 2 DOT 21 DOT 2201101132030 DOT 11760 AT resin DOT csoft DOT net> |
User-Agent: | Alpine 2.21 (BSO 202 2017-01-01) |
MIME-Version: | 1.0 |
X-Spam-Status: | No, score=-4.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, |
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, SPF_HELO_PASS, | |
SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 | |
X-Spam-Checker-Version: | SpamAssassin 3.4.4 (2020-01-24) on |
server2.sourceware.org | |
X-BeenThere: | cygwin AT cygwin DOT com |
X-Mailman-Version: | 2.1.29 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Unsubscribe: | <https://cygwin.com/mailman/options/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
From: | Jeremy Drake via Cygwin <cygwin AT cygwin DOT com> |
Reply-To: | Jeremy Drake <cygwin AT jdrake DOT com> |
Errors-To: | cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com |
Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --14594298871808-893947222-1641926700=:11760 Content-Type: text/plain; charset=US-ASCII On Mon, 10 Jan 2022, Jeremy Drake wrote: > From https://github.com/msys2/MSYS2-packages/issues/2801 > > MSYS2 recently rebuilt GNU make 4.3, and I found that after rebuilding, it > broke rather horribly on i686, where any attempt to run a command resulted > in "Invalid argument" errors. Some debugging revealed that rebuilding > make resulted in it using posix_spawn now instead of vfork. Passing > --disable-posix-spawn to make's configure script results in a working i686 > make. > > Can you create a simple, self-contained testcase in plain C? Sorry, I am not subscribed to the list so don't have the message to reply to for threading purposes, but attached please find a C reproducer that works on x86_64 but fails on i686. The particular issue seems to be the POSIX_SPAWN_RESETIDS flag - not setting that allows i686 to succeed too. --14594298871808-893947222-1641926700=:11760 Content-Type: text/x-c; name=posix_spawn.c Content-Transfer-Encoding: BASE64 Content-ID: <alpine DOT BSO DOT 2 DOT 21 DOT 2201111045000 DOT 11760 AT resin DOT csoft DOT net> Content-Description: Content-Disposition: attachment; filename=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KHdhaXRwaWQocGlk LCAmc3RhdHVzLCAwKSAhPSAtMSkgew0KICAgICAgICAgICAgcHJpbnRmKCJD aGlsZCBzdGF0dXMgJWRcbiIsIFdFWElUU1RBVFVTKHN0YXR1cykpOw0KICAg ICAgICAgIH0gZWxzZSB7DQogICAgICAgICAgICBwZXJyb3IoIndhaXRwaWQi KTsNCiAgICAgICAgICAgIHJldHVybiAxOw0KICAgICAgICAgIH0NCiAgICAg ICAgfSB3aGlsZSAoIVdJRkVYSVRFRChzdGF0dXMpICYmICFXSUZTSUdOQUxF RChzdGF0dXMpKTsNCiAgICB9IGVsc2Ugew0KICAgICAgICBwcmludGYoInBv c2l4X3NwYXduOiAlc1xuIiwgc3RyZXJyb3Ioc3RhdHVzKSk7DQogICAgfQ0K ICAgIHJldHVybiBzdGF0dXM7DQp9DQo= --14594298871808-893947222-1641926700=:11760 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple --14594298871808-893947222-1641926700=:11760--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |