Received: from [140.186.70.92] (port=34856 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNyYu-0006r9-Fe for qemu-devel@nongnu.org; Wed, 01 Dec 2010 21:06:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNyYr-0005ab-LU for qemu-devel@nongnu.org; Wed, 01 Dec 2010 21:06:20 -0500 Received: from adelie.canonical.com ([91.189.90.139]:44803) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNyYr-0005a9-Dy for qemu-devel@nongnu.org; Wed, 01 Dec 2010 21:06:17 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1PNyYn-0008Pk-K6 for ; Thu, 02 Dec 2010 02:06:14 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id E5E5F2E8198 for ; Thu, 2 Dec 2010 02:05:58 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 02 Dec 2010 01:59:54 -0000 From: Imre Gergely Sender: bounces@canonical.com References: <20100617095222.20761.57447.malonedeb@wampee.canonical.com> Message-Id: <20101202015955.2574.6779.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 595438] Re: KVM segmentation fault, using SCSI+writeback and linux 2.4 guest Reply-To: Bug 595438 <595438@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I can confirm the segfault with the same Fedora 1 install. It doesn't even get to 50%, it segfaults way earlier. In fact I tried this: - kvm-img create -f qcow2 /store/KVM/test.qcow2 2G - gimre@voy:~$ sudo LC_ALL=3DC PATH=3D/usr/local/sbin:/usr/local/bin:/usr/b= in:/usr/sn:/sbin:/bin QEMU_AUDIO_DRV=3Dnone /usr/bin/kvm -M pc-0.12 -enable= -kvm -m 256 -smp 1 -name spamsender -uuid b9cacd5e-08f7-41fd-78c8-89cec59af= 881 -chardev socket,id=3Dmonitor,path=3D/var/lib/libvirt/qemu/test.monitor,= server,nowait -monitor chardev:monitor -boot d -drive file=3D/store/Kits/is= os/yarrow-i386-disc1.iso,if=3Dide,media=3Dcdrom,index=3D2 -drive file=3D/st= ore/KVM/test.qcow2,if=3Dscsi,index=3D0,format=3Dqcow2,cache=3Dwriteback -ne= t nic,macaddr=3D00:00:00:00:00:00,vlan=3D0,name=3Dnic.0 -net tap,vlan=3D0,n= ame=3Dtap.0 -chardev pty,id=3Dserial0 -serial chardev:serial0 -parallel non= e -usb -vnc 172.16.21.1:1 -vga cirrus (mostly the same options, renamed only to "test whatever") - Fedora text install, everything on default, "Personal Desktop", auto-part= itioning - after it complained that the stuff wouldn't fit (because the partitions a= re too small), I gave it another go (without reboot) and it crapped out ins= tantly. ---------- gimre@voy:~$ sudo LC_ALL=3DC PATH=3D/usr/local/sbin:/usr/local/bin:/usr/bin= :/usr/sn:/sbin:/bin QEMU_AUDIO_DRV=3Dnone /usr/bin/kvm -M pc-0.12 -enable-k= vm -m 256 -smp 1 -name spamsender -uuid b9cacd5e-08f7-41fd-78c8-89cec59af88= 1 -chardev socket,id=3Dmonitor,path=3D/var/lib/libvirt/qemu/test.monitor,se= rver,nowait -monitor chardev:monitor -boot d -drive file=3D/store/Kits/isos= /yarrow-i386-disc1.iso,if=3Dide,media=3Dcdrom,index=3D2 -drive file=3D/stor= e/KVM/test.qcow2,if=3Dscsi,index=3D0,format=3Dqcow2,cache=3Dwriteback -net = nic,macaddr=3D00:00:00:00:00:00,vlan=3D0,name=3Dnic.0 -net tap,vlan=3D0,nam= e=3Dtap.0 -chardev pty,id=3Dserial0 -serial chardev:serial0 -parallel none = -usb -vnc 172.16.21.1:1 -vga cirrus char device redirected to /dev/pts/12 pci_add_option_rom: failed to find romfile "pxe-rtl8139.bin" scsi-disk: Tag 0x0 already in use Segmentation fault ---------- I'll try the -proposed package in a little while. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/595438 Title: KVM segmentation fault, using SCSI+writeback and linux 2.4 guest Status in Kernel Virtual Machine: Confirmed Status in QEMU: Fix Committed Status in qemu-kvm: Fix Released Status in =E2=80=9Cqemu-kvm=E2=80=9D package in Ubuntu: Fix Released Status in =E2=80=9Cqemu-kvm=E2=80=9D source package in Lucid: Fix Committed Status in =E2=80=9Cqemu-kvm=E2=80=9D package in Debian: Fix Released Bug description: I Use Ubuntu 32 bit 10.04 with standard KVM. I have Intel E7600 @ 3.06GHz processor with VMX In this system I Run: LC_ALL=3DC PATH=3D/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/= bin QEMU_AUDIO_DRV=3Dnone /usr/bin/kvm -M pc-0.12 -enable-kvm -m 256 -smp 1= -name spamsender -uuid b9cacd5e-08f7-41fd-78c8-89cec59af881 -chardev socke= t,id=3Dmonitor,path=3D/var/lib/libvirt/qemu/spamsender.monitor,server,nowai= t -monitor chardev:monitor -boot d -drive file=3D/mnt/megadiff/cdiso_400_13= 0.iso,if=3Dide,media=3Dcdrom,index=3D2 -drive file=3D/home/mmarkk/spamsende= r2.img,if=3Dscsi,index=3D0,format=3Dqcow2,cache=3Dwriteback -net nic,macadd= r=3D00:00:00:00:00:00,vlan=3D0,name=3Dnic.0 -net tap,vlan=3D0,name=3Dtap.0 = -chardev pty,id=3Dserial0 -serial chardev:serial0 -parallel none -usb -vnc = 127.0.0.1:0 -vga cirrus .iso image contain custom distro of 2.4-linux kernel based system. During i= nstall process (when .tar.gz actively unpacked), kvm dead with segmentation= fault. And ONLY when I choose scsi virtual disk and writeback simultaneously. But, writeback+ide, writethrough+scsi works OK. I use qcow2. It seems, that qcow does not have such problems. Virtual machine get down at random time during file copy. It seems, when qc= ow2 file size need to be expanded. IMPACT: kvm used with scsi virtual disk and writeback dies with segfault. FIX: is the inclusion of a patch cherry-picked from upstream which dequeues requests before invoking callbacks. It is at http://bazaar.launchpad.net/~serge-hallyn/ubuntu/lucid/qemu-kvm/fix-scsi-wr= iteback/revision/70 TO REPRODUCE: See the command above. REGRESSION POTENTIAL: this is cherry-picked from upstream, and has been tested by the bug reporter with no ill effects.