Thread View: net.micro.mac
1 messages
1 total messages
Started by Mark Nagel
Fri, 24 Oct 1986 04:16
LightSpeedC setjmp/longjmp question
Author: Mark Nagel
Date: Fri, 24 Oct 1986 04:16
Date: Fri, 24 Oct 1986 04:16
43 lines
1612 bytes
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)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads