Handling exceptions with Mach ports
Handling exceptions with Mach ports
- Subject: Handling exceptions with Mach ports
- From: "Junker, Gregory" <email@hidden>
- Date: Mon, 17 Apr 2017 18:55:07 +0000
- Thread-topic: Handling exceptions with Mach ports
Hi all
I am trying to handle a segfault at the Mach port level (as opposed to the BSD signal level). I am doing this for a specific reason.
The problem I am having is telling the kernel that I have handled the exception and that it should keep calm and carry on. Regardles
whether or not I return KERN_SUCCESS from my handler, the segfault is always handled at a subsequent level and the application
crashses with the normal "Segmentation Fault: 11" message.
Do I need to alter the thread state before returning from my handler? Everything I have seen in the (limited) documentation and
kernel source, and in examples such as thisĀ
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?
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