From owner-freebsd-threads@FreeBSD.ORG Mon Feb 2 13:40:21 2004 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D05F16A4CE for ; Mon, 2 Feb 2004 13:40:21 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9CB043D58 for ; Mon, 2 Feb 2004 13:40:12 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i12LeCFR051552 for ; Mon, 2 Feb 2004 13:40:12 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i12LeCsg051551; Mon, 2 Feb 2004 13:40:12 -0800 (PST) (envelope-from gnats) Date: Mon, 2 Feb 2004 13:40:12 -0800 (PST) Message-Id: <200402022140.i12LeCsg051551@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: Craig Rodrigues Subject: Re: bin/31661: pthread_kill signal handler doesn't get sigcontext or ucontext X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Craig Rodrigues List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2004 21:40:21 -0000 The following reply was made to PR bin/31661; it has been noted by GNATS. From: Craig Rodrigues 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