summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/118/unknown/1790018
blob: 4a5eee0c53d1cb8df9b5a7451fd2b7cd0f898d66 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
permissions: 0.860
mistranslation: 0.839
x86: 0.839
peripherals: 0.831
user-level: 0.829
virtual: 0.827
KVM: 0.803
hypervisor: 0.802
ppc: 0.801
register: 0.786
performance: 0.784
device: 0.782
risc-v: 0.773
arm: 0.769
TCG: 0.766
debug: 0.764
i386: 0.764
architecture: 0.738
semantic: 0.734
vnc: 0.733
VMM: 0.725
socket: 0.714
files: 0.712
network: 0.707
graphic: 0.707
kernel: 0.705
assembly: 0.702
PID: 0.697
boot: 0.695

Assertion failure (or segmentation fault) running 32-bit x86 Linux guest on 64-bit PowerPC host

Qemu 2.12.1 (also tried 2.12.0)
Linux gwyn 4.14.48-mc8-easy #1 SMP Sat Jun 30 23:29:01 CDT 2018 ppc64 GNU/Linux
gcc (Adelie 6.4.0-r9) 6.4.0
GNU assembler (GNU Binutils) 2.30
musl libc (powerpc64) Version 1.1.19

64-bit, 64-thread (16-core) POWER9 server in Big endian mode:
processor       : 0
cpu             : POWER9, altivec supported
clock           : 3000.000000MHz
revision        : 2.2 (pvr 004e 1202)

Scenario:

Attempting to install Adélie Linux 32-bit x86 guest on 64-bit PowerPC host using qemu-system-i386.


Command line:

/usr/bin/qemu-system-i386 -cdrom adelie-live-pmmx-1.0-beta1-20180807.iso -hda /dev/gwyn/x86 -m 512 -cpu pentium3


Environment reproduction:

CD image can be obtained at https://distfiles.adelielinux.org/adelie/1.0-beta1/iso/adelie-live-pmmx-1.0-beta1-20180807.iso
/dev/gwyn/x86 is an LVM2 logical volume, 4 GB in size, on NVMe storage
Qemu was built from sources on this machine, with some distribution patches applied for musl support (does not affect tcg/ppc/* code); patches and build recipe (which was modified: https://bpaste.net/show/1bbb1d07d7f2 for recipe patch) can be found at: https://code.foxkit.us/adelie/packages/blob/master/user/qemu/APKBUILD


Without --enable-debug-tcg:

Thread 5 "qemu-system-i38" received signal SIGSEGV, Segmentation fault.
[Switching to LWP 14090]
0x39fb04787f63db78 in ?? ()
(gdb)
(gdb) bt
#0  0x39fb04787f63db78 in  ()
#1  0x00003ffff1cdb160 in code_gen_buffer ()
#2  0x0000000100362048 in cpu_tb_exec (itb=<optimized out>, cpu=<optimized out>) at /usr/src/packages/user/qemu/src/qemu-2.12.1/accel/tcg/cpu-exec.c:169
#3  0x0000000100362048 in cpu_loop_exec_tb (tb_exit=<synthetic pointer>, last_tb=<synthetic pointer>, tb=<optimized out>, cpu=<optimized out>) at /usr/src/packages/user/qemu/src/qemu-2.12.1/accel/tcg/cpu-exec.c:626
#4  0x0000000100362048 in cpu_exec (cpu=<optimized out>) at /usr/src/packages/user/qemu/src/qemu-2.12.1/accel/tcg/cpu-exec.c:734
#5  0x00000001003211b4 in tcg_cpu_exec (cpu=<optimized out>) at /usr/src/packages/user/qemu/src/qemu-2.12.1/cpus.c:1362
#6  0x00000001003211b4 in qemu_tcg_rr_cpu_thread_fn (arg=<optimized out>) at /usr/src/packages/user/qemu/src/qemu-2.12.1/cpus.c:1461
#7  0x00003ffff7fa275c in start (p=0x3fffedb6a810) at src/thread/pthread_create.c:147
#8  0x00003ffff7fae4c8 in __clone () at src/thread/powerpc64/clone.s:43



With --enable-debug-tcg:

Assertion failed: disp == (int16_t) disp (/usr/src/packages/user/qemu/src/qemu-2.12.1/tcg/ppc/tcg-target.inc.c: reloc_pc14_val: 204)
zsh: abort      qemu-system-i386

This appears to be fixed by 9f754620651d3432114f4bb89c7f12cbea814b3e and present in 3.0.0.  Closing.