Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <42BD72A8.105@byu.net>
Date: Sat, 25 Jun 2005 09:05:12 -0600
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Bash 3.0-2 and kill
References: <Pine.OSF.4.21.0506242313310.4860-100000@ax0rm1.roma1.infn.it> <Pine.GSO.4.61.0506241732200.5118@slinky.cs.nyu.edu> <20050624223131.GA27592@trixie.casa.cgf.cx> <Pine.GSO.4.61.0506250041120.18734@slinky.cs.nyu.edu>
In-Reply-To: <Pine.GSO.4.61.0506250041120.18734@slinky.cs.nyu.edu>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Igor Pechtchanski on 6/24/2005 10:50 PM:
>>
>>Given that if cygwin was this broken all sorts of other things would be
>>broken as well, this is more likely a problem with bash.
> 
> 
> One reason for my guess was that I recalled discussions of bash using
> pretty specialized spawn techniques, and it was likely to have some corner
> case interaction with signal handling that normal programs wouldn't
> encounter.  There may also be something different about the SIGCHLD that
> bash is getting when the child is killed with SIGKILL.  But that was no
> more than a guess, and yes, it's quite possible that there's a bug in the
> bash signal handler.

I wouldn't at all be surprised if it is a bash bug, since I blindly
forward-ported the job handling tweaks made for cygwin in 2.05b-17 to 3.0
without seeing what else changed upstream in 3.0.  I am still trying to
reproduce the crash with a debugging build to get a stacktrace, and
haven't succeeded at it yet, so a more exact formula from the OP would
indeed be useful.  Also, for those who have seen the crash, please include
in your report what "set -o" and "shopt" display, since some of the shell
options affect the job handling behavior.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
cygwin bash maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCvXKo84KuGfSFAYARAjNxAKClaJvtWX/nUlgrIkO9N1czMiwLggCgszKu
mYVPqPz+n+Ag3tNVcoZUu0U=
=Fxd8
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

