Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2015 08:08:27 +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:  <55DFFADB.2080003@xs4all.nl>
In-Reply-To: <20150827201644.GO2072@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>

next in thread | previous in thread | raw e-mail | index | archive | help
On 08/27/2015 22:16, Konstantin Belousov wrote:
[...]
> I just verified that the signal handler is correctly wrapped for me, on
> the latest stable/10.  Both with the pre-linked libthr.so and with the
> library loaded dynamically at runtime.  I used the test program at the
> end of the message, put breakpoint on the sigusr2_handler, and looked
> at the backtrace, which must include thr_sighandler().  It did in my
> case, for binary built with and without -lpthread.
>
> Can you verify the presence of thr_sighandler() in the backtrace for
> this test program, on your system ?

Verified, see below.
Cheers
Michiel

Breakpoint 1, sigusr2_handler (signo=31, si=0x7fffffffe430, u=0x7fffffffe0c0)
     at rtld_sigresolv.c:24
24              wait(NULL);
Current language:  auto; currently minimal
(gdb) bt
#0  sigusr2_handler (signo=31, si=0x7fffffffe430, u=0x7fffffffe0c0)
     at rtld_sigresolv.c:24
#1  0x000000080100d947 in handle_signal (actp=<value optimized out>, sig=31,
     info=0x7fffffffe430, ucp=0x7fffffffe0c0)
     at /usr/src/lib/libthr/thread/thr_sig.c:243
#2  0x000000080100d158 in thr_sighandler (sig=<value optimized out>,
     info=<value optimized out>, _ucp=<value optimized out>)
     at /usr/src/lib/libthr/thread/thr_sig.c:188
#3  <signal handler called>
#4  thr_kill () at thr_kill.S:3
#5  0x0000000800965066 in __raise (s=<value optimized out>)
     at /usr/src/lib/libc/gen/raise.c:51
#6  0x0000000000400c72 in atexit_code () at rtld_sigresolv.c:31
#7  0x000000080093d406 in __cxa_finalize (dso=0x0)
     at /usr/src/lib/libc/stdlib/atexit.c:200
#8  0x00000008008de92c in exit (status=0) at /usr/src/lib/libc/stdlib/exit.c:67
#9  0x0000000000400946 in _start (ap=<value optimized out>,
     cleanup=<value optimized out>) at /usr/src/lib/csu/amd64/crt1.c:78
#10 0x0000000800621000 in ?? ()
#11 0x0000000000000000 in ?? ()




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