Subject: port-sparc/6285: Signal handling problems on Sparc
To: None <>
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
>Originator:     Tom Ivar Helbekkmo
>Release:        1998-10-03
	SparcStation II running -current as per 1998-10-03.
	Using GCC, not EGCS, due to announced problems with EGCS.

	Certain signal handling situations cause core dumps.

	#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);
	  kill(0, SIGQUIT);
	  return 0;

	Not known.