mahaloz / decomp2dbg

A plugin to introduce interactive symbols into your debugger from your decompiler
BSD 2-Clause "Simplified" License
591 stars 39 forks source link

Start failure on IDA Python 3.12 #95

Open MinatoTW opened 3 months ago

MinatoTW commented 3 months ago

After installing via pip and selecting IDA pro, IDA pro crashes with "Error 1442" on opening. Problem is resolved after deleting decomp2dbg file and folder from plugins.

image

Python version 3.12 on Arch Linux 64 bit.

mahaloz commented 3 months ago

And you're 100% d2d is the only culprit? I ran latest d2d on ida 8.4 for Mac and it worked great this weekend.

I find it strange since the plugin, on load from ida, only makes a toolbar menu.

MinatoTW commented 3 months ago

Yes, I'm sure. It happened as soon as I installed the plugin and goes away when I delete it. Looked at the strings in the generated IDA dump and it had the d2d file path in it.

mahaloz commented 3 months ago

Alright, this one may take a while to close. I don't have access to a Linux copy of IDA Pro 8.4 yet, and I don't see any obvious bugs in our current implementation. Maybe 3.12 is a culprit here. Any chance you can execute your idapyswitch binary in your IDA install, switch to non-3.12, and report back if it still does this?

MinatoTW commented 3 months ago

Yup, it was 3.12, works with 3.10. Thank you, this plugin is amazing.

MinatoTW commented 3 months ago

Although, now after i connect with GDB (GEF) I get the error [!] Command 'context' failed to execute properly, reason: 'NoneType' object has no attribute 'items'. It's able to resolve main but no pseudocode. I guess that's related to the python version too?

MinatoTW commented 3 months ago

Never mind, that binary had issues with decompilation due to a huge stack frame.