blob: bf2a4184ab33264666eaf83ace5f2f4a96f23dc6 (
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
|
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
|