-
Notifications
You must be signed in to change notification settings - Fork 562
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
CRASH disassembling regdeps ISA with non-DR syntax requested #6942
Comments
I'm solving this in the drmemtrace view tool by forcing DR_DISASM_DR; not 100% sure what the larger fix inside DR core should be. Probably it should not accept other syntax requests. |
style for REGDEPS traces. This change actually sets the disasm syntax to AT&T by default if no module path is passed in; which is what it is supposed to do: but it was not doing that and this breaks 3 tests comparing DR-style output. We put in a quick fix to request DR style for those tests. Issue: #6942
The view tool was blindly loading binaries even for traces that have encodings. This leads to fatal errors when binaries have changed, even when the change has no impact on viewing a trace. We fix that here by reading the filtype at init time. Work around the #6942 crash by always setting the disasm syntax to DR style for REGDEPS traces. This change actually sets the disasm syntax to AT&T by default if no module path is passed in; which is what it is supposed to do: but it was not doing that and this breaks 3 tests comparing DR-style output. We put in a quick fix to request DR style for those tests. Tested locally where the view tool asserts without this fix. Issue: #6940, #6942 Fixes #6940
Ah, interesting. |
Just to be clear I only worked around the crash in the drmemtrace view tool. Any other use of the DR disassembly code on the regdeps ISA would presumably hit the same crash, so we should have some kind of DR core fix. |
I hit this in PR #6941 where the syntax got set to DR_DISASM_ATT and then the view test crashed on its regdeps case. This crash will happen anytime regdeps is disassembled with a syntax other than DR_DISASM_DR:
The text was updated successfully, but these errors were encountered: