[Bug 765038] New: qemu-kvm segfaults when running a Factory guest
https://bugzilla.novell.com/show_bug.cgi?id=765038 https://bugzilla.novell.com/show_bug.cgi?id=765038#c0 Summary: qemu-kvm segfaults when running a Factory guest Classification: openSUSE Product: openSUSE 12.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: seife@novell.slipkontur.de QAContact: qa-bugs@suse.de Found By: Third Party Developer/Partner Blocker: --- after the update to kvm-1.1rc, it segfaults in the middle of booting a openSUSE Factory guest: [638165.373141] qemu-kvm[6598]: segfault at 10 ip 00007ff23ccf731e sp 00007ff23349d8d0 error 4 in qemu-kvm[7ff23cbb2000+35e000] [638224.811322] qemu-kvm[6778]: segfault at 10 ip 00007f8de0de331e sp 00007f8dd75898d0 error 4 in qemu-kvm[7f8de0c9e000+35e000] [638330.205902] qemu-kvm[7059]: segfault at 10 ip 00007f350467131e sp 00007f34fae178d0 error 4 in qemu-kvm[7f350452c000+35e000] [638388.868903] qemu-kvm[7201]: segfault at 10 ip 00007f16d269331e sp 00007f16c8e398d0 error 4 in qemu-kvm[7f16d254e000+35e000] [638436.443147] qemu-kvm[7389]: segfault at 10 ip 00007f3f96de431e sp 00007f3f8d58a8d0 error 4 in qemu-kvm[7f3f96c9f000+35e000] [638502.479537] qemu-kvm[7525]: segfault at 10 ip 00007f130afa931e sp 00007f130174f8d0 error 4 in qemu-kvm[7f130ae64000+35e000] [638612.235978] qemu-kvm[7693]: segfault at 10 ip 00007f842726431e sp 00007f841da0a8d0 error 4 in qemu-kvm[7f842711f000+35e000] [638757.379052] qemu-kvm[8188]: segfault at 10 ip 00007f84c0ae231e sp 00007f84b72888d0 error 4 in qemu-kvm[7f84c099d000+35e000] [638970.023432] qemu-kvm[8554]: segfault at 10 ip 00007fbf2fdaa31e sp 00007fbf265508d0 error 4 in qemu-kvm[7fbf2fc65000+35e000] [639026.377079] qemu-kvm[8741]: segfault at 10 ip 00007fbe2b86231e sp 00007fbe220088d0 error 4 in qemu-kvm[7fbe2b71d000+35e000] [639187.852527] qemu-kvm[9025]: segfault at 10 ip 00007fa1e8bb131e sp 00007fa1df3578d0 error 4 in qemu-kvm[7fa1e8a6c000+35e000] [639260.913286] qemu-kvm[9254]: segfault at 10 ip 00007f55223df31e sp 00007f5518b858d0 error 4 in qemu-kvm[7f552229a000+35e000] I tried to debug it with gdb, however this did not work: susi:~ # pidof qemu-kvm 10108 susi:~ # gdb --pid 10108 GNU gdb (GDB) SUSE (7.3-42.11) Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-suse-linux". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Attaching to process 10108 Reading symbols from /usr/bin/qemu-kvm...Reading symbols from /usr/lib/debug/usr/bin/qemu-kvm.debug...done. Unable to read JIT descriptor from remote memory! (gdb) cont Continuing. Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. (gdb) bt No stack. (gdb) A windows XP guest still runs fine. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=765038 https://bugzilla.novell.com/show_bug.cgi?id=765038#c1 Stefan Seyfried <seife@novell.slipkontur.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |agraf@suse.com AssignedTo|bnc-team-screening@forge.pr |brogers@suse.com |ovo.novell.com | --- Comment #1 from Stefan Seyfried <seife@novell.slipkontur.de> 2012-06-01 10:24:14 CEST --- Sorry, forgot to add the usual suspects to CC :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=765038 https://bugzilla.novell.com/show_bug.cgi?id=765038#c2 --- Comment #2 from Stefan Seyfried <seife@novell.slipkontur.de> 2012-06-01 13:17:48 CEST --- Still works fine with kvm-1.0.1 from http://download.opensuse.org/factory-tested/repo/oss/suse/x86_64/kvm-1.0.1-1... last change: * Mo Apr 23 2012 brogers@suse.com - Update to qemu-kvm v1.0.1 - see http://wiki.qemu.org/ChangeLog/1.0 for details Unfortunately I was not able to check out old revisions from the Virtualization buildservice repo or I would have done a more thorough "bisection". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=765038 https://bugzilla.novell.com/show_bug.cgi?id=765038#c3 --- Comment #3 from Stefan Seyfried <seife@novell.slipkontur.de> 2012-06-01 13:21:27 CEST --- 1.1.rc2 from http://download.opensuse.org/factory/repo/oss/suse/x86_64/kvm-1.1.rc2-1.1.x8... already fails. Last changes: * Mo Mai 21 2012 brogers@suse.com - use correct type to avoid gnutls deprecation warnings * Mo Mai 21 2012 badshah400@gmail.com - Use BuildRequires: libgnutls-devel instead of gnutls-devel for Factory in keeping with gnutls package naming changes. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=765038 https://bugzilla.novell.com/show_bug.cgi?id=765038#c4 Bruce Rogers <brogers@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |seife@novell.slipkontur.de --- Comment #4 from Bruce Rogers <brogers@suse.com> 2012-06-15 21:58:38 UTC --- Is this still happening to you? What is the qemu-kvm command line? Could you provide information about the host? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=765038 https://bugzilla.novell.com/show_bug.cgi?id=765038#c5 Stefan Seyfried <seife@novell.slipkontur.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|seife@novell.slipkontur.de | --- Comment #5 from Stefan Seyfried <seife@novell.slipkontur.de> 2012-06-18 09:48:39 CEST --- Yes, still happens. susi:~ # rpm -q kvm kvm-1.1.rc3-1.1.x86_64 susi:~ # rpm -q --changelog kvm|head -3 * Fri May 25 2012 brogers@suse.com - Update to qemu-kvm v1.1-rc3 - see http://wiki.qemu.org/ChangeLog/1.1 for details susi:~ # ps xauwwwww|grep qemu seife 11584 0.4 0.5 396112 22772 pts/3 S+ 09:34 0:00 virt-viewer -w --connect=qemu:///system factorytest qemu 11594 95.5 1.1 1369500 44104 ? Sl 09:34 2:03 /usr/bin/qemu-kvm -S -M pc-1.0 -enable-kvm -m 768 -smp 1,sockets=1,cores=1,threads=1 -name factorytest -uuid 0ddc8446-a3d9-dd6d-b45b-fd5096649c17 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/factorytest.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot order=cd,menu=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/dev/main/factorytest,if=none,id=drive-virtio-disk0,format=raw,cache=unsafe -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0 -drive file=/space/iso/openSUSE/openSUSE-GNOME-LiveCD-Build0398-x86_64.iso,if=none,media=cdrom,id=drive-ide0-0-0,readonly=on,format=raw,cache=none -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -netdev tap,fd=19,id=hostnet0,vhost=on,vhostfd=20 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:5d:3d:61,bus=pci.0,addr=0x3 -vnc 127.0.0.1:0 -vga qxl -global qxl-vga.vram_size=67108864 -device AC97,id=sound0,bus=pci.0,addr=0x4 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=765038 https://bugzilla.novell.com/show_bug.cgi?id=765038#c6 --- Comment #6 from Stefan Seyfried <seife@novell.slipkontur.de> 2012-06-18 10:05:15 CEST --- oops, forgot the host info. Host machine is a Thinkpad X200s, core 2 duo: processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Duo CPU L9400 @ 1.86GHz stepping : 10 microcode : 0xa0b cpu MHz : 800.000 cache size : 6144 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm ida dts tpr_shadow vnmi flexpriority bogomips : 3724.26 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: running Factory with the KOTD kernel: Linux susi.home.s3e.de 3.4.0-10-desktop #1 SMP PREEMPT Mon Jun 4 11:33:42 UTC 2012 (5c85db8) x86_64 x86_64 x86_64 GNU/Linux -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=765038 https://bugzilla.novell.com/show_bug.cgi?id=765038#c7 Bruce Rogers <brogers@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Bruce Rogers <brogers@suse.com> 2012-07-02 16:41:41 UTC --- I've checked in a fix for this into the kvm package in the OBS Virtualization project. Stefan, could you give it a try and reopen the bug if it doesn't resolve it for you? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=765038 https://bugzilla.novell.com/show_bug.cgi?id=765038#c8 Stefan Seyfried <seife@novell.slipkontur.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #8 from Stefan Seyfried <seife@novell.slipkontur.de> 2012-07-03 09:17:05 CEST --- Hi Bruce, unfortunately it does not help. This is the changelog of the package I installed: * Mi Jun 27 2012 brogers@suse.com - fix qemu-kvm crash with "-usbdevice tablet". (bnc#766310) - fix CVE-2012-2652, where a tmpdir symlink attack is possible when using snapshots (bnc#764526) - drop qemu-img-kvm, which is a rename of the qemu-img file and delivers no additional value - drop qemu-ga. This file is now provided by the qemu-guest-agent package. Still crashes during boot of my Factory guest vm: [151660.668911] qemu-kvm[27528]: segfault at 10 ip 00007f03ccc2723e sp 00007f03c3384910 error 4 in qemu-kvm[7f03ccae2000+35e000] This time I was able to attach gdb and get a backtrace: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7f13faf71700 (LWP 28086)] 0x00007f140481323e in virtio_pci_mask_vq (vector=vector@entry=1, vq=0x7f14069a1cb0, masked=masked@entry=0, dev=<error reading variable: Unhandled dwarf expression opcode 0xfa>) at /usr/src/debug/qemu-kvm-1.1.rc3/hw/virtio-pci.c:546 546 /usr/src/debug/qemu-kvm-1.1.rc3/hw/virtio-pci.c: No such file or directory. (gdb) bt #0 0x00007f140481323e in virtio_pci_mask_vq (vector=vector@entry=1, vq=0x7f14069a1cb0, masked=masked@entry=0, dev=<error reading variable: Unhandled dwarf expression opcode 0xfa>) at /usr/src/debug/qemu-kvm-1.1.rc3/hw/virtio-pci.c:546 #1 0x00007f1404813357 in virtio_pci_mask_notifier (dev=0x7f14069871a0, vector=1, masked=0) at /usr/src/debug/qemu-kvm-1.1.rc3/hw/virtio-pci.c:576 #2 0x00007f14047ede27 in msix_set_mask_notifier_for_vector (vector=1, dev=0x7f14069871a0) at /usr/src/debug/qemu-kvm-1.1.rc3/hw/msix.c:562 #3 msix_set_mask_notifier (dev=dev@entry=0x7f14069871a0, f=f@entry=0x7f14048132d0 <virtio_pci_mask_notifier>) at /usr/src/debug/qemu-kvm-1.1.rc3/hw/msix.c:577 #4 0x00007f14048123d7 in virtio_pci_set_guest_notifiers (opaque=0x7f14069871a0, assign=true) at /usr/src/debug/qemu-kvm-1.1.rc3/hw/virtio-pci.c:651 #5 0x00007f1404971b60 in vhost_dev_start (hdev=hdev@entry=0x7f140691a440, vdev=vdev@entry=0x7f1406995b80) at /usr/src/debug/qemu-kvm-1.1.rc3/hw/vhost.c:882 #6 0x00007f14049724c6 in vhost_net_start (net=0x7f140691a440, dev=dev@entry=0x7f1406995b80) at /usr/src/debug/qemu-kvm-1.1.rc3/hw/vhost_net.c:158 #7 0x00007f1404974cb1 in virtio_net_vhost_status (status=7 '\a', n=0x7f1406995b80) at /usr/src/debug/qemu-kvm-1.1.rc3/hw/virtio-net.c:127 #8 virtio_net_set_status (vdev=0x7f1406995b80, status=7 '\a') at /usr/src/debug/qemu-kvm-1.1.rc3/hw/virtio-net.c:144 #9 0x00007f1404979aa2 in virtio_set_status (vdev=vdev@entry=0x7f1406995b80, val=val@entry=7 '\a') at /usr/src/debug/qemu-kvm-1.1.rc3/hw/virtio.c:507 #10 0x00007f1404812e49 in virtio_ioport_write (opaque=0x7f14069871a0, addr=<optimized out>, val=7) at /usr/src/debug/qemu-kvm-1.1.rc3/hw/virtio-pci.c:322 #11 0x00007f14048d2733 in memory_region_iorange_write (iorange=<optimized out>, offset=18, width=1, data=<optimized out>) at /usr/src/debug/qemu-kvm-1.1.rc3/memory.c:427 #12 0x00007f14048c5a91 in kvm_handle_io (count=1, size=1, direction=1, data=<optimized out>, port=50546) at /usr/src/debug/qemu-kvm-1.1.rc3/kvm-all.c:1139 #13 kvm_cpu_exec (env=env@entry=0x7f140691e080) at /usr/src/debug/qemu-kvm-1.1.rc3/kvm-all.c:1287 #14 0x00007f140489cf81 in qemu_kvm_cpu_thread_fn (arg=0x7f140691e080) at /usr/src/debug/qemu-kvm-1.1.rc3/cpus.c:752 #15 0x00007f1402607e0e in start_thread () from /lib64/libpthread.so.0 #16 0x00007f14015fc2bd in clone () from /lib64/libc.so.6 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=765038 https://bugzilla.novell.com/show_bug.cgi?id=765038#c9 Bruce Rogers <brogers@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |seife@novell.slipkontur.de --- Comment #9 from Bruce Rogers <brogers@suse.com> 2012-07-03 12:55:37 UTC --- Looks like you just missed picking up the latest change. Here is the top changelog entry: - segfault can occur with -M pc-1.0 and -M pc-0.15 due to bad machine default settings (bnc#765038) It should be available to you by now. (I will be checking in even more recent changes today - they finally came out with v1.1.0 release, so I'll update to that) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=765038 https://bugzilla.novell.com/show_bug.cgi?id=765038#c10 Stefan Seyfried <seife@novell.slipkontur.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|seife@novell.slipkontur.de | Resolution| |FIXED --- Comment #10 from Stefan Seyfried <seife@novell.slipkontur.de> 2012-07-03 15:29:25 CEST --- Yes, with this change it works fine (the latest build is still blocked by OBS, so I got the rpm with osc getbinaries). => fixed -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com