-
Notifications
You must be signed in to change notification settings - Fork 945
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
Decompilation fails with "Could not acquire a cryptographic context" #676
Comments
Im on win 64b with 8gb ram. Im using 64b version of this tool with --no-memory-limit and it still fails :(
|
Does the same error happen when decompiling different input files, or just for some of them? Would it be possible to share the input file with us so we can try to reproduce the issue? |
Sharing the exe would violate legit stuff :( |
I tried it with GIMP executable
process went further but also died |
I have what seems to be the same problem. After adding --no-memory-limit, it ran for over 2500(!) seconds, and multiple times during the process peaked its memory usage at a whopping 9.5 GB! The file being decompiled is under 18 MB... it used more than 500 times the memory of the size of the file itself! Something is obviously very wrong here. To be clear, it still finally failed, which coincided with many of my applications simultaneously crashing, probably due to my 32 GB pagefile finally getting full... Running phase: Initialization ( 0.04s ) |
That sounds fairly normal. Memory usage goes up exponentially with increasing executable size, not linearly. Just a few megabytes does need many gigabytes to reconstruct the complete program logic, as you've seen, though you can bypass individual stages that fail in exchange for worse output. If you can pick out the parts that matter, you can get much faster results that won't up and die like this. |
How long can the process take? I'm in "Input binary to LLVM IR decoding" for 3 hrs. Task manager shows changing huge ram usage. |
High memory and processing-time requirements are one of the issues that we constantly face and which need to be improved. As a rule of thumb, if a decompilation runs more than e.g. 30 minutes, the results probably won't be useful. In such cases, it is suggested to perform selective decompilation (decompile only the given functions via As for the |
I am closing the issue as I do not believe there is anything else to be added here. If you wish to re-open, please share with us one of the executable files that you are unable to decompile so we can investigate. However, please bare with mind the above-mentioned comment of mine. |
Running phase: Input binary to LLVM IR decoding ( 2.36s )
LLVM ERROR: Could not acquire a cryptographic context: Not enough memory resources are available to process this command. (0x8)
Error: Decompilation to LLVM IR failed
Sorry, another issue here
The text was updated successfully, but these errors were encountered: