This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: longjmp crash


> ....
> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]