Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2015 17:52:42 +0200
From:      Michiel Boland <boland37@xs4all.nl>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        Mark Martinec <Mark.Martinec+freebsd@ijs.si>, freebsd-stable@freebsd.org
Subject:   Re: Latest stable (r287104) bash leaves zombies on exit
Message-ID:  <55E083CA.2050705@xs4all.nl>
In-Reply-To: <20150828100118.GR2072@kib.kiev.ua>
References:  <E1ZUucG-000C5n-0C@dilbert.ingresso.co.uk> <63a84f64baf8768a551fc6464e8e9526@mailbox.ijs.si> <20150827162602.GJ2072@kib.kiev.ua> <55DF5C95.90502@xs4all.nl> <20150827201644.GO2072@kib.kiev.ua> <55DFFADB.2080003@xs4all.nl> <20150828100118.GR2072@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On 08/28/2015 12:01, Konstantin Belousov wrote:
[...]
> I probably have an idea what is going wrong.  Please try the patch
> below.  Libc does not used interposed sig{procmask,action,suspend}
> entries itself, which resulted in e.g. signal(3) breaking libthr
> hooks.

I'm trying now, and it did appear to get rid of the zombies.
Here's a quick test.

set -e
for a in `seq 1000`
do
echo -n "$a "
xterm -e ssh nonexisting
done
echo ""

(The idea here is that 'ssh nonexisting' should do some work and then exit, 
"xterm -e false", etc. don't appear to trigger the bug.)

Prior to the patch, one of the xterms would hang after the counter reaches a 
random (reasonably small) number.

After the patch the script runs till completion.

Cheers
Michiel




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55E083CA.2050705>