Assertion failure (or segmentation fault) running 32-bit x86 Linux guest on 64-bit PowerPC host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
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/
Environment reproduction:
CD image can be obtained at https:/
/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:/
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/
#3 0x0000000100362048 in cpu_loop_exec_tb (tb_exit=<synthetic pointer>, last_tb=<synthetic pointer>, tb=<optimized out>, cpu=<optimized out>) at /usr/src/
#4 0x0000000100362048 in cpu_exec (cpu=<optimized out>) at /usr/src/
#5 0x00000001003211b4 in tcg_cpu_exec (cpu=<optimized out>) at /usr/src/
#6 0x00000001003211b4 in qemu_tcg_
#7 0x00003ffff7fa275c in start (p=0x3fffedb6a810) at src/thread/
#8 0x00003ffff7fae4c8 in __clone () at src/thread/
With --enable-debug-tcg:
Assertion failed: disp == (int16_t) disp (/usr/src/
zsh: abort qemu-system-i386
This appears to be fixed by 9f754620651d343 2114f4bb89c7f12 cbea814b3e and present in 3.0.0. Closing.