-
Notifications
You must be signed in to change notification settings - Fork 34
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
RuntimeError: Emulation crashed at 0x80051F8 #60
Comments
"read unmapped" errors occur when an instruction (in this case the one at
|
looking at
which will allocate 1 KB of data starting at 0xdead0000 |
I encountered an error while generating a trace for other encrypted codes. How can this be resolved?
Traceback (most recent call last):
File "/home/alex/project_wpj/rainbow/rainbow/rainbow.py", line 275, in start
self.emu.emu_start(begin, end, timeout=timeout, count=count)
File "/home/alex/miniconda3/envs/Rainbow/lib/python3.8/site-packages/unicorn/unicorn.py", line 547, in emu_start
raise UcError(status)
unicorn.unicorn.UcError: Invalid memory read (UC_ERR_READ_UNMAPPED)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/alex/project_wpj/rainbow/examples/kyber512/cortexm_aes.py", line 66, in
container = CortexMAesContainer(N)
File "/home/alex/miniconda3/envs/Rainbow/lib/python3.8/site-packages/lascar/container/container.py", line 427, in init
trace = self.generate_trace(0)
File "/home/alex/project_wpj/rainbow/examples/kyber512/cortexm_aes.py", line 59, in generate_trace
leakage = kyber_enc_dec()
File "/home/alex/project_wpj/rainbow/examples/kyber512/cortexm_aes.py", line 28, in kyber_enc_dec
e.start(e.functions["PQCLEAN_KYBER512_CLEAN_crypto_kem_keypair"] | 1, 0)
File "/home/alex/project_wpj/rainbow/rainbow/generics/cortexm.py", line 79, in start
return super().start(begin | 1, *args, **kwargs)
File "/home/alex/project_wpj/rainbow/rainbow/rainbow.py", line 279, in start
raise RuntimeError(f"Emulation crashed at 0x{pc:X}") from e
RuntimeError: Emulation crashed at 0x80051F8
The text was updated successfully, but these errors were encountered: