From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: SIGSEGV Date: Tue, 07 Apr 1998 18:23:13 -0400 Organization: Two pounds of chaos and a pinch of salt. Lines: 24 Message-ID: <352AA751.336A@cs.com> References: <352A4DC4 DOT 6EC1 AT bergen DOT mail DOT telia DOT com> NNTP-Posting-Host: ppp204.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 | ---------------------------------------------------------------------