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 ?? ()

_______________________________________________
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to