site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Thread-index: AQHSt6whdBYCLvWyZ0akA2GbGcRr/g== 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com