All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Avi Kivity <avi@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>,
	"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [PULL] Memory core space reduction
Date: Tue, 28 Feb 2012 12:56:38 -0600	[thread overview]
Message-ID: <4F4D2366.2010209@codemonkey.ws> (raw)
In-Reply-To: <4F4D19C5.8030507@redhat.com>

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=<value optimized out>, 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=<value optimized out>, 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=<value optimized out>,
     devfn=-1, multifunction=false, name=<value optimized out>)
     at /home/anthony/git/qemu/hw/pci.c:1541
#15 0x00007f0320cdea0a in pci_nic_init (nd=0x7f03219afc80,
     default_model=<value optimized out>, default_devaddr=<value optimized out>)
     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=<value optimized out>,
     system_io=0x7f0321c30000, ram_size=134217728,
     boot_device=0x7fff2beecd40 "cad", kernel_filename=<value optimized out>,
     kernel_cmdline=<value optimized out>,
     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=<value optimized out>) at /home/anthony/git/qemu/hw/pc_piix.c:313
#19 0x00007f0320d04b80 in main (argc=<value optimized out>,
     argv=<value optimized out>, envp=<value optimized out>)
     at /home/anthony/git/qemu/vl.c:3482

Regards,

Anthony Liguori

  parent reply	other threads:[~2012-02-28 18:57 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-28 12:25 [Qemu-devel] [PULL] Memory core space reduction Avi Kivity
2012-02-28 12:26 ` Avi Kivity
2012-02-28 17:59 ` Michael S. Tsirkin
2012-02-28 18:13   ` Anthony Liguori
2012-02-28 18:15     ` Avi Kivity
2012-02-28 18:31       ` Anthony Liguori
2012-02-28 18:56       ` Anthony Liguori [this message]
2012-02-28 19:14       ` Anthony Liguori
2012-02-28 19:17         ` Avi Kivity
2012-02-28 19:20           ` Anthony Liguori
2012-02-28 22:58             ` Michael S. Tsirkin
2012-02-29 10:09               ` Avi Kivity
2012-02-29 10:23                 ` Michael S. Tsirkin
2012-02-29 10:53                   ` Avi Kivity
2012-02-29 11:25                     ` Michael S. Tsirkin
2012-02-29 11:31                       ` Avi Kivity
2012-02-29 11:45                         ` Avi Kivity
2012-02-29 14:15                           ` Michael S. Tsirkin
2012-02-29 11:27                     ` Avi Kivity
  -- strict thread matches above, loose matches on Subject: below --
2012-02-28 12:24 Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F4D2366.2010209@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=avi@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.