Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Oct 1999 17:57:58 +0200
From:      Graham Wheeler <gram@cequrux.com>
To:        "Dodge Ram" <gupz@hotmail.com>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Handling segV's
Message-ID:  <9910151800080A.11153@cequrux.com>
In-Reply-To: <19991015153003.54337.qmail@cequrux.com>
References:  <19991015153003.54337.qmail@cequrux.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 15 Oct 1999, Dodge Ram wrote:
> Hi,
> 
> 	I am looking at ways to handle segV's gracefully without
> letting a process die. I am aware of the siglongjmp() call and don't
> know if that is the only way to handle segV's
> 
> 	Any pointers on how to gracefully (?) handle segV and not
> letting the process die will be of great help.
> 
> 	Also, given that I have a solution to test, what are all the
> ways I can ensure that my process handles segV's rightly ?

Well, you can't return from the signal handler, as that will just cause the
SEGV again. Also, you shouldn't do any heap manipulation from within
the signal handler (that may have changed now that there is thread support, but
certainly in older systems these routines are no re-entrant). So that will 
limit your options considerably...

-- 
Dr Graham Wheeler                        E-mail: gram@cequrux.com
Cequrux Technologies                     Phone:  +27(21)423-6065/6/7
Firewalls/Virtual Private Networks       Fax:    +27(21)24-3656
Data/Network Security Specialists        WWW:    http://www.cequrux.com/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9910151800080A.11153>