-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
commenting in disassembly breaks decompilation #34
Comments
As an aside, one of the times I was testing this while recording I actually got a crash though I haven't been able to reproduce it yet, even following what I thought was the exact same steps. In fact it looks non-deterministic because adding the same comment at the same location sometimes produces different results in the decompilation instruction. I'll try to do it again under a debugger though I do have the screen recording so you can see it happening. I'll file a separate bug if I'm able to reproduce or get more info, just noting it here in case any likely crashing candidates come up while investigating this one. I'd rather not share the minidump for some privacy reasons, but happy to extract some info from it if there's specific questions I can answer, but it seems quite likely that the root cause of this bug will likely fix that as well. |
Thank you for a VERY important issue. This crash is something we will investigate as soon as we can. Thanks! |
I can reproduce this issue with the Cutter Release on macOS, but it seems to be already fixed by 0a2cbda. I can reproduce it quite reliably before the commit, but not after it. About the crash, I am quite sure it is the same issue too, but just to be sure it would be good if you could extract a stacktrace from it. To do so, clone |
Stack trace attached. |
Ok, the stacktrace doesn't say too much, but it's most likely that it is the same issue. Thanks! |
Environment information
Operating System: 10.14.6
Cutter version: Version 1.9.0
Using r2-3.8.0
Based on Qt 5.12.1 (Clang 10.0 (Apple), 64 bit)
File format: ELF, but doesn't look like an elf specific bug.
Describe the bug
Adding comments in disassembly (and maybe even to source I've just tested that less) frequently breaks decompilation, though exactly how it breaks appears inconsistent (maybe dependent on the comment content or length?)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Decompilation is not corrupted but rather shows comments in the appropriate location, or not at all.
Screenshots
In this screenshot, the first comment actually adds a "bad opcode" to the decompilation but the second comment /really/ breaks the output.
The text was updated successfully, but these errors were encountered: