Bug 770525

Summary: guest will core dump when the resolution of virtual console is higher
Product: Red Hat Enterprise Linux 6 Reporter: Xiaomei Gao <xigao>
Component: qemu-kvmAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.3CC: acathrow, bcao, bsarathy, juzhang, michen, mkenneth, tburke, virt-maint, xigao
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-02 08:36:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Xiaomei Gao 2011-12-27 09:01:03 UTC
Description of problem:
when the resolution of virtual console is set up to a higher value, guest will core dump

Version-Release number of selected component (if applicable):
# uname -r
  2.6.32-220.el6.x86_64
# rpm -qa| grep qemu-kvm
  qemu-kvm-0.12.1.2-2.213.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.boot a guest
/usr/libexec/qemu-kvm -cpu qemu64,+sse2 -smp 2 -m 2G -drive file=/mnt/rhel-server-64.raw,if=none,id=drive-virtio-disk1,media=disk,cache=none,format=raw,werror=stop -device virtio-blk-pci,bus=pci.0,addr=0x3,drive=drive-virtio-disk1,id=virtio-disk1,bootindex=1 -vnc :0 -boot menu=on -M rhel6.2.0 -balloon none -netdev tap,id=id10,script=/etc/qemu-ifup -device virtio-net-pci,netdev=id10,mac=9a:fe:9d:9b:24:10,id=ndev10,bus=pci.0,addr=0x5 -serial vc:1000x1000

2.Ctrl+Alt+3,guest works normally

3.set the resolution of vc to a higher value
  /usr/libexec/qemu-kvm -serial vc:10000x10000

4 Ctrl+Alt+3,guest core dumped
(gdb) bt
#0  vnc_refresh_server_surface (vd=0x3772010) at vnc.c:2321
#1  0x00000000004de22c in vnc_refresh (opaque=0xffffffffffffffff) at vnc.c:2361
#2  0x000000000040c578 in qemu_run_timers (timeout=1000) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:1309
#3  main_loop_wait (timeout=1000) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:4058
#4  0x000000000042af2a in kvm_main_loop () at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:2225
#5  0x000000000040deb5 in main_loop (argc=<value optimized out>, argv=<value optimized out>, envp=<value optimized out>)
    at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:4234
#6  main (argc=<value optimized out>, argv=<value optimized out>, envp=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:6470
  
Actual results:
guest core dump

Expected results:
when resolution of vc is set up to a higher value, guest should boot with default max value or guest can not boot.

Additional info:

Comment 2 Mike Cao 2011-12-27 09:47:26 UTC
FYI, 
-serial vc:xxy

whether x or y larger than 2048 will cause guest core dump 

Mike

Comment 4 Xiaomei Gao 2011-12-27 10:24:55 UTC
(In reply to comment #2)
> FYI, 
> -serial vc:xxy
> 
> whether x or y larger than 2048 will cause guest core dump 
> 
> Mike
hi, Mike
Indeed, this issue is triggered under x or y larger than 2048.

Best Regards