-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
"Unknown Error" while decompiling RISC-V binary #2466
Comments
Ah, looks like the issue is
|
@mumbel thanks for providing the solution ! Here for the above two binaries, I created a simple workaround script after learning some ghidra python. The script will calculate the value of However I think this only works in the I think a better way to fix this is to emulate the |
Not sure when the issue was fixed, but have notice that in version 10.3 the issue no longer exist. Closing issue. |
Describe the bug
I've been testing the RISC-V decompiler with the following RISC-V binaries:
Both of them are ELF 64-bit, UCB RISC-V, statically linked binary
( To download : Right click --> Save link as --> Remove the
.jpg
extension )Ghidra failed to decompile some of the functions ( e.g.
main
) in those binaries, showing "Unknown Error" in the decompile window.For example, in the
rrr
binary, ghidra failed to decompile the following functions :__do_global_dtors_aux
print_flag
game
main
The other functions seems to be decompiled normally ( did not check all of them though ).
Same errors occur in
hitree
as well. At least themain
function is not being decompiled.To Reproduce
Steps to reproduce the behavior:
RISCV:LE:64:RV64I (1.2)
( on both binaries ).main
funtion and check the decompile window.Expected behavior
Expected the decompiler work flawlessly.
Screenshots
rrr's main function:
hitree's main function:
Attachments
application.log
Environment
The text was updated successfully, but these errors were encountered: