Mail Archives: djgpp/1998/04/07/18:30:53
John Kismul wrote:
>
> Hello, I was wondering, is it possible to do so that whenever a SEGMENT
> VIOLATION occures my program will go on executing as normal instead of
> exiting with a PAGE FAULT or a GENERAL PROTECTION error.
It is not possible. SIGSEGV indicates that your program has violated
memory protection; it can be trapped but your program MUST exit after
the handler is called.
There is no safe way to recover from a SIGSEGV so the DPMI host won't
even try.
Please see the chapter of the DJGPP Frequently Asked Questions List on
debugging (chapter 12) for instructions on how to make sense of the
stack traceback that is printed when your program crashes, and how to
use the various debugging tools that come with DJGPP.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com |
| Plan: To find ANYONE willing to | http://www.cs.com/fighteer/ |
| play Descent 2 on DWANGO! | ICQ UIN#: 7406319 |
---------------------------------------------------------------------
- Raw text -