Re: [Qemu-devel] qemu core dump when vnc client connect to VM, Is anyone has the similar problem, thanks!

2014-05-15 Thread Wenchao Xia

Yeah, I have experienced it before on some Fefora 18 installation with
the qemu and libvirt it packaged. Sadlly I didn't look deep into it at
that time. It appeared some time when I boot a linux guest changing its
size in startup sequence, or sometime vnc client resize. I guess it is
caused by vnc server side code, either in qemu or vnc library,
recommend try it with latest released qemu and report it later.




Re: [Qemu-devel] qemu core dump when vnc client connect to VM, Is anyone has the similar problem, thanks!

2014-04-01 Thread 蔡志峰
Thank you very much.






At 2014-03-31 15:26:00,Gonglei (Arei) arei.gong...@huawei.com wrote:


Hi,

My patch 
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=e3c1adf16e38714ebd761dd02517dd07760ba6d2

had been fixed this issue.

 

 

Best regards,

-Gonglei

 

From: qemu-devel-bounces+arei.gonglei=huawei@nongnu.org 
[mailto:qemu-devel-bounces+arei.gonglei=huawei@nongnu.org] On Behalf Of 
Caizhifeng
Sent: Sunday, March 30, 2014 6:16 PM
To:qemu-devel@nongnu.org
Cc:caizhifeng...@163.com
Subject: [Qemu-devel] qemu core dump when vnc client connect to VM, Is anyone 
has the similar problem, thanks!

 

Hi,

I’ve been tring to use QEMU-1.5.0 and Libvirt-1.1.0 to run a VM, but this 
problem comes up. The VM’s log by libvirtd is as follow, which is similar to 
link: https://bugzilla.redhat.com/show_bug.cgi?id=906735, And it seems 
difficult to reproduce. Is there anyone have ever encounter this problem, is it 
a known bug, any information will be appriciated.

 

 

Vm’log :

2014-03-28 08:53:32.961+: starting up

LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 
QEMU_AUDIO_DRV=none /usr/bin/kvm -name CentOS-6.5-ZFW-05 -S -machine 
pc-i440fx-1.5,accel=kvm,usb=off,system=linux -m 10240 -smp 
4,maxcpus=24,sockets=12,cores=2,threads=1 -uuid 
f2a44069-7ff4-4e8a-bfd4-3513ac663ce2 -no-user-config -nodefaults -chardev 
socket,id=charmonitor,path=/var/lib/libvirt/qemu/CentOS-6.5-ZFW-05.monitor,server,nowait
 -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown 
-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device 
usb-ehci,id=ehci,bus=pci.0,addr=0x4 -device 
virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -drive 
file=/vms/share-data02/CentOS-6.5-ZFW-05.5-ZFW,if=none,id=drive-ide0-0-0,format=qcow2,cache=directsync
 -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 
-drive if=none,id=drive-ide0-1-0,readonly=on,format=raw -device 
ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=2 -netdev 
tap,fd=27,id=hostnet0 -device 
rtl8139,netdev=hostnet0,id=net0,mac=0c:da:41:1d:32:4e,bus=pci.0,addr=0x3 
-chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 
-chardev 
socket,id=charchannel0,path=/var/lib/libvirt/qemu/CentOS-6.5-ZFW-05.agent,server,nowait
 -device 
virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0
 -device usb-tablet,id=input0,bus=usb.0 -vnc 0.0.0.0:3 -device 
cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device 
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6

Domain id=5 is tainted: high-privileges

char device redirected to /dev/pts/2 (label charserial0)

*** glibc detected *** /usr/bin/kvm: realloc(): invalid old size: 
0x7f799408d110 ***

=== Backtrace: =

/lib/x86_64-linux-gnu/libc.so.6(+0x7e626)[0x7f79b7b6c626]

/lib/x86_64-linux-gnu/libc.so.6(+0x81917)[0x7f79b7b6f917]

/lib/x86_64-linux-gnu/libc.so.6(realloc+0xee)[0x7f79b7b711fe]

/usr/bin/kvm(+0x2a3c4c)[0x7f79ba153c4c] realloc_and_trace

/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_realloc+0x17)[0x7f79b97dbaf7]

/usr/bin/kvm(+0x294ccd)[0x7f79ba144ccd] buffer_reserve

/usr/bin/kvm(+0x2972cc)[0x7f79ba1472cc] vnc_write

/usr/bin/kvm(+0x27f41d)[0x7f79ba12f41d] send_hextile_tile_32

/usr/bin/kvm(+0x27fda7)[0x7f79ba12fda7] vnc_hextile_send_framebuffer_update

