-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugger exceptions from dynamically generated code causes the debugger to pseudo hang. #106
Comments
I'm investigating this and it looks like the debugger does catch the exception, although I do see that the call stack is not produced, and the disassembly view does not work. The exception info is displayed in the bottom left-hand corner: Can you confirm this is what you see, or do you not even see this exception info at the bottom? Just in case it matters, I am building from the top of |
Hey Ryan. Yes I see the same results as you, the exception is caught according to the info at the bottom (0x80000003). |
Got it. I've fixed a number of bugs or unsupported behavior for JIT'd code in 804a840 and abb2dd7. There is one major stumbling block for JIT'd code still, though, which is that the disassembly system/UI do not currently assume that the actual code memory will change, and thus hot-reload when the JIT'd code's memory changes, and so on. I'll let you know when that is fixed. |
As of 0ead1c0 (currently just on |
Hey @ryanfleury, just letting you know JIT debugging is broken on the latest version (8901dd3). The call stack is missing. If the disassembly view has not loaded anything it will correctly disassemble the JITTed code. However if the dissasembly view already has some other code loaded it will not show the JITTed code. Same test as before:
|
This should be re-fixed as of 489ae56. |
If you run this code it pseudo hangs the debugger. Namely the int3 (0xCC) instruction is never caught by the debugger (no call stack, etc) and the disassembly view becomes "hung" in a forever loading loop. This will be a problem for JITted code.
The text was updated successfully, but these errors were encountered: