Skip to content

jit: Assertion while running aes.elfΒ #347

@jserv

Description

@jserv

The assertion error occurs when the JIT-enabled emulator is executing the aes.elf program:

Assertion failed: (state->offset <= state->size - len), function emit_bytes, file jit.c, line 281.

The way to reproduce:

$ make ENABLE_JIT=1 distclean all
...
AES-128 FPE decryption: PASSED!
AES-128 key wrapping  : PASSED!
AES-128 key unwrapping: PASSED!
+-> Let's do some extra tests
Assertion failed: (state->offset <= state->size - len), function emit_bytes, file jit.c, line 281.

Without JIT compiler, it is able to run:

$ make ENABLE_JIT=0 distclean all
$ build/rv32emu build/aes.elf
...
AES-128 EAX encryption: PASSED!
AES-128 EAX decryption: PASSED!
AES-128 Poly1305 auth.: PASSED!
AES-128 Poly1305 auth.: PASSED!
inferior exit code 0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions