X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-10.3 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4FBAAAA6.7010401@redhat.com> Date: Mon, 21 May 2012 14:50:46 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: bash.exe.stackdump generated using cygwin 1.7.15 References: <20120521155853 DOT GN7763 AT calimero DOT vinschen DOT de> <20120521164237 DOT GQ7763 AT calimero DOT vinschen DOT de> In-Reply-To: <20120521164237.GQ7763@calimero.vinschen.de> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigE58FC721A998B6B7289672B5" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------enigE58FC721A998B6B7289672B5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 05/21/2012 10:42 AM, Corinna Vinschen wrote: >> The crash occurs after echo exited, so bash wakes up from the wait4 >> call. However, the problem is that the crash does not occur in Cygwin, >> but in bash itself. >> >> 147 350775 [main] bash 3548 wait4: 2320 =3D wait4(-1, 0x0, 0, 0x0) >> --- Process 3548, exception C0000005 at 00422B0A >> >> Eric, can you reproduce this and see where it happens? I'm pretty sure >> it's a bug in Cygwin, not in bash, but it would be interesting to learn >> what bash did at the time the crash happened. >=20 > Incidentally I built bash without -O2 option for better debugging and > the problem vanished. Then I built bash again with default optimization > and the crash still didn't occur. I built from the latest bash src > package.4.1.10-4 using cygport. Uggh. This sounds familiar to another bash bug that I investigated some time ago, where bash was abusing longjmp() and miscompiled under -O2 but compiled correctly at -O0 due to the undefined behavior from that abuse, but I just verified that my patch from back then is still present in my latest build of bash for cygwin. I'll have to find more time to look into this. https://lists.gnu.org/archive/html/bug-bash/2011-02/msg00060.html --=20 Eric Blake eblake AT redhat DOT com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enigE58FC721A998B6B7289672B5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJPuqqmAAoJEKeha0olJ0NqRp8IAKpApk+uXVV8pr0KFfcLaaGG ye8vieKZ9fXporJExQA5/Er2t5r2CxG/ygr8NJOR40HcXs2HFoSSn5NSCXtoMYvU SaY9qnQCXhM6ckNg41XEpBD1HsnqULl2OQcob8ewfehndkoX3i5zZ8IqzRwLl0pE 3bgzq6EzTkqJmDc3uWtpAngFrU2sQvbg8o+j5NyLWf0Enwa/bznyDCrTmyoNwG0T WLbNt4k62MkmoX8oxqfazj9QQCc1rk9MIdFZ2ckj+8r9WUpgPYfZU/vhuCtISGwA 8NeRbntVbA0aDnOS3qtazoe1ZdWfh2xjnVMEicjNMSvLtm3kj26SlmPz2UajKXc= =Yv0t -----END PGP SIGNATURE----- --------------enigE58FC721A998B6B7289672B5--