summary refs log tree commit diff stats
path: root/gitlab/issues/target_missing/host_missing/accel_missing/2202.toml
blob: e1b9c5caf6427b4eb26656467f52365abf68c37e (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
29
30
31
32
33
34
35
36
37
38
39
40
41
id = 2202
title = "Crash in contrib/elf2dmp"
state = "closed"
created_at = "2024-03-01T02:16:08.687Z"
closed_at = "2024-03-12T14:17:45.034Z"
labels = ["kind::Bug"]
url = "https://gitlab.com/qemu-project/qemu/-/issues/2202"
host-os = "Ubuntu-22.04"
host-arch = "x86_64"
qemu-version = "QEMU emulator version 8.1.50 (v8.1.0-1848-g8b01683e85)"
guest-os = "n/a"
guest-arch = "n/a"
description = """The elf2dmp program crash.
```
$ ./contrib/elf2dmp/elf2dmp ./crash_1 /dev/null
Using Linux mmap
[1]    994585 segmentation fault  ./contrib/elf2dmp/elf2dmp ./crash_1 /dev/null
```"""
reproduce = """1. build the qemu project following standard steps
2. navigate to the `build` directory and run `./contrib/elf2dmp/elf2dmp ./crash_1 /dev/null`

The [crash_1](/uploads/d0890c0f8873b8264c417b0f98ee83a4/crash_1) file."""
additional = """Run in GDB.
```
$ gdb ./contrib/elf2dmp/elf2dmp
...
(gdb) set args ./crash_1 /dev/null
(gdb) r
Starting program: /data/share/qemu_latest/build/contrib/elf2dmp/elf2dmp ./crash_1 /dev/null
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Using Linux mmap

Program received signal SIGSEGV, Segmentation fault.
init_states (qe=0x7fffffff83f0) at ../contrib/elf2dmp/qemu_elf.c:66
66          Elf64_Nhdr *start = (void *)((uint8_t *)qe->map + phdr[0].p_offset);
(gdb) bt
#0  init_states (qe=0x7fffffff83f0) at ../contrib/elf2dmp/qemu_elf.c:66
#1  QEMU_Elf_init (qe=qe@entry=0x7fffffff83f0, filename=<optimized out>) at ../contrib/elf2dmp/qemu_elf.c:235
#2  0x0000555555555508 in main (argc=<optimized out>, argv=0x7fffffffdb58) at ../contrib/elf2dmp/main.c:538
```"""