/usr/bin/kvm(+0x295869)[0x7f79ba145869] vnc_send_framebuffer_update

/usr/bin/kvm(+0x290e23)[0x7f79ba140e23] vnc_worker_thread_loop

/usr/bin/kvm(+0x291193)[0x7f79ba141193] vnc_worker_thread

/lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)[0x7f79b7eb2e9a]

/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f79b7be04bd]

=== Memory map: 

7f771000-7f799000 rw-p  00:00 0

……

7f799c02c000-7f79a000 ---p  00:00 0

7f79a000-7f79a0046000 rw-p  00:00 0

7f79a0046000-7f79a400 ---p  00:00 0

7f79a41e9000-7f79a41fe000 r-xp  08:01 1308204
/lib/x86_64-linux-gnu/libgcc_s.so.1

7f79a41fe000-7f79a43fd000 ---p 00015000 08:01 1308204
/lib/x86_64-linux-gnu/libgcc_s.so.1

7f79a43fd000-7f79a43fe000 r--p 00014000 08:01 1308204
/lib/x86_64-linux-gnu/libgcc_s.so.1

7f79a43fe000-7f79a43ff000 rw-p 00015000 08:01 1308204
/lib/x86_64-linux-gnu/libgcc_s.so.1

7f79a43ff000-7f79a440 ---p  00:00 0

7f79a440-7f79a4c0 rw-p  00:00 0  
[stack:44019]

……

7f79a5dfa000-7f79a5dfb000 ---p  00:00 0

7f79a5dfb000-7f79a65fb000 rw-p  00:00 0  
[stack:44013]

7f79a65fb000-7f79a65fc000 ---p  00:00 0

7f79a65fc000-7f79a6dfc000 rw-p  00:00 0  
[stack:44012]

7f79a6dfc000-7f79a6dfd000 ---p  00:00 0

7f79a6dfd000-7f79a75fd000 rw-p  00:00 0  
[stack:44011]

7f79a75fd000-7f79a75fe000 ---p  00:00 0

Re: [Qemu-devel] qemu core dump when vnc client connect to VM, Is anyone has the similar problem, thanks!

2014-03-31 Thread Gonglei (Arei)
Hi,
My patch 
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=e3c1adf16e38714ebd761dd02517dd07760ba6d2
had been fixed this issue.


Best regards,
-Gonglei

From: qemu-devel-bounces+arei.gonglei=huawei@nongnu.org 
[mailto:qemu-devel-bounces+arei.gonglei=huawei@nongnu.org] On Behalf Of 
Caizhifeng
Sent: Sunday, March 30, 2014 6:16 PM
To: qemu-devel@nongnu.org
Cc: caizhifeng...@163.com
Subject: [Qemu-devel] qemu core dump when vnc client connect to VM, Is anyone 
has the similar problem, thanks!

Hi,
I’ve been tring to use QEMU-1.5.0 and Libvirt-1.1.0 to run a VM, but this 
problem comes up. The VM’s log by libvirtd is as follow, which is similar to 
link: https://bugzilla.redhat.com/show_bug.cgi?id=906735, And it seems 
difficult to reproduce. Is there anyone have ever encounter this problem, is it 
a known bug, any information will be appriciated.


Vm’log :
2014-03-28 08:53:32.961+: starting up
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 
QEMU_AUDIO_DRV=none /usr/bin/kvm -name CentOS-6.5-ZFW-05 -S -machine 
pc-i440fx-1.5,accel=kvm,usb=off,system=linux -m 10240 -smp 
4,maxcpus=24,sockets=12,cores=2,threads=1 -uuid 
f2a44069-7ff4-4e8a-bfd4-3513ac663ce2 -no-user-config -nodefaults -chardev 
socket,id=charmonitor,path=/var/lib/libvirt/qemu/CentOS-6.5-ZFW-05.monitor,server,nowait
 -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown 
-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device 
usb-ehci,id=ehci,bus=pci.0,addr=0x4 -device 
virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -drive 
file=/vms/share-data02/CentOS-6.5-ZFW-05.5-ZFW,if=none,id=drive-ide0-0-0,format=qcow2,cache=directsync
 -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 
-drive if=none,id=drive-ide0-1-0,readonly=on,format=raw -device 
ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=2 -netdev 
tap,fd=27,id=hostnet0 -device 
rtl8139,netdev=hostnet0,id=net0,mac=0c:da:41:1d:32:4e,bus=pci.0,addr=0x3 
-chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 
-chardev 
socket,id=charchannel0,path=/var/lib/libvirt/qemu/CentOS-6.5-ZFW-05.agent,server,nowait
 -device 
virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0
 -device usb-tablet,id=input0,bus=usb.0 -vnc 0.0.0.0:3 -device 
cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device 
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6
Domain id=5 is tainted: high-privileges
char device redirected to /dev/pts/2 (label charserial0)
*** glibc detected *** /usr/bin/kvm: realloc(): invalid old size: 
0x7f799408d110 ***
=== Backtrace: =
/lib/x86_64-linux-gnu/libc.so.6(+0x7e626)[0x7f79b7b6c626]
/lib/x86_64-linux-gnu/libc.so.6(+0x81917)[0x7f79b7b6f917]
/lib/x86_64-linux-gnu/libc.so.6(realloc+0xee)[0x7f79b7b711fe]
/usr/bin/kvm(+0x2a3c4c)[0x7f79ba153c4c] realloc_and_trace
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_realloc+0x17)[0x7f79b97dbaf7]
/usr/bin/kvm(+0x294ccd)[0x7f79ba144ccd] buffer_reserve
/usr/bin/kvm(+0x2972cc)[0x7f79ba1472cc] vnc_write
/usr/bin/kvm(+0x27f41d)[0x7f79ba12f41d] send_hextile_tile_32
/usr/bin/kvm(+0x27fda7)[0x7f79ba12fda7] vnc_hextile_send_framebuffer_update
/usr/bin/kvm(+0x295869)[0x7f79ba145869] vnc_send_framebuffer_update
/usr/bin/kvm(+0x290e23)[0x7f79ba140e23] vnc_worker_thread_loop
/usr/bin/kvm(+0x291193)[0x7f79ba141193] vnc_worker_thread
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)[0x7f79b7eb2e9a]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f79b7be04bd]
=== Memory map: 
7f771000-7f799000 rw-p  00:00 0
……
7f799c02c000-7f79a000 ---p  00:00 0
7f79a000-7f79a0046000 rw-p  00:00 0
7f79a0046000-7f79a400 ---p  00:00 0
7f79a41e9000-7f79a41fe000 r-xp  08:01 1308204
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f79a41fe000-7f79a43fd000 ---p 00015000 08:01 1308204
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f79a43fd000-7f79a43fe000 r--p 00014000 08:01 1308204
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f79a43fe000-7f79a43ff000 rw-p 00015000 08:01 1308204
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f79a43ff000-7f79a440 ---p  00:00 0
7f79a440-7f79a4c0 rw-p  00:00 0  
[stack:44019]
……
7f79a5dfa000-7f79a5dfb000 ---p  00:00 0
7f79a5dfb000-7f79a65fb000 rw-p  00:00 0  
[stack:44013]
7f79a65fb000-7f79a65fc000 ---p  00:00 0
7f79a65fc000-7f79a6dfc000 rw-p  00:00 0  
[stack:44012]
7f79a6dfc000-7f79a6dfd000 ---p  00:00 0
7f79a6dfd000-7f79a75fd000 rw-p  00:00 0  
[stack:44011]
7f79a75fd000-7f79a75fe000 ---p  00:00 0
7f79a75fe000-7f79ac00 rw-p  00:00 0  
[stack:44010]
7f79ac00-7f79ac021000 rw-p  00:00 0
…….
7f79b2a95000

[Qemu-devel] qemu core dump when vnc client connect to VM, Is anyone has the similar problem, thanks!

2014-03-30 Thread Caizhifeng
Hi,
I've been tring to use QEMU-1.5.0 and Libvirt-1.1.0 to run a VM, but this 
problem comes up. The VM's log by libvirtd is as follow, which is similar to 
link: https://bugzilla.redhat.com/show_bug.cgi?id=906735, And it seems 
difficult to reproduce. Is there anyone have ever encounter this problem, is it 
a known bug, any information will be appriciated.


Vm'log :
2014-03-28 08:53:32.961+: starting up
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 
QEMU_AUDIO_DRV=none /usr/bin/kvm -name CentOS-6.5-ZFW-05 -S -machine 
pc-i440fx-1.5,accel=kvm,usb=off,system=linux -m 10240 -smp 
4,maxcpus=24,sockets=12,cores=2,threads=1 -uuid 
f2a44069-7ff4-4e8a-bfd4-3513ac663ce2 -no-user-config -nodefaults -chardev 
socket,id=charmonitor,path=/var/lib/libvirt/qemu/CentOS-6.5-ZFW-05.monitor,server,nowait
 -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown 
