delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/02/08/19:40:02

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4D51E253.5080404@redhat.com>
Date: Tue, 08 Feb 2011 17:39:47 -0700
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: cygwin bash-4.1.9-2
References: <AANLkTi=hhGhJidhwqwNz4YvUj3KySXgCBOEO1MTCkjNg AT mail DOT gmail DOT com>
In-Reply-To: <AANLkTi=hhGhJidhwqwNz4YvUj3KySXgCBOEO1MTCkjNg@mail.gmail.com>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------enigC702A71EA2E38BFD45826304
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 02/08/2011 12:15 PM, Kimbo Mundy wrote:
>> I have not seen that issue, and you're the first to report it, but I'll
>> see if I can reproduce it.

I was able to reproduce this, but not on my machine (thanks Corinna for
getting me set up); and the odd thing was that the problem disappears
when compiled with -O1 on execute_cmd.c.  Bash is probably doing
something undefined, that happens to work at low optimization but falls
flat at high optimization; in particular, it is violating rules of
setjmp() by modifying local variables not marked volatile in between
setjmp() and longjmp().  However, when I silenced that gcc warning, the
crash still persisted at -O2, so I haven't solved root cause yet.

At any rate, if I can't solve root cause shortly, I'll at least release
bash-4.1.9-3 with execute_cmd.c compiled at -O1 to avoid the problem,
while I continue my investigations.

> I just hit this as well.  I had to use --debug, instead of bash -xv,
> in order to get tracing turned on inside
> /usr/share/csih/cygwin-service-installation-helper.sh.  It appears the
> crash happens as csih_install_config is returning:

The crash is happening when csih_install_config is executing a return
trap.  It could be that not too many people do trap ... RETURN in bash
scripts, which is why cygwin is hitting this problem, even though it
appears to be a bug in upstream bash (at least, it's more likely that
bash is doing something wrong than it is that gcc 4.3.4 is miscompiling
bash).

--=20
Eric Blake   eblake AT redhat DOT com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enigC702A71EA2E38BFD45826304
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.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJNUeJTAAoJEKeha0olJ0NqnHEH/jnB3d5P/WXqgnDFe2ywZbM+
JgirtFJ2zFES12GeU0EnxaRwTcx1V0wSnGrMdHEAgt0Sqif3tHH1PKLAAd9iIr+m
BKHDurPq8L/KoZjSJ8qW0j+x1cRliCyefmi9wC655EXOf6u2NLKtT0EE90yHymni
Aowu8G/dNeGqyKpKJSQ03/pz7x8aXEz0bj3O+O7BrbSBcJtja5mzoakQG2D6SHCJ
RZXpXjFhBwHF/8enlSXqEolH9bUGiYu7pXja4p+piFI8Agr1MSkZe0V/f5DKop67
eTiVYum805gJoU36ER+29+zL6am1cQo8/4ykfBsGSffCFN078vshG3xhJQleErs=
=jmzn
-----END PGP SIGNATURE-----

--------------enigC702A71EA2E38BFD45826304--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019