radareorg / iaito

Official QT frontend of radare2
GNU General Public License v3.0
1.02k stars 86 forks source link

Decompiler not working #73

Closed anthraxx closed 2 years ago

anthraxx commented 2 years ago

Environment Details

iaito 5.5.0 24a2eba21c43f42aa4535278be20ff7e957c884d
radare2 5.6.6
r2ghidra a4ba1ddc85c84a98df1d39fe6c611894daa97474
ghidra-native e45b661d59978b371e30a5540064a31e6ea647f0

Description

Decompiler view loads forever and remains empty. pdg command works flawlessly in native r2.

trufae commented 2 years ago

Iaito uses pdgj, which prints the decompilation in json format. Can you try this? Qt/c++ is ultra slow to load this json, as from my checks this was 80% of the time spent in rendering the output of pdg in iaito.

but now that r2 and r2g are out i'll check this out during the weekend. It shouldnt be hard to fix. Thanks for reporting

anthraxx commented 2 years ago

pdgj also works and returns basically instantly. In Iaito it doesn't matter how long I wait, i grabbed a coffee and a tiny test method still didn't show any results in Iaito (cpu usage 0%).

trufae commented 2 years ago

that sounds like a deadlock to me 💀🔒

yechs commented 2 years ago

I've encountered the same problem also on iaito 5.5.0 24a2eba

Both pdg and pdgj works within r2 commandline but not in iaito

hacker-jak commented 2 years ago

Same issue here, latest builds and no iaito decompiler output.

trufae commented 2 years ago

There hasnt been any commits in iaito so its totally expected that the bug wasnt fixed.

I don't plan to spend time in iaito until r2-5.7 is out because im working on important api/abi break changes that are needed to make iaito work properly with thread-safe behaviours.

Contributions and patches are always welcome, but my iaito is far from my main priority. I can guide you if you want to help on that.

trufae commented 2 years ago

I have local fixes for this. Will push soon

trufae commented 2 years ago

Should be fixed now