public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* qemu-kvm segfault
@ 2011-03-14 10:33 Boris Dolgov
  2011-03-14 10:54 ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Boris Dolgov @ 2011-03-14 10:33 UTC (permalink / raw)
  To: kvm

Hello!

I am facing an often qemu-kvm segfault when using vnc session.

Program terminated with signal 11, Segmentation fault.
#0  0x00000000004195fb in main_loop_wait (nonblocking=<value optimized
out>) at /usr/src/debug/qemu-kvm-0.13.0/vl.c:1274
1274                FD_SET(ioh->fd, &rfds);
(gdb) bt
#0  0x00000000004195fb in main_loop_wait (nonblocking=<value optimized
out>) at /usr/src/debug/qemu-kvm-0.13.0/vl.c:1274
#1  0x000000000042b067 in kvm_main_loop () at
/usr/src/debug/qemu-kvm-0.13.0/qemu-kvm.c:1710
#2  0x000000000041a51e in main_loop (argc=<value optimized out>,
argv=<value optimized out>, envp=<value optimized out>) at
/usr/src/debug/qemu-kvm-0.13.0/vl.c:1343
#3  main (argc=<value optimized out>, argv=<value optimized out>,
envp=<value optimized out>) at
/usr/src/debug/qemu-kvm-0.13.0/vl.c:3097
(gdb) p ioh
$1 = (IOHandlerRecord *) 0x2d16b60
(gdb) p *ioh
$3 = {fd = 56568928, fd_read_poll = 0, fd_read = 0x49c620
<vnc_client_read>, fd_write = 0, deleted = 0, opaque = 0x3507e70, ufd
= 0x0, next = {le_next = 0x2d16dc0, le_prev = 0x87d8e0}}
(gdb) p rfds
$4 = {fds_bits = {0 <repeats 16 times>}}
(gdb) p *(ioh->next->le_next)
$5 = {fd = 20, fd_read_poll = 0, fd_read = 0x49c620 <vnc_client_read>,
fd_write = 0, deleted = 0, opaque = 0x365d6d0, ufd = 0x0, next =
{le_next = 0x2d16b10, le_prev = 0x2d16b98}}
(gdb) p *io_handlers.lh_first
$11 = {fd = 56568928, fd_read_poll = 0, fd_read = 0x49c620
<vnc_client_read>, fd_write = 0, deleted = 0, opaque = 0x3507e70, ufd
= 0x0, next = {le_next = 0x2d16dc0, le_prev = 0x87d8e0}}

Looks like fd is getting corrupted somewhere.

I am using qemu-kvm from standart Fedora 14 repo:
[root@serv qemu-kvm-0.13.0]# qemu-kvm --version
QEMU emulator version 0.13.0 (qemu-kvm-0.13.0), Copyright (c)
2003-2008 Fabrice Bellard

startup command is:
qemu-kvm -name freebsd8.1 -m 1500 -smp 4 -cdrom
/home/iso/FreeBSD-8.1-RELEASE-amd64-disc1.iso -boot d -vga std -drive
index=0,media=disk,if=ide,file=/dev/mapper/vg0-freebsd8.1,boot=on,cache=none
-vnc 0.0.0.0:2 -net nic,macaddr=FE:E1:DE:AD:00:00,vlan=0 -net
tap,script=/root/qemu-ifup-br0,vlan=0 -monitor stdio -usb -usbdevice
tablet -enable-kvm


-- 
Boris Dolgov.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: qemu-kvm segfault
  2011-03-14 10:33 qemu-kvm segfault Boris Dolgov
@ 2011-03-14 10:54 ` Jan Kiszka
  2011-03-14 15:51   ` Boris Dolgov
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2011-03-14 10:54 UTC (permalink / raw)
  To: Boris Dolgov; +Cc: kvm, Corentin Chary

