bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash crashes when forking jobs and dynamically switching posix mode


From: Chet Ramey
Subject: Re: bash crashes when forking jobs and dynamically switching posix mode
Date: Fri, 11 May 2012 14:25:08 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20120327 Thunderbird/11.0.1

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

On 5/11/12 11:43 AM, Mike Frysinger wrote:
> in light of the recent discussion, i thought i could switch posix mode on/off 
> on the fly so that i restricted myself to this mode only when using `wait`.  
> unfortunately, that randomly crashes bash :).  simple test case:

I ran through around 20,000 children on RHEL5 before I quit, and it didn't
crash using bash-4.2.28.  However, there is a change in the development
branch that does a better job of not running the SIGCHLD trap in a signal
handling context.  That's the only change I can see, though it should not
matter because the posix mode toggling means that code isn't executed.

Chet
- -- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+tWYMACgkQu1hp8GTqdKtjjwCfdf25kdV6xSHhJrU75IBDQuEN
lxkAnRbqGJDljZTCPD6oApBXKS602KIp
=PvTQ
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]