This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: longjmp crash
- To: labruna at cli dot di dot unipi dot it (Elena Labruna)
- Subject: Re: longjmp crash
- From: Joe Buck <jbuck at synopsys dot COM>
- Date: Fri, 16 Feb 2001 09:04:04 -0800 (PST)
- Cc: gcc at gcc dot gnu dot org
> ....
> In my program on longjmp call the system crash with a SIGSEGV signal.
>
> Anyone can tell me if it can be a compiler problem ?
Almost certainly it is a programming problem. Check to see if the stack
frame saved by the last setjmp call still exists. If the last function
that called setjmp has returned before the longjmp call, you will get
a crash. You can also get a crash if something scribbles over the setjmp
data structure.