summary refs log tree commit diff stats
path: root/results/scraper/launchpad/1812861
blob: 57379d7dd0ead287eb99b490d091ee405c3a5b07 (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
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



I'm not sure exactly when we fixed this (the fix is probably in the 4.1 release) but as of current head-of-git this correctly generates the SIGSEGV.