[-- Attachment #1: Type: text/plain, Size: 2451 bytes --]

On 2011-03-14 11:33, Boris Dolgov wrote:
> Hello!
> 
> I am facing an often qemu-kvm segfault when using vnc session.
> 
> Program terminated with signal 11, Segmentation fault.
> #0  0x00000000004195fb in main_loop_wait (nonblocking=<value optimized
> out>) at /usr/src/debug/qemu-kvm-0.13.0/vl.c:1274
> 1274                FD_SET(ioh->fd, &rfds);
> (gdb) bt
> #0  0x00000000004195fb in main_loop_wait (nonblocking=<value optimized
> out>) at /usr/src/debug/qemu-kvm-0.13.0/vl.c:1274
> #1  0x000000000042b067 in kvm_main_loop () at
> /usr/src/debug/qemu-kvm-0.13.0/qemu-kvm.c:1710
> #2  0x000000000041a51e in main_loop (argc=<value optimized out>,
> argv=<value optimized out>, envp=<value optimized out>) at
> /usr/src/debug/qemu-kvm-0.13.0/vl.c:1343
> #3  main (argc=<value optimized out>, argv=<value optimized out>,
> envp=<value optimized out>) at
> /usr/src/debug/qemu-kvm-0.13.0/vl.c:3097
> (gdb) p ioh
> $1 = (IOHandlerRecord *) 0x2d16b60
> (gdb) p *ioh
> $3 = {fd = 56568928, fd_read_poll = 0, fd_read = 0x49c620
> <vnc_client_read>, fd_write = 0, deleted = 0, opaque = 0x3507e70, ufd
> = 0x0, next = {le_next = 0x2d16dc0, le_prev = 0x87d8e0}}
> (gdb) p rfds
> $4 = {fds_bits = {0 <repeats 16 times>}}
> (gdb) p *(ioh->next->le_next)
> $5 = {fd = 20, fd_read_poll = 0, fd_read = 0x49c620 <vnc_client_read>,
> fd_write = 0, deleted = 0, opaque = 0x365d6d0, ufd = 0x0, next =
> {le_next = 0x2d16b10, le_prev = 0x2d16b98}}
> (gdb) p *io_handlers.lh_first
> $11 = {fd = 56568928, fd_read_poll = 0, fd_read = 0x49c620
> <vnc_client_read>, fd_write = 0, deleted = 0, opaque = 0x3507e70, ufd
> = 0x0, next = {le_next = 0x2d16dc0, le_prev = 0x87d8e0}}
> 
> Looks like fd is getting corrupted somewhere.
> 
> I am using qemu-kvm from standart Fedora 14 repo:
> [root@serv qemu-kvm-0.13.0]# qemu-kvm --version
> QEMU emulator version 0.13.0 (qemu-kvm-0.13.0), Copyright (c)
> 2003-2008 Fabrice Bellard
> 
> startup command is:
> qemu-kvm -name freebsd8.1 -m 1500 -smp 4 -cdrom
> /home/iso/FreeBSD-8.1-RELEASE-amd64-disc1.iso -boot d -vga std -drive
> index=0,media=disk,if=ide,file=/dev/mapper/vg0-freebsd8.1,boot=on,cache=none
> -vnc 0.0.0.0:2 -net nic,macaddr=FE:E1:DE:AD:00:00,vlan=0 -net
> tap,script=/root/qemu-ifup-br0,vlan=0 -monitor stdio -usb -usbdevice
> tablet -enable-kvm
> 

Does [1] fix the issue for you?

Jan

[1] http://thread.gmane.org/gmane.comp.emulators.kvm.devel/69071


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: qemu-kvm segfault
  2011-03-14 10:54 ` Jan Kiszka
@ 2011-03-14 15:51   ` Boris Dolgov
  0 siblings, 0 replies; 3+ messages in thread
From: Boris Dolgov @ 2011-03-14 15:51 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: kvm, Corentin Chary

On Mon, Mar 14, 2011 at 13:54, Jan Kiszka <jan.kiszka@web.de> wrote:
>> I am facing an often qemu-kvm segfault when using vnc session.
>
> Does [1] fix the issue for you?

Looks like it does - no segfaults on 4 VMs for 4 hours.

Thank you!

-- 
Boris Dolgov.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-14 15:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-14 10:33 qemu-kvm segfault Boris Dolgov
2011-03-14 10:54 ` Jan Kiszka
2011-03-14 15:51   ` Boris Dolgov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox