Received: from [140.186.70.92] (port=60943 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYExc-0001xi-LY for qemu-devel@nongnu.org; Mon, 12 Jul 2010 05:06:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OYExY-0001qm-3c for qemu-devel@nongnu.org; Mon, 12 Jul 2010 05:06:00 -0400 Received: from adelie.canonical.com ([91.189.90.139]:57800) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYExX-0001qe-SE for qemu-devel@nongnu.org; Mon, 12 Jul 2010 05:05:56 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1OYExV-0003vI-NE for ; Mon, 12 Jul 2010 10:05:54 +0100 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id A0F732E83AA for ; Mon, 12 Jul 2010 10:05:48 +0100 (BST) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 12 Jul 2010 08:58:18 -0000 From: =?utf-8?b?0JrQvtGA0LXQvdCx0LXRgNCzINCc0LDRgNC6?= <595438@bugs.launchpad.net> Sender: bounces@canonical.com References: <20100617095222.20761.57447.malonedeb@wampee.canonical.com> Message-Id: <20100712085818.24289.3342.malone@palladium.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 valgrind --malloc-fill=3D0x69 --free-fill=3D0x11 Process terminating with default action of signal 11 (SIGSEGV) =3D=3D00:00:01:03.046 29447=3D=3D Access not within mapped region at addre= ss 0x11111151 =3D=3D00:00:01:03.046 29447=3D=3D at 0x80B4713: scsi_req_free (scsi-bus.= c:153) =3D=3D00:00:01:03.047 29447=3D=3D by 0x80B186B: scsi_remove_request (scs= i-disk.c:86) =3D=3D00:00:01:03.047 29447=3D=3D by 0x8095280: qcow_aio_write_cb (qcow2= .c:640) =3D=3D00:00:01:03.047 29447=3D=3D by 0x80849BE: posix_aio_process_queue = (posix-aio-compat.c:460) =3D=3D00:00:01:03.047 29447=3D=3D by 0x8084A76: posix_aio_read (posix-ai= o-compat.c:501) =3D=3D00:00:01:03.047 29447=3D=3D by 0x805E3D7: main_loop_wait (vl.c:130= 0) =3D=3D00:00:01:03.047 29447=3D=3D by 0x806EA83: kvm_main_loop (qemu-kvm.= c:1710) =3D=3D00:00:01:03.047 29447=3D=3D by 0x8060A72: main (vl.c:1340) It seems, that 0x11111151 - is a pointer inside already freed region :( http://dl3.ideco-software.ru/IdecoICS/IdecoICS_342_123.iso http://dl1.ideco-software.ru/IdecoICS/IdecoICS_342_123.iso http://dl2.ideco-software.ru/IdecoICS/IdecoICS_342_123.iso (If you get 404, please inform me, I will give new links.) Instructions how to reproduce: after boot: type "setup100hz action=3Dinstall p=3D1" and press Enter. Line = should look as: boot: setup100hz action=3Dinstall p=3D1 In each experiment You need fresh (empty) "qemu-img create -f qcow2 8G" image (preferable in t= mpfs filesystem) Image will be expanded nearly to 1.5 Gb. I have VMX-enabl= ed Intel processor and 32-bit kernel. KVM was built just using ./configure = && make command: qemu-system-x86_64 -drive file=3Dxxx.img,cache=3Dwriteback,if=3Dscsi -cdrom= IdecoICS_342_123.iso It will show some dialogs while copying files after which it will go to reb= oot if all OK. = In our case: somewhere during copying files, kvm will do segmentation fault= , before rebooting of VM. -- = KVM segmentation fault, using SCSI+writeback and linux 2.4 guest https://bugs.launchpad.net/bugs/595438 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: Confirmed 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.