NetBSD Problem Report #655

From gnats  Fri Dec 23 10:06:49 1994
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id KAA14397 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Fri, 23 Dec 1994 10:06:48 -0800
Message-Id: <199412231808.MAA27779@enigma.cs.uwm.edu>
Date: Fri, 23 Dec 1994 12:08:56 -0600
From: James Jegers <jimj@enigma.cs.uwm.edu>
Reply-To: jimj@enigma.cs.uwm.edu
To: gnats-bugs@NetBSD.ORG
Subject: sigsetjmp/setlongjmp bug?
X-Send-Pr-Version: 3.2

>Number:         655
>Category:       lib
>Synopsis:       The new sigsetjmp/siglongjmp funcitons don't work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 23 10:20:04 +0000 1994
>Closed-Date:    Wed Dec 28 15:31:30 +0000 1994
>Last-Modified:  
>Originator:     James Jegers
>Release:        as of 12/21/94	<NetBSD-current source date>
>Organization:
"	"
>Environment:

System: NetBSD enigma.cs.uwm.edu 1.0A NetBSD 1.0A (ENIGMA) #0: Mon Nov 28 16:57:17 CST 1994 jimj@enigma.cs.uwm.edu:/usr/src/sys/arch/i386/compile/ENIGMA i386


>Description:

	 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.
>How-To-Repeat:

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

main()
{
	int i;
 	sigjmp_buf buf;

	i = 1;

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

	siglongjmp(buf, 5);

	printf("shouldn't get here\n");
}

>Fix:
 	Bring back the  libc/arch/i386/gen/sigsetjmp.S file?  Works for me..:-)

>Release-Note:
>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: glass
State-Changed-When: Wed Dec 28 15:31:30 1994
State-Changed-Why:
fixed.
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.