Cutter: Ghidra decompiler not working after saving problem

Created on 27 Nov 2019  路  2Comments  路  Source: rizinorg/cutter

Environment information

  • Operating System: Arch Linux
  • Cutter version: Cutter-v1.9.0-x64.Linux.AppImage
  • Dependencies : I removed all radare2 packages from the system, to see how it goes with what's in the appimage

Describe the bug

When saving a project and re-opening it, the ghidra decompiler parser no longer works ("Failed to parse JSON from r2ghidra")

To Reproduce

Use the app image, save a project, reopen it, and try to use the decompiler.

What I think the problem is

I think I have found a cause for this problem, as well as a functioning workaround until a fixe is made. When saving the project, the rc file has the following line :

"e r2ghidra.sleighhome = /tmp/.mount_CutteryMD9MD/usr/share/radare2/plugins/r2ghidra_sleigh"

Given that the plugins seem to be temporarily mounted, when restarting cutter the path may have changed, giving my error.

Workaround

I simply remove that line from the rc project file (sed -i '/ghidra.*home/d' rc is enough)

Side note

I'd like to thank everyone who has been working on this marvelous project, which is now even better now with the implementation of ghidra's algorithms. Many hugs to y'all ! :)

Projects Triage Needed

Most helpful comment

I have the same problem on arch linux, but instead of "Failed to parse JSON from r2ghidra" I get "// Ghidra Decompiler Error: No sleigh specification for x86:LE:64:default".

The solution is the same as the one found by @lazytanuki:

sed -i '/ghidra.*home/d' rc

I tried from cutter version 1.10.1 to 1.10.3 and they have all this problem

All 2 comments

Sorry for getting to the issue only now, thank you for your nice words! Appreciate it :)

CC @thestr4ng3r

I have the same problem on arch linux, but instead of "Failed to parse JSON from r2ghidra" I get "// Ghidra Decompiler Error: No sleigh specification for x86:LE:64:default".

The solution is the same as the one found by @lazytanuki:

sed -i '/ghidra.*home/d' rc

I tried from cutter version 1.10.1 to 1.10.3 and they have all this problem

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xarkes picture xarkes  路  4Comments

hamsterwoede picture hamsterwoede  路  4Comments

AxelPotato picture AxelPotato  路  4Comments

dhucul picture dhucul  路  3Comments

s0i37 picture s0i37  路  5Comments