Re: Handling exceptions with Mach ports
Re: Handling exceptions with Mach ports
- Subject: Re: Handling exceptions with Mach ports
- From: "Junker, Gregory" <email@hidden>
- Date: Mon, 17 Apr 2017 22:00:37 +0000
- Thread-topic: Handling exceptions with Mach ports
On Mon, 2017-04-17 at 22:50 +0200, Jonas Maebe wrote:
> On 17/04/17 20:55, Junker, Gregory wrote:
> >
> > https://gist.github.com/rodionovd/01fff61927a665d78ecf
> >
> > seem to suggest that returning KERN_SUCCESS should be sufficient to suppress further handling of the exception.
> >
> > Any thoughts or suggestions?
> Maybe have a look at
> https://web-beta.archive.org/web/20091230024736/http://www.brianweb.net/misc/mach_exceptions_demo.c
I was basically doing what he was doing (and my actual use case is his example -- selectively unprotect regions of memory), but my
test case was an actual segfault: dereferencing a null pointer, which isn't recoverable (duh, in retrospect). When I convert my test
to using actual allocated/protected memory, I get the expected results (unprotect and move on).
Thanks!
Greg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden