Subject: Re: lib/30585: Sigcontext misfilled in pthread mode.
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-bugs
Date: 06/23/2005 15:41:02
The following reply was made to PR lib/30585; it has been noted by GNATS.
From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@netbsd.org, lib-bug-people@netbsd.org,
gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: martin@duskware.de
Subject: Re: lib/30585: Sigcontext misfilled in pthread mode.
Date: Thu, 23 Jun 2005 11:40:50 -0400
On Jun 23, 3:25pm, guilhem.lavaux@free.fr (guilhem.lavaux@free.fr) wrote:
-- Subject: lib/30585: Sigcontext misfilled in pthread mode.
| >Number: 30585
| >Category: lib
| >Synopsis: Sigcontext misfilled in pthread mode.
| >Confidential: no
| >Severity: serious
| >Priority: medium
| >Responsible: lib-bug-people
| >State: open
| >Class: sw-bug
| >Submitter-Id: net
| >Arrival-Date: Thu Jun 23 15:25:00 +0000 2005
| >Originator: Guilhem Lavaux
| >Release: Netbsd 2.0.2
| >Organization:
| >Environment:
| NetBSD rochben 2.0.2 NetBSD 2.0.2 (GENERIC.MP) #0: Wed Mar 23 01:32:33 UTC 2005 jmc@faith.netbsd.org:/home/builds/ab/netbsd-2-0-2-RELEASE/sparc/200503220140Z-obj/home/builds/ab/netbsd-2-0-2-RELEASE/src/sys/arch/sparc/compile/GENERIC.MP sparc
| >Description:
| Kaffe needs to have access to the stack pointer and the instruction pointer at the place where a SIGSEGV/SIGBUS/SIGFPE occurs. For that we use the sigcontext structure which is given in parameter of the signal handler. However this structure seems to be misfilled in pthread mode.
|
You need to use siginfo not sigcontext. Sigcontext is not supported except
in compatibility mode for non-threaded applications.
christos