Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QEMU segfaults #721

Open
mrc0mmand opened this issue Mar 28, 2024 · 2 comments
Open

QEMU segfaults #721

mrc0mmand opened this issue Mar 28, 2024 · 2 comments

Comments

@mrc0mmand
Copy link
Member

mrc0mmand commented Mar 28, 2024

Looks like the patch for the intermittent segfaults doesn't work (or maybe I f-ed up when rewriting it for the C9S package).

From one of today's runs:

+ timeout --foreground 600 /bin/qemu-system-x86_64 -smp 8 -net none -m 768M -nographic -kernel /boot/vmlinuz-5.14.0-432.el9.x86_64 -drive format=raw,cache=unsafe,file=/var/tmp/systemd-tests/systemd-test.Ok5T1x/basic.img -device virtio-rng-pci,max-bytes=1024,period=1000 -cpu max -initrd /var/tmp/ci-sanity-initramfs-5.14.0-390.el9.x86_64.img -append 'root=LABEL=systemd_boot rw raid=noautodetect rd.luks=0 loglevel=2 init=/usr/lib/systemd/systemd console=ttyS0 SYSTEMD_UNIT_PATH=/usr/lib/systemd/tests/testdata/testsuite-01.units:/usr/lib/systemd/tests/testdata/units: systemd.unit=testsuite.target systemd.wants=testsuite-01.service noresume oops=panic panic=1 softlockup_panic=1 systemd.wants=end.service foo -- -z bar --- baz debug systemd.log_level=debug rd.systemd.log_target=console systemd.default_standard_output=journal+console'
+ tee /var/tmp/systemd-tests/systemd-test.Ok5T1x/console.log
qemu-system-x86_64: warning: Machine type 'pc-i440fx-rhel7.6.0' is deprecated: machine types for previous major releases are deprecated
�c�[?7l�[2J�[0mSeaBIOS (version 1.16.3-2.el9)
Booting from ROM...
early console in setup code
Probing EDD (edd=off to disable)... o�c�[?7l�[2Jtimeout: the monitored command dumped core
..//test-functions: line 637: 123014 Segmentation fault      "${qemu_cmd[@]}" "${qemu_options[@]}" -append "${kernel_params[*]} ${KERNEL_APPEND:-}" 2>&1
     123015 Done                    | tee "${TESTDIR:?}/console.log"
E: qemu failed with exit code 139

The original workarounds were brought back (81d3e80) to make the CI stable again.

AI: investigate (probably build latest QEMU from git and revive #703)

@mrc0mmand
Copy link
Member Author

Replacing the stock QEMU with a git one on C9S:

# XXX
dnf remove -y qemu-kvm
dnf builddep -y --enablerepo crb qemu-kvm
dnf install -y bzip2
git clone https://gitlab.com/qemu-project/qemu --branch staging-8.2
pushd qemu
./configure --target-list=x86_64-softmmu --enable-debug
make -j "$(nproc)"
./build/qemu-system-x86_64 --version
ln -svf "$PWD/build/qemu-system-x86_64" /usr/bin/qemu-system-x86_64
popd

@mrc0mmand
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant