Bug 16205 - [scarthgap] AB-INT: qemux86 segfaulted during QemuTest.test_qemu_can_boot_nfs_and_shutdown
Summary: [scarthgap] AB-INT: qemux86 segfaulted during QemuTest.test_qemu_can_boot_nfs...
Status: NEW
Alias: None
Product: Functional (self) Testing
Classification: QA/Testing
Component: oe-selftest (show other bugs)
Version: 5.0.16
Hardware: x86 Multiple
: Medium normal
Target Milestone: 5.0.22
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2026-03-17 13:45 UTC by Yoann Congal
Modified: 2026-07-23 15:15 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Failing qemu boot log (15.96 KB, application/octet-stream)
2026-03-17 13:45 UTC, Yoann Congal
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yoann Congal 2026-03-17 13:45:32 UTC
Created attachment 5203 [details]
Failing qemu boot log

scarthgap qemux86-tc ubuntu2404-vk-2 https://autobuilder.yoctoproject.org/valkyrie/#/builders/28/builds/3344 :
2026-03-17 02:10:37,484 - oe-selftest - INFO - runqemu.QemuTest.test_qemu_can_boot_nfs_and_shutdown (subunit.RemotedTestCase)
2026-03-17 02:10:37,485 - oe-selftest - INFO -  ... ERROR

The deepest cause I could find was qemu segfaulting: in host dmesg:
  [630736.180579] qemu-system-i38[1748257]: segfault at 7af13716fc39 ip 00005f35a0aa5885 sp 00007af6a35fd320 error 4 in qemu-system-i386[5f35a071e000+5c9000] likely on CPU 6 (core 32, socket 0)
  [630736.180601] Code: 00 00 00 66 90 41 56 49 89 ce 41 55 49 89 d5 41 54 49 89 fc 55 48 89 f5 53 48 8b 07 44 89 c3 48 85 c0 74 21 48 3b 47 38 74 1b <48> 83 78 08 00 48 8b 10 75 20 48 8b 48 28 48 39 ce 0f 83 a4 00 00

Build log extract:
runqemu - INFO - Running /srv/pokybuild/yocto-worker/qemux86-tc/build/build-st-1404072/tmp/work/x86_64-linux/qemu-helper-native/1.0/recipe-sysroot-native/usr/bin/qemu-system-i386 -device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:0e -netdev tap,id=net0,ifname=tap6,script=no,downscript=no -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0  -usb -device usb-tablet -usb -device usb-kbd   -cpu IvyBridge -machine q35,i8042=off -smp 4 -m 256 -serial tcp:127.0.0.1:48023,nodelay=on -serial tcp:127.0.0.1:49377,nodelay=on  -pidfile /srv/pokybuild/yocto-worker/qemux86-tc/build/build-st-1404072/pidfile_1404072  -S -qmp unix:./.rwmgjbyo,server,wait -qmp unix:./.l6uszbg1,server,nowait -nographic  -kernel /srv/pokybuild/yocto-worker/qemux86-tc/build/build-st-1404072/tmp/deploy/images/qemux86/bzImage -append 'root=/dev/nfs nfsroot=192.168.7.13:/srv/pokybuild/yocto-worker/qemux86-tc/build/build-st-1404072/tmp/deploy/images/qemux86/core-image-minimal-qemux86.rootfs-nfsroot,nfsvers=3,port=3048,tcp,mountport=3048 rw  ip=192.168.7.14::192.168.7.13:255.255.255.0::eth0:off:8.8.8.8 net.ifnames=0 console=ttyS0 console=ttyS1 oprofile.timer=1 tsc=reliable no_timer_check rcupdate.rcu_expedited=1 swiotlb=0  printk.time=1'

runqemu - INFO - Host uptime: 630730.46


Waiting at most 1000 seconds for login banner (03/17/26 02:10:30)
Connection from 127.0.0.1:58182
Exception ['Traceback (most recent call last):\n', '  File "/srv/pokybuild/yocto-worker/qemux86-tc/build/meta/lib/oeqa/utils/qemurunner.py", line 746, in threadtarget\n    self.eventloop()\n', '  File "/srv/pokybuild/yocto-worker/qemux86-tc/build/meta/lib/oeqa/utils/qemurunner.py", line 816, in eventloop\n    data = self.recv(1024, self.readsock)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', '  File "/srv/pokybuild/yocto-worker/qemux86-tc/build/meta/lib/oeqa/utils/qemurunner.py", line 860, in recv\n    raise Exception("Console connection closed unexpectedly")\n', 'Exception: Console connection closed unexpectedly\n'] in logging thread
Tearing down logging thread
QEMU socket disconnected before login banner reached. (03/17/26 02:10:33)
Last 25 lines of login console (0):

