Subject: port-sparc/6285: Signal handling problems on Sparc
To: None <gnats-bugs@gnats.netbsd.org>
From: Tom Ivar Helbekkmo <tih@Hamartun.Priv.NO>
List: netbsd-bugs
Date: 10/13/1998 07:41:57
>Number: 6285
>Category: port-sparc
>Synopsis: Signal handling changes in -current cause crash on Sparc
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 12 23:05:01 1998
>Last-Modified:
>Originator: Tom Ivar Helbekkmo
>Organization:
T&T
>Release: 1998-10-03
>Environment:
SparcStation II running -current as per 1998-10-03.
Using GCC, not EGCS, due to announced problems with EGCS.
>Description:
Certain signal handling situations cause core dumps.
>How-To-Repeat:
#include <signal.h>
#include <stdio.h>
#include <setjmp.h>
sigjmp_buf jbuf;
void handler()
{
siglongjmp(jbuf, 1);
}
int main (int argc, char **argv) {
if (sigsetjmp(jbuf, 1) != 0) {
fprintf(stderr, "SIGQUIT received\n");
return 0;
}
signal(SIGQUIT, handler);
sleep(1);
kill(0, SIGQUIT);
pause();
return 0;
}
>Fix:
Not known.
>Audit-Trail:
>Unformatted: