DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 57FHIS6W3020340 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 57FHIS6W3020340 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=gBa+wIxm X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 78DAE3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1755278306; bh=aZ9dDkVX9IcSkKi0dutbz3ToJW1svCs85mTjXuNZ86g=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=gBa+wIxmV5rLC80QbiFVl3sw6LmFjqeV6Axt2SdCsxz7iSBw3WG+xnerXQ8TrDwZV OLPAILwJTGHqBHRCWb8zEvTXc8SMgYnkHvVRrEZVlwCQQQsn9JnW5OaK0Go9hPPJ2+ wSwWMh8BJqvaKYvCWft6h+Z2bsJqvGvbJhozCDFk= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C3B3C3858CD9 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C3B3C3858CD9 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1755278244; cv=none; b=wdOEzcV1vMosiXubTy9SaHAgjdgZZmoQ2Z1VbomCvBW7665jQwEj8MleSSa1N6xtVHLVzKidAEvwGbDCHI0ltt6NwGCYAsNpxyU79CBOcq8+gcMDIIJ3i65PH1pJh7z7ahhiN/IHNcXZJQiIwjN7P6iVEVjHGrvZwoT750XeuOk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1755278244; c=relaxed/simple; bh=RRBPA0vwQnu1DANCbLIJxGXxzF1M4qaCI+vCuKW5wFc=; h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature; b=tS73wa3ax30pPeP6PjkdQc6/Y7RBVCdDjt5UmRVWimxMCv9kkNetT4V7Emm5DU8JCK6SLaaqJ0uW9UFqC7Jce0gTkS++miIshCK0Nwo9JBfmDiEy0f79sKkfe6xBzpr/tgA9nX6DD/8Vc8KPYLzXVSpkYZa1R2QOFFhVLNc6XK4= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C3B3C3858CD9 Message-ID: <5b99e700-c25c-45d7-9220-f02d0a8f5831@SystematicSW.ab.ca> Date: Fri, 15 Aug 2025 11:17:21 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Suspicious commit dated 'Sat Jul 19 23:49:26 2025 +0900' Content-Language: en-CA To: cygwin AT cygwin DOT com References: <03D1D669-A7CF-40C3-A671-EEAA20A31448 AT Denis-Excoffier DOT org> <533DB209-713C-4580-9575-F7C4DAD43FBB AT Denis-Excoffier DOT org> Organization: Systematic Software In-Reply-To: <533DB209-713C-4580-9575-F7C4DAD43FBB@Denis-Excoffier.org> X-Stat-Signature: 49j9463crig3gaq6jwzmmj5boyc11bny X-Rspamd-Server: rspamout01 X-Rspamd-Queue-Id: C4BAE20035 X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX183cSDamyAZmaeR18QwquMUvNOi344TvFw= X-HE-Tag: 1755278242-959609 X-HE-Meta: U2FsdGVkX1/Ac1oKiULqZtNr5UsK+qwfg6+hEFt5fNz0jYFzdAewN+45iT7rhfAQj5XbvzuIFCHRN/jtL21tlNoEQgQHHPUCq+rl9FvZdWrcARjvcazqAp6Xgo08+VgeRT1hrbofz46y0u7pfXayrzya1btcxIPkbhO/azkN5YEssrf0ZjRj0XH0uv+Vnq2Q9UuA1I0Gq1JmFR4PK+4OoPeWap9JjsWzapVGL9GMox+wes5Rz6JnQs2wi7npfFi8gNbqI4jtsNv72p8c5T5pTXlvp5lZH3j3FKES1anarcmaSlu/F1Ty5dA2rjZZzad1SNAzVpFetU5474xIiEAkJmDQJcShdJPn X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 57FHIS6W3020340 On 2025-08-13 12:44, Denis Excoffier via Cygwin wrote: >> On 2025-08-12, 19:33, Denis Excoffier wrote: >> Today i was using cygwin-3.7.0-0.266… (found under /x86_64/release/cygwin, >> installed also the corresponding cygwin-doc and cygwin-devel) and built the new >> GCC 15.2.0. Then i built many (about 100) GNU or not-so-GNU software with no >> errors at all until i found in tcl-9.0.2 that GCC returns with status 2 (i.e. >> not 0, not 1, not 4) for compilation of tclStubLib.o (and compilation fails). >> Similarly, same return code (2) with fastcwd.o (and others, fastcwd is the >> first one) under winsup/cygwin/x86_64. >> >> Same with GCC 15.1.0. But this was surely not the case when i installed GCC 15.1.0 in April. >> Same with cygwin-3.7.0-0.277… (the more recent one). >> >> But not the same with cygwin-3.7.0-0.124... that i fetched on the 6th of June. In this case, compilation is ok (i checked with tcl only, not fastcwd.o). >> >> Then i started to bisect between cygwin-3.7.0-0.124… and cygwin-3.7.0-0.277… >> >> Unfortunately, cygwin-3.7.0 revisions from -124 to -246 are gone! >> >> Please don’t remove cygwin test releases too early. > Well, i’m lucky since cygwin-3.7.0-0.247 does not show up the problem (which > is: GCC returns sometimes with $status=2, e.g. in tcl-9.0.2 and for cygwin > sources). > > After bisection, it appears that the problem can be located between cygwin-3.7.0-250… and cygwin-3.7.0-256. > Three commits there on the trunk (and three on the branch): > > [newlib-cygwin] Cygwin: cygheap: Add lock()/unlock() method Takashi Yano > [newlib-cygwin] Cygwin: spawn: Lock cygheap from refresh_cygheap() until child_copy() Takashi Yano > [newlib-cygwin] Cygwin: spawn: Make system() thread-safe Takashi Yano > > The third one seems promising. Indeed: > - i install cygwin1.dll from cygwin-3.7.0-0.250 > - i build cygwin-3.7.0-0.277 with the commit 'Cygwin: spawn: Make system() thread-safe’ reverted. It builds. > - i install cygwin1.dll from the newly built cygwin-3.7.0-277 (again with commit reverted) > - i build cygwin-3.7.0-0.277 with the commit reverted. Now it builds without problem. > > Similary, tcl (see above) no longer fails to build. The return code 2 from GCC seems gone. > > Some additional information: under W10, no such difficulties. The problem seems to arise only with W11 (CYGWIN_NT-10.0-26100). > > Please someone have a look into this commit. Sorry not being able to do it myself. Hope this however helps. > Last remark: i didn’t try with the regular GCC from the cygwin distribution; > and perhaps something is missing in my GCC 15 build configuration. Possibly! Now for the obvious questions for you to review. Did you have all cygport dependencies installed when you built gcc and tcl: autoconf, automake, binutils, bzip2, diffstat, dos2unix, gcc-core, gcc-g++, lftp, libtool, lndir, lzip, make, openssh, patch, perl-Authen-SASL, perl-MIME-tools, perl-Net-SMTP-SSL, perl-common-sense, perl_base, pkg-config, rsync, texinfo, unzip, wget, xz? Did you use the current gcc.cygport source to drive the gcc build? Did you also have all cygwin build dependencies installed when you built cygwin: cocom, dblatex, dejagnu, docbook-xml45, docbook-xsl, docbook2X, gettext-devel, libiconv, libiconv-devel, libzstd-devel, mingw64-x86_64-gcc-g++, mingw64-x86_64-zlib, python39-lxml, python39-ply, texlive-collection-fontsrecommended, texlive-collection-latexrecommended, texlive-collection-pictures, xmlto, zlib-devel? Did you use the current cygwin.cygport source to drive the cygwin build? Did you use the current tcl.cygport source to drive the tcl build? -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retrancher but when there is no more to cut -- Antoine de Saint-Exupéry -- 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