Re: Handling exceptions with Mach ports
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Thread-index: AQHSt6whdBYCLvWyZ0akA2GbGcRr/qHKfn0AgAATmoA= 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...
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 (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
participants (1)
-
Junker, Gregory