blob: 5a7a8d6672c5a8cee52826195b7130b0d0a5534f (
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
25
26
27
28
|
instruction: 0.587
runtime: 0.239
syscall: 0.174
QEMU in user-mode emulation mode crashes when the user program jumps to an invalid address
Running this code:
void (*func)() = 0x12345678;
int main()
{
func();
return 0;
}
Produces the following output:
qemu-arm-static: /build/qemu-DqynNa/qemu-2.8+dfsg/translate-all.c:175: tb_lock: Assertion `!have_tb_lock' failed.
qemu-arm-static: /build/qemu-DqynNa/qemu-2.8+dfsg/translate-all.c:175: tb_lock: Assertion `!have_tb_lock' failed.
Segmentation fault
The expected result is as follows:
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
|