Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 634845

Summary: core dumped when spice port is set to a used port
Product: Red Hat Enterprise Linux 6 Reporter: Qingtang Zhou <qzhou>
Component: qemu-kvmAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: michen, mkenneth, qzhang, virt-maint
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: 2010-09-17 10:01:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Qingtang Zhou 2010-09-17 07:23:19 UTC
Description of problem:
core dumped

Version-Release number of selected component (if applicable):
# rpm -q qemu-kvm
qemu-kvm-0.12.1.2-2.113.el6_0.1.x86_64
# uname -r
2.6.32-71.1.1.el6_0.x86_64
# rpm -q spice-server
spice-server-0.4.2-15.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. startup a guset first:
/usr/libexec/qemu-kvm \
-name vm \
-M rhel6.0.0 \
-cpu cpu64-rhel6 \
-boot d \
-enable-kvm \
-m 1024 \
-smp 2 \
-usb \
-vga cirrus \
-device AC97,id=sound0,bus=pci.0,addr=0x4 \
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 \
-chardev socket,id=human_monitor_20100917143046,path=/tmp/monitor-20100917143046,server,nowait \
-mon chardev=human_monitor_20100917143046,mode=readline \
-chardev socket,id=serial_20100917143046,path=/tmp/serial-20100917143046,server,nowait \
-device isa-serial,chardev=serial_20100917143046 \
-drive file=/tmp/20100917143046.qcow2,index=0,if=none,id=drive-0-0,media=disk,cache=none,boot=on,format=qcow2 \
-device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-0-0,id=virtio-disk0 \
-device rtl8139,netdev=20100917143046,id=20100917143046,mac=02:C6:F5:F9:8e:b1,bus=pci.0,addr=0x3 \
-netdev tap,id=20100917143046,ifname=rtl8139,script=no,downscript=no \
-drive file=/media/file-90-116/iso/ISO/Win2003/32/en_win_srv_2003_r2_enterprise_with_sp2_cd1_X13-05460.iso,index=1,if=none,id=drive-ide0-0-1,media=cdrom,readonly=on,format=raw \
-device ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 \
-fda /home/virtio-win-1.1.15.vfd \
-vnc :0 \
-spice port=8000,disable-ticketing \
-rtc base=localtime,clock=host,driftfix=none

2. startup another guest:
/usr/libexec/qemu-kvm -name 'vm' -M rhel6.0.0 -cpu $CPU -boot d -enable-kvm -m 1024 -smp 2 -usb -vga cirrus -device AC97,id=sound0,bus=pci.0,addr=0x4 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 -chardev socket,id=human_monitor_$NOW,path=/tmp/monitor-$NOW,server,nowait -mon chardev=human_monitor_$NOW,mode=readline -chardev socket,id=serial_$NOW,path=/tmp/serial-$NOW,server,nowait -device isa-serial,chardev=serial_$NOW -drive file=/tmp/$NOW.qcow2,index=0,if=none,id=drive-0-0,media=disk,cache=none,boot=on,format=qcow2 -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-0-0,id=virtio-disk0 -device rtl8139,netdev=$NOW,id=$NOW,mac='02:C6:F5:F9:8e:b1',bus=pci.0,addr=0x3 -netdev tap,id=$NOW,ifname=$NOW,script='no',downscript='no' -drive file=$CDROM,index=1,if=none,id=drive-ide0-0-1,media=cdrom,readonly=on,format=raw -device ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -vnc :$VNC -spice port=8000,disable-ticketing -rtc base=localtime,clock=host,driftfix=none
3.qemu-kvm crash.
  
Actual results:
backtrace:
(gdb) bt
#0  0x0000003aecc329a5 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x0000003aecc34185 in abort () at abort.c:92
#2  0x0000003aefc14c9e in reds_init_socket (portnr=8000, family=<value optimized out>,
    addr=0x297560 <Address 0x297560 out of bounds>) at reds.c:3153
#3  0x0000003aefc1a8fb in reds_init_net (core_interface=<value optimized out>) at reds.c:3171
#4  do_spice_init (core_interface=<value optimized out>) at reds.c:5479
#5  0x0000003aefc1aff5 in spice_server_init (s=<value optimized out>, core=<value optimized out>) at reds.c:5511
#6  0x0000000000470dcf in qemu_spice_init () at /usr/src/debug/qemu-kvm-0.12.1.2/spice.c:438
#7  0x000000000040dd35 in 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:6396

Expected results:
qemu-kvm will not crash.

Additional info:

Comment 2 Bill Burns 2010-09-17 09:51:17 UTC
*** Bug 634844 has been marked as a duplicate of this bug. ***

Comment 3 Qunfang Zhang 2010-09-17 09:55:07 UTC
There's a same bug as this one:
Bug 602153 - Guest aborted when boot with spice using a duplicate port

Comment 4 Bill Burns 2010-09-17 10:01:49 UTC

*** This bug has been marked as a duplicate of bug 602153 ***