summary refs log tree commit diff stats
path: root/results/classifier/zero-shot-user-mode/instruction/1724485
blob: b0f06b5d214a120d8e8a8e86a8ca010ac71ed22f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
instruction: 0.529
runtime: 0.258
syscall: 0.213



Invalid assertion in arm_read_memory_func

Hi,

I think there is an invalid assertion in arm_read_memory_func:
assert(info->endian == BFD_ENDIAN_LITTLE)

I face it in the following use case: target armeb-linux (I use qemu user mode), -d in_asm -cpu any.

At some point during program startup, glibc's _dl_new_object calls strlen, which is written in thumb2 mode (armv6t2). So print_insn_arm() calls arm_read_memory_func() with length==2, and info->flags == INSN_ARM_BE32, and the assert is false.

If I remove the assert, execution continues OK.

With the assert, I get the error message from the assert, and qemu then stalls.

Can you confirm the assert can be removed? Or if not, explain me how to avoid/fix the subsequent qemu stall?

Thanks