dracutdevs / dracut

dracut the event driven initramfs infrastructure
https://github.com/dracutdevs/dracut/wiki
GNU General Public License v2.0
597 stars 396 forks source link

Tests failing in Arch due to segmentation fault in `run-qemu` #2506

Closed aafeijoo-suse closed 10 months ago

aafeijoo-suse commented 1 year ago

E.g.: https://github.com/dracutdevs/dracut/actions/runs/6022358884/job/16336946730?pr=2317#step:4:87

2023-08-30T08:20:11.1639736Z run-qemu: /usr/bin/qemu-system-x86_64 '-cpu' 'IvyBridge-v2' '-M' 'q35' '-smp' '2' '-m' '1024' '-nodefaults' '-vga' 'none' '-display' 'none' '-no-reboot' '-device' 'virtio-rng-pci' '-serial' 'stdio' '-kernel' '/lib/modules/6.4.12-arch1-1/vmlinuz' '-drive' 'if=none,format=raw,file=/var/tmp/dracut-test.AYlYTw/marker.img,id=drive-sata0' '-device' 'ide-hd,bus=ide.0,drive=drive-sata0,id=sata0,model=disk,serial=marker' '-drive' 'if=none,format=raw,file=/var/tmp/dracut-test.AYlYTw/root.img,id=drive-sata1' '-device' 'ide-hd,bus=ide.1,drive=drive-sata1,id=sata1,model=disk,serial=root' '-append' 'root=/dev/dracut/root rw rootfstype=ext4 quiet console=ttyS0,115200n81 selinux=0' '-initrd' '/var/tmp/dracut-test.AYlYTw/initramfs.makeroot'
2023-08-30T08:20:11.1858709Z qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
2023-08-30T08:20:11.1866974Z qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
2023-08-30T08:20:11.1867618Z qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EDX.spec-ctrl [bit 26]
2023-08-30T08:20:11.1873851Z qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
2023-08-30T08:20:11.1874469Z qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
2023-08-30T08:20:11.1875070Z qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.07H:EDX.spec-ctrl [bit 26]
2023-08-30T08:20:13.8007356Z ./test.sh: line 24:  2507 Segmentation fault      (core dumped) "$testdir"/run-qemu "${disk_args[@]}" -append "root=/dev/dracut/root rw rootfstype=ext4 quiet console=ttyS0,115200n81 selinux=0" -initrd "$TESTDIR"/initramfs.makeroot
LaszloGombos commented 12 months ago

Upstream qemu issue with qemu v8.1.0, hopefully it will recover over time https://gitlab.com/qemu-project/qemu/-/issues/1834

aafeijoo-suse commented 10 months ago

Arch tests are green again.

LaszloGombos commented 9 months ago

As of Nov-8 all Fedora tests container is the next one impacted by this issue as Fedora release v39 got pulled in. Test run - https://github.com/dracutdevs/dracut/actions/runs/6798478547

qemu version: 2:8.1.1-1.fc39

Crash:

qemu-system-x86_64: ../hw/pci/msix.c:227: msix_table_mmio_write: Assertion `addr + size <= dev->msix_entries_nr * PCI_MSIX_ENTRY_SIZE' failed.```

qemu-system-x86_64: ../softmmu/physmem.c:2419: iotlb_to_section: Assertion `section_index < d->map.sections_nb' failed.



This is not an issue with dracut but impacting dracut and dracut here can help distro's to find important distro regressions like this one.

CC @pvalena @AdamWill
LaszloGombos commented 9 months ago

Fedora container is now updated and this issues is resolved for Fedora as well.