-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device 
usb-ehci,id=ehci,bus=pci.0,addr=0x4 -device 
virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -drive 
file=/vms/share-data02/CentOS-6.5-ZFW-05.5-ZFW,if=none,id=drive-ide0-0-0,format=qcow2,cache=directsync
 -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 
-drive if=none,id=drive-ide0-1-0,readonly=on,format=raw -device 
ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=2 -netdev 
tap,fd=27,id=hostnet0 -device 
rtl8139,netdev=hostnet0,id=net0,mac=0c:da:41:1d:32:4e,bus=pci.0,addr=0x3 
-chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 
-chardev 
socket,id=charchannel0,path=/var/lib/libvirt/qemu/CentOS-6.5-ZFW-05.agent,server,nowait
 -device 
virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0
 -device usb-tablet,id=input0,bus=usb.0 -vnc 0.0.0.0:3 -device 
cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device 
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6
Domain id=5 is tainted: high-privileges
char device redirected to /dev/pts/2 (label charserial0)
*** glibc detected *** /usr/bin/kvm: realloc(): invalid old size: 
0x7f799408d110 ***
=== Backtrace: =
/lib/x86_64-linux-gnu/libc.so.6(+0x7e626)[0x7f79b7b6c626]
/lib/x86_64-linux-gnu/libc.so.6(+0x81917)[0x7f79b7b6f917]
/lib/x86_64-linux-gnu/libc.so.6(realloc+0xee)[0x7f79b7b711fe]
/usr/bin/kvm(+0x2a3c4c)[0x7f79ba153c4c] realloc_and_trace
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_realloc+0x17)[0x7f79b97dbaf7]
/usr/bin/kvm(+0x294ccd)[0x7f79ba144ccd] buffer_reserve
/usr/bin/kvm(+0x2972cc)[0x7f79ba1472cc] vnc_write
/usr/bin/kvm(+0x27f41d)[0x7f79ba12f41d] send_hextile_tile_32
/usr/bin/kvm(+0x27fda7)[0x7f79ba12fda7] vnc_hextile_send_framebuffer_update
/usr/bin/kvm(+0x295869)[0x7f79ba145869] vnc_send_framebuffer_update
/usr/bin/kvm(+0x290e23)[0x7f79ba140e23] vnc_worker_thread_loop
/usr/bin/kvm(+0x291193)[0x7f79ba141193] vnc_worker_thread
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)[0x7f79b7eb2e9a]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f79b7be04bd]
=== Memory map: 
7f771000-7f799000 rw-p  00:00 0
..
7f799c02c000-7f79a000 ---p  00:00 0
7f79a000-7f79a0046000 rw-p  00:00 0
7f79a0046000-7f79a400 ---p  00:00 0
7f79a41e9000-7f79a41fe000 r-xp  08:01 1308204
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f79a41fe000-7f79a43fd000 ---p 00015000 08:01 1308204
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f79a43fd000-7f79a43fe000 r--p 00014000 08:01 1308204
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f79a43fe000-7f79a43ff000 rw-p 00015000 08:01 1308204
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f79a43ff000-7f79a440 ---p  00:00 0
7f79a440-7f79a4c0 rw-p  00:00 0  
[stack:44019]
..
7f79a5dfa000-7f79a5dfb000 ---p  00:00 0
7f79a5dfb000-7f79a65fb000 rw-p  00:00 0  
[stack:44013]
7f79a65fb000-7f79a65fc000 ---p  00:00 0
7f79a65fc000-7f79a6dfc000 rw-p  00:00 0  
[stack:44012]
7f79a6dfc000-7f79a6dfd000 ---p  00:00 0
7f79a6dfd000-7f79a75fd000 rw-p  00:00 0  
[stack:44011]
7f79a75fd000-7f79a75fe000 ---p  00:00 0
7f79a75fe000-7f79ac00 rw-p  00:00 0  
[stack:44010]
7f79ac00-7f79ac021000 rw-p  00:00 0
...
7f79b2a95000-7f79b3295000 rw-p  00:00 0  
[stack:44009]
7f79b3295000-7f79b32a1000 r-xp  08:01 1308191
/lib/x86_64-linux-gnu/libnss_files-2.15.so
7f79b32a1000-7f79b34a ---p c000 08:01 1308191
/lib/x86_64-linux-gnu/libnss_files-2.15.so
7f79b34a-7f79b34a1000 r--p b000 08:01 1308191
/lib/x86_64-linux-gnu/libnss_files-2.15.so
7f79b34a1000-7f79b34a2000 rw-p c000 08:01 1308191