Last 25 lines of all logging (16334):
[    1.347963] pci 0000:00:01.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
[    1.350200] pci 0000:00:02.0: [1af4:1000] type 00 class 0x020000
[    1.352342] pci 0000:00:02.0: reg 0x10: [io  0xc040-0xc05f]
[    1.354208] pci 0000:00:02.0: reg 0x14: [mem 0xfebd1000-0xfebd1fff]
[    1.359133] pci 0000:00:02.0: reg 0x20: [mem 0xfe000000-0xfe003fff 64bit pref]
[    1.362342] pci 0000:00:02.0: reg 0x30: [mem 0xfeb80000-0xfebbffff pref]
[    1.363833] pci 0000:00:03.0: [1af4:1005] type 00 class 0x00ff00
[    1.365342] pci 0000:00:03.0: reg 0x10: [io  0xc060-0xc07f]
[    1.366342] pci 0000:00:03.0: reg 0x14: [mem 0xfebd2000-0xfebd2fff]
[    1.372342] pci 0000:00:03.0: reg 0x20: [mem 0xfe004000-0xfe007fff 64bit pref]
[    1.373803] pci 0000:00:1d.0: [8086:2934] type 00 class 0x0c0300
[    1.379403] pci 0000:00:1d.0: reg 0x20: [io  0xc080-0xc09f]
[    1.383623] pci 0000:00:1d.1: [8086:2935] type 00 class 0x0c0300
[    1.387994] pci 0000:00:1d.1: reg 0x20: [io  0xc0a0-0xc0bf]
[    1.392003] pci 0000:00:1d.2: [8086:2936] type 00 class 0x0c0300
[    1.395342] pci 0000:00:1d.2: reg 0x20: [io  0xc0c0-0xc0df]
[    1.398486] pci 0000:00:1d.7: [8086:293a] type 00 class 0x0c0320
[    1.400845] pci 0000:00:1d.7: reg 0x10: [mem 0xfebd3000-0xfebd3fff]
[    1.406946] pci 0000:00:1f.0: [8086:2918] type 00 class 0x060100
[    1.408505] pci 0000:00:1f.0: quirk: [io  0x0600-0x067f] claimed by ICH6 ACPI/GPIO/TCO
[    1.411449] pci 0000:00:1f.2: [8086:2922] type 00 class 0x010601
[    1.418898] pci 0000:00:1f.2: reg 0x20: [io  0xc0e0-0xc0ff]
[    1.422078] pci 0000:00:1f.2: reg 0x24: [mem 0xfebd4000-0xfebd4fff]
[    1.424869] pci 0000:00:1f.3: [8086:2930] type 00 class 0x0c0500
[    1.429363] pci 0000:00:1f.3: reg 0x20: [io  0x0700-0x073f]
Check full boot log: /srv/pokybuild/yocto-worker/qemux86-tc/build/build-st-1404072/tmp/work/qemux86-poky-linux/core-image-minimal/1.0/testimage/qemu_boot_log.20260317020917
qemu-system ended unexpectedly
Comment 1 Yoann Congal 2026-03-17 13:50:05 UTC
Also suspicious: this extract: ("Bad file descriptor" and "TCG doesn't support requested feature")
runqemu - INFO - Cleaning up
runqemu - INFO - Host uptime: 630734.46

runqemu - INFO - Shutting down the userspace NFS server...
Getting sysroot...
PSEUDO=/srv/pokybuild/yocto-worker/qemux86-tc/build/build-st-1404072/tmp/work/x86_64-linux/qemu-helper-native/1.0/recipe-sysroot-native/usr/bin/pseudo
Stopping rpc.nfsd
Removing exports file
runqemu - INFO - Removing /srv/pokybuild/yocto-worker/qemux86-tc/build/build-st-1404072/tmp/deploy/images/qemux86/core-image-minimal-qemux86.rootfs-nfsroot
runqemu - INFO - Removing /srv/pokybuild/yocto-worker/qemux86-tc/build/build-st-1404072/tmp/deploy/images/qemux86/core-image-minimal-qemux86.rootfs-nfsroot.pseudo_state
tput: No value for $TERM and no -T specified

Extra log data exception OSError(9, 'Bad file descriptor')
Sending SIGTERM to runqemu
Output from runqemu:
runqemu - ERROR - Failed to run qemu: qemu-system-i386: -qmp unix:./.rwmgjbyo,server,wait: info: QEMU waiting for connection on: disconnected:unix:./.rwmgjbyo,server=on
qemu-system-i386: warning: TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
qemu-system-i386: warning: TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
qemu-system-i386: warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.lm [bit 29]
qemu-system-i386: warning: TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
qemu-system-i386: warning: TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
qemu-system-i386: warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.lm [bit 29]
qemu-system-i386: warning: TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
qemu-system-i386: warning: TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
qemu-system-i386: warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.lm [bit 29]
qemu-system-i386: warning: TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
qemu-system-i386: warning: TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
qemu-system-i386: warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.lm [bit 29]
Comment 2 Randy MacLeod 2026-03-19 14:44:59 UTC
See if it happens again.
Comment 3 Yoann Congal 2026-03-19 15:13:28 UTC
> qemu-system-i386: warning: TCG doesn't support requested feature: CPUID.80000001H:EDX.lm [bit 29]

Someone mentioned at the bugtriage call that this is a 64 bits feature check but the qemu is i386 and the target userland should be as well...
RP mentioned that this test may be one of the rare one that run *without KVM*.

TCG means Tiny Code Generator (TCG): https://wiki.qemu.org/Documentation/TCG