Skip to content
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

LLVM ERROR: Could not acquire a cryptographic context: Unknown error (0x7F) #387

Closed
asimaranov opened this issue Sep 9, 2018 · 4 comments

Comments

@asimaranov
Copy link

Hi! I got the following error
Running phase: Initialization ( 0.00s )
Running phase: LLVM ( 0.03s )
Running phase: Providers initialization ( 0.03s )
Running phase: Input binary to LLVM IR decoding ( 1.31s )
LLVM ERROR: Could not acquire a cryptographic context: Unknown error (0x7F)
Error: Decompilation to LLVM IR failed
Windows 7, 64b version of decompiler. What could be the problem?

@s3rvac
Copy link
Member

s3rvac commented Sep 9, 2018

Hi. I believe this is caused by insufficient memory in the system when decompiling larger files (see also #73 and #47). Questions:

  1. Could you attach the input binary file that you are trying to decompile?
  2. How much RAM do you have?
  3. Does this happen when decompiling all files, or just with some of them?
  4. You can try decompiling the file as follows, which will disable the default memory limit (half of system RAM). However, beware that the decompilation may eat all your memory:
    python retdec-decompiler.py --no-memory-limit FILE
    

@s3rvac
Copy link
Member

s3rvac commented Sep 28, 2018

@asimaranov Does the issue persist or were you able to resolve it? If the issue persists, please provide answers to the four questions above. If you were able to resolve it, please tell us what you have done. This may be handy for other users who stumble upon the same error in the future.

@s3rvac
Copy link
Member

s3rvac commented Oct 6, 2018

Closing for the lack of response.

@s3rvac s3rvac closed this as completed Oct 6, 2018
@yanmingsohu
Copy link

Yes, adding the '--no-memory-limit' parameter solves the thrown exception. Finally, bin2llvmir uses nearly 3G of memory, my computer's memory is 32G. (google translation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants