Re: [Qemu-devel] qemu_malloc failing

2011-04-09 Thread Stefan Hajnoczi
On Sun, Apr 10, 2011 at 3:08 AM, Brad Hards wrote: > #3  0x0042b3d6 in qemu_malloc (size=2128) at qemu-malloc.c:49 It's only slightly more than 2 KB. When malloc(3) fails it returns NULL, it doesn't crash. As Mulyadi suggested, this looks like heap corruption. If you have no idea where

Re: [Qemu-devel] qemu_malloc failing

2011-04-09 Thread Mulyadi Santosa
Hi... On Sun, Apr 10, 2011 at 09:08, Brad Hards wrote: > Program received signal SIGSEGV, Segmentation fault. > 0x75a4e66c in malloc_consolidate (av=0x75d55e40) at malloc.c:5161 > 5161    malloc.c: No such file or directory. >        in malloc.c > (gdb) bt > #0  0x75a4e66c in

[Qemu-devel] qemu_malloc failing

2011-04-09 Thread Brad Hards
Hi, I'm trying to investigate a bug (crash) that I see when attaching a USB device (a UVC webcam) from the host to the guest. I'm running it as: sudo gdb --args /opt/bin/qemu -hda ubuntu-test -name kubuntu-qemu -usb -device usb-tablet -m 1024 -serial stdio -usbdevice host:0c45:6450 (I've tried