🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.mac
Article #7754

LightSpeedC setjmp/longjmp question

#7754
From: Mark Nagel
Date: Fri, 24 Oct 1986 04:16
43 lines
1612 bytes
    I have a program I am writing in LightspeedC that uses setjmp/longjmp and
it doesn't seem to work, since whenever the longjmp executes, the system breaks
to the debugger with:
ILL GLBL

    The program looks like:

    #include <setjmp.h>

    jmp_buf accvio_env;

    map(va)
    long va;
    {
	if (illegal(va))
	    longjmp(accvio_env,-1);
	/* more stuff */
    }


    icycle()
    {
	if (setjmp(accvio_env) < 0)
	    goto accvio_handler;

	/* more stuff */
    }

The function icycle is always called first and it is the only function that
calls map.  I wrote the same code on VMS VAX C 2.1 and it worked fine.  Does
anyone know if this is a known bug or something?  I called THINK and Steve Stein
said he would check it out for me.  I just wanted to see if anyone knew anything
about this problem (or is it *my* problem?)



- Mark Nagel


ucdavis!deneb!u557676751ea@ucbvax.berkeley.edu               (ARPA)
mdnagel@ucdavis                                              (BITNET)
...!{sdcsvax|lll-crg|ucbvax}!ucdavis!deneb!u557676751ea      (UUCP)
Technical Details
Message-ID: <576@ucdavis.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbatt!ihnp4!qantel!hplabs!ucbvax!ucdavis!deneb!u557676751ea

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbatt!ihnp4!qantel!hplabs!ucbvax!ucdavis!deneb!u557676751ea
From: u557676751ea@ucdavis.UUCP (Mark Nagel)
Newsgroups: net.micro.mac
Subject: LightSpeedC setjmp/longjmp question
Message-ID: <576@ucdavis.UUCP>
Date: Fri, 24-Oct-86 00:16:57 EDT
Article-I.D.: ucdavis.576
Posted: Fri Oct 24 00:16:57 1986
Date-Received: Sat, 25-Oct-86 05:18:03 EDT
Distribution: net
Organization: University of California, Davis
Lines: 43