Right way of handling various exceptions?
Posted: Fri Jun 25, 2021 11:08 pm
So I know how to handle some of the common exceptions (page fault, double fault, general protection, etc). What I'm confused about handling are the other exceptions -- overflow, bounds range exceeded, division by zero, any SIMD exception, that sort of thing.
What is the proper way of handling these? The intel manual (and even aMD manual) is silent on these and doesn't explain how to handle them. I thought that I might need to go in and "patch" the process that triggered the exception via looking at the RIP and changing it to something else, but that seems both ridiculously invasive and far too complicated. Not to mention the number of conditions that can generate these exceptions. So how do you guys handle these?
What is the proper way of handling these? The intel manual (and even aMD manual) is silent on these and doesn't explain how to handle them. I thought that I might need to go in and "patch" the process that triggered the exception via looking at the RIP and changing it to something else, but that seems both ridiculously invasive and far too complicated. Not to mention the number of conditions that can generate these exceptions. So how do you guys handle these?