Very slow analysis for a small exe, how to debug? #8491
-
I am decompiling a small exe (1.6mb) and I've written a little pyghidra script to do this, and the analysis takes ~1 hour, and ultimately returns a single non stub function (and about 6000 functions total). I'm not doing anything fancy as far as I can tell. Other larger binaries are much faster. Mostly I'd like to be able to have a way of identifying this and cancelling programmatically without just setting a generic timeout if I decompile more binaries that have this same issue and also make sure i'm not doing something especially dumb I hooked up a TaskMonitor for logging and the culprit seems to be Decompile Parameter ID. I'm on a 16core machine, and it is definitely using the cores to do...something. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
For reference this is basically how I am doing it:
This block is taking ~1 hour. I believe I have also given ghidra adequate memory: launcher = HeadlessPyGhidraLauncher() |
Beta Was this translation helpful? Give feedback.
-
It sounds like you have figured out how to implement a timeout solution. But, you are looking to examine the state of things while analysis is going, and then cancel based on some condition other than time? |
Beta Was this translation helpful? Give feedback.
It looks like a .NET binary, which we don't have great support for. Specifically, we don't support the processor.