Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Feb 2004 13:40:12 -0800 (PST)
From:      Craig Rodrigues <rodrigc@crodrigues.org>
To:        freebsd-threads@FreeBSD.org
Subject:   Re: bin/31661: pthread_kill signal handler doesn't get sigcontext or ucontext
Message-ID:  <200402022140.i12LeCsg051551@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/31661; it has been noted by GNATS.

From: Craig Rodrigues <rodrigc@crodrigues.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc: nb@ravenbrook.com, mps-staff@ravenbrook.com
Subject: Re: bin/31661: pthread_kill signal handler doesn't get sigcontext or ucontext
Date: Mon, 2 Feb 2004 16:39:30 -0500

 Hi,
 
 I just tried your test program on FreeBSD-CURRENT.
 
 When linked with -lc_r, the output is:
 
 NSI Thread  0x0804c400
 BSD Thread   0x0804cc00
 Posix Thread 0x0805f000
 waiting for the threads to be alive
 ANSI is alive: 0x0804c400
 BSD is alive: 0x0804cc00
 Posix is alive: 0x0805f000
 waiting for the signals to be delivered
 ANSI:  Handled 1 signal 30 pthread 0x0804c400
 BSD:   Handled 1 signal 31 pthread 0x0804cc00 code 0 sigcontext 0x00000000
 Posix: Handled 1 signal 25 pthread 0x0805f000 info 0x00000000 context 0x00000000
 
 
 
 When linked with -lpthread, the output is:
 
 ANSI Thread  0x08053400
 BSD Thread   0x08053600
 Posix Thread 0x08053800
 waiting for the threads to be alive
 ANSI is alive: 0x08053400
 BSD is alive: 0x08053600
 Posix is alive: 0x08053800
 waiting for the signals to be delivered
 ANSI:  Handled 1 signal 30 pthread 0x08053400
 BSD:   Handled 1 signal 31 pthread 0x08053600 code 0 sigcontext 0xbfaddbe8
 Posix: Handled 1 signal 25 pthread 0x08053800 info 0xbfacdb58 context 0xbfacdbe8
 
 
 You mentioned that the bug is demonstrated by the fact
 that sigcontext and context are 0 in the last two lines of the output.
 
 This problem does not seem to exist for the new pthread library.
 
 -- 
 Craig Rodrigues        
 rodrigc@crodrigues.org



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