From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2SEY-0003bO-2L for qemu-devel@nongnu.org; Tue, 28 Feb 2012 13:57:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2SE9-00065F-JE for qemu-devel@nongnu.org; Tue, 28 Feb 2012 13:57:09 -0500 Received: from mail-pw0-f45.google.com ([209.85.160.45]:36486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2SE9-00064m-9m for qemu-devel@nongnu.org; Tue, 28 Feb 2012 13:56:45 -0500 Received: by pbcuo1 with SMTP id uo1so599745pbc.4 for ; Tue, 28 Feb 2012 10:56:43 -0800 (PST) Message-ID: <4F4D2366.2010209@codemonkey.ws> Date: Tue, 28 Feb 2012 12:56:38 -0600 From: Anthony Liguori MIME-Version: 1.0 References: <4F4CC7C6.9070609@redhat.com> <20120228175914.GA28479@redhat.com> <4F4D1951.4040807@codemonkey.ws> <4F4D19C5.8030507@redhat.com> In-Reply-To: <4F4D19C5.8030507@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL] Memory core space reduction List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: qemu-devel , "Michael S. Tsirkin" On 02/28/2012 12:15 PM, Avi Kivity wrote: > On 02/28/2012 08:13 PM, Anthony Liguori wrote: >> >> FWIW, I'm processing this PULL request right now and I'm seeing a SEGV >> too. The backtrace is a malloc failure in QOM. >> > > How do we reproduce this? The guest never gets to run so I don't think the initrd/vmlinuz matter. /home/anthony/build/qemu/x86_64-softmmu/qemu-system-x86_64 -kernel bin/vmlinuz-3.0 -initrd .tmp-11243/initramfs-11243.img.gz -append "console=ttyS0 seed=57279" -nographic -enable-kvm -hda /home/anthony/images/linux.img -M pc-1.0 -drive file=/home/anthony/images/linux.img,if=virtio,snapshot=on -device virtio-balloon-pci -device virtio-serial -net nic,model=virtio -net user -snapshot #0 0x00007f031caf9b5d in malloc_consolidate (av=0x7f031ce111c0) at malloc.c:5169 #1 0x00007f031cafb472 in _int_malloc (av=0x7f031ce111c0, bytes=16512) at malloc.c:4373 #2 0x00007f031cafe31e in __libc_malloc (bytes=16512) at malloc.c:3660 #3 0x00007f03202f47ae in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #4 0x00007f03202f4aba in g_malloc0 () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007f0320d23f62 in qmp_input_visitor_new (obj=0x7f03223afc50) at /home/anthony/git/qemu/qapi/qmp-input-visitor.c:250 #6 0x00007f0320d41469 in object_property_set_qobject (obj=0x7f0322337f00, value=, name=0x7f0320e844ed "ioeventfd", errp=0x7fff2beec7b0) at /home/anthony/git/qemu/qom/qom-qobject.c:23 #7 0x00007f0320d404ee in object_property_set_bool (obj=0x7f0322337f00, value=, name=0x7f0320e844ed "ioeventfd", errp=0x7fff2beec7b0) at /home/anthony/git/qemu/qom/object.c:729 #8 0x00007f0320d29496 in qdev_prop_set_defaults (dev=0x7f0322337f00, props=0x7f03211f0d80) at /home/anthony/git/qemu/hw/qdev-properties.c:1101 #9 0x00007f0320d3f52d in object_init_with_type (obj=0x7f0322337f00, ti=0x7f03223130b0) at /home/anthony/git/qemu/qom/object.c:250 #10 0x00007f0320d3f52d in object_init_with_type (obj=0x7f0322337f00, ti=0x7f032230c7d0) at /home/anthony/git/qemu/qom/object.c:250 #11 0x00007f0320d3f70d in object_new_with_type (type=0x7f032230c7d0) at /home/anthony/git/qemu/qom/object.c:361 #12 0x00007f0320d2adb8 in qdev_try_create (bus=0x7f0322341e10, name=0x7f0320e7fa14 "virtio-net-pci") at /home/anthony/git/qemu/hw/qdev.c:123 #13 0x00007f0320d2ae29 in qdev_create (bus=0x7f0322341e10, name=0x7f0320e7fa14 "virtio-net-pci") at /home/anthony/git/qemu/hw/qdev.c:103 #14 0x00007f0320cde89f in pci_create_multifunction (bus=, devfn=-1, multifunction=false, name=) at /home/anthony/git/qemu/hw/pci.c:1541 #15 0x00007f0320cdea0a in pci_nic_init (nd=0x7f03219afc80, default_model=, default_devaddr=) at /home/anthony/git/qemu/hw/pci.c:1391 #16 0x00007f0320cdeade in pci_nic_init_nofail (nd=0x7f03219afc80, default_model=0x7f0320e79e67 "e1000", default_devaddr=0x0) at /home/anthony/git/qemu/hw/pci.c:1407 #17 0x00007f0320df4ed4 in pc_init1 (system_memory=, system_io=0x7f0321c30000, ram_size=134217728, boot_device=0x7fff2beecd40 "cad", kernel_filename=, kernel_cmdline=, initrd_filename=0x7f0321c2e370 ".tmp-11243/initramfs-11243.img.gz", cpu_model=0x0, pci_enabled=1, kvmclock_enabled=1) at /home/anthony/git/qemu/hw/pc_piix.c:247 #18 0x00007f0320df55a8 in pc_init_pci (ram_size=134217728, boot_device=0x7fff2beecd40 "cad", kernel_filename=0x7f0321c2e2f0 "bin/vmlinuz-3.0", kernel_cmdline=0x7f0321c2e400 "console=ttyS0 seed=57279", initrd_filename=0x7f0321c2e370 ".tmp-11243/initramfs-11243.img.gz", cpu_model=) at /home/anthony/git/qemu/hw/pc_piix.c:313 #19 0x00007f0320d04b80 in main (argc=, argv=, envp=) at /home/anthony/git/qemu/vl.c:3482 Regards, Anthony Liguori