Subject: lib/655: sigsetjmp/setlongjmp bug?
To: None <>
From: James Jegers <>
List: netbsd-bugs
Date: 12/23/1994 10:20:07
>Number:         655
>Category:       lib
>Synopsis:       The new sigsetjmp/siglongjmp funcitons don't work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 23 10:20:04 1994
>Originator:     James Jegers
"	"
>Release:        as of 12/21/94	<NetBSD-current source date>
System: NetBSD 1.0A NetBSD 1.0A (ENIGMA) #0: Mon Nov 28 16:57:17 CST 1994 i386

	 The sigsetjmp and siglongjmp functions don't appear to be working as
	 they should, and one of the programs which break is xdm.
	I tried writting a program using setjmp,longjmp and that works fine, but
	when I change it to the sig... functions it doesn't appear to work.

#include <setjmp.h>
#include <stdio.h>

	int i;
 	sigjmp_buf buf;

	i = 1;

	i = sigsetjmp(buf, 1);
	printf("%d\n", i);

	siglongjmp(buf, 5);

	printf("shouldn't get here\n");
 	Bring back the  libc/arch/i386/gen/sigsetjmp.S file?  Works for me..:-)