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 1096590

Summary: QEMU core dumped when boot up two scsi-hd disk on the same virtio-scsi-pci controller in Intel host
Product: Red Hat Enterprise Linux 6 Reporter: Sibiao Luo <sluo>
Component: qemu-kvmAssignee: Fam Zheng <famz>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: medium    
Version: 6.6CC: acathrow, bsarathy, chayang, juli, juzhang, michen, mkenneth, pbonzini, qzhang, virt-maint, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1096576 Environment:
Last Closed: 2014-08-07 00:32:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1096576    
Bug Blocks:    

Comment 1 Sibiao Luo 2014-05-12 06:33:49 UTC
host info:
# uname -r && rpm -q qemu-kvm-rhev
2.6.32-448.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.424.el6.x86_64
guest info:
# uname -r
2.6.32-448.el6.x86_64

# /usr/libexec/qemu-kvm -M pc -cpu SandyBridge -enable-kvm -m 4096 -smp 4,sockets=2,cores=2,threads=1 -no-kvm-pit-reinjection -usb -device usb-tablet,id=input0 -name sluo_test -uuid 990ea161-6b67-47b2-b803-19fb01d30d30 -rtc base=localtime,clock=host,driftfix=slew -device virtio-serial-pci,id=virtio-serial0,max_ports=16,vectors=0,bus=pci.0,addr=0x3 -chardev socket,id=channel1,path=/tmp/helloworld1,server,nowait -device virtserialport,chardev=channel1,name=com.redhat.rhevm.vdsm,bus=virtio-serial0.0,id=port1 -chardev socket,id=channel2,path=/tmp/helloworld2,server,nowait -device virtserialport,chardev=channel2,name=com.redhat.rhevm.vdsm,bus=virtio-serial0.0,id=port2 -drive file=/home/RHEL6.5-20131019.1_Server_x86_64.qcow2bk,if=none,id=drive-system-disk,format=qcow2,cache=none,aio=native,werror=stop,rerror=stop -device virtio-scsi-pci,bus=pci.0,addr=0x4,id=scsi0 -device scsi-hd,drive=drive-system-disk,id=system-disk,bus=scsi0.0,bootindex=1 -nodefaults -vnc :1 -monitor stdio -drive file=/home/my-data-disk.raw,if=none,id=drive-hostdev0 -device scsi-hd,bus=scsi1.0,channel=0,scsi-id=0,lun=0,drive=drive-hostdev0,id=hostdev0,bus=scsi0.0
Segmentation fault (core dumped)


Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Failed to read a valid object file image from memory.
Core was generated by `/usr/libexec/qemu-kvm -M pc -cpu SandyBridge -enable-kvm -m 4096 -smp 4,sockets'.
Program terminated with signal 11, Segmentation fault.
#0  qdev_get_fw_dev_path_helper (dev=0x7fd4e84ff010, p=0x7fffd19cc4e0 <Address 0x7fffd19cc4e0 out of bounds>, size=-128)
    at /usr/src/debug/qemu-kvm-0.12.1.2/hw/qdev.c:901
901	        l = qdev_get_fw_dev_path_helper(dev->parent_bus->parent, p, size);
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6.x86_64
(gdb) bt
#0  qdev_get_fw_dev_path_helper (dev=0x7fd4e84ff010, p=0x7fffd19cc4e0 <Address 0x7fffd19cc4e0 out of bounds>, size=-128)
    at /usr/src/debug/qemu-kvm-0.12.1.2/hw/qdev.c:901
Cannot access memory at address 0x7fffd19cc4d8
(gdb) bt full
#0  qdev_get_fw_dev_path_helper (dev=0x7fd4e84ff010, p=0x7fffd19cc4e0 <Address 0x7fffd19cc4e0 out of bounds>, size=-128)
    at /usr/src/debug/qemu-kvm-0.12.1.2/hw/qdev.c:901
        d = <value optimized out>
        l = 0
Cannot access memory at address 0x7fffd19cc4d8
(gdb)

Comment 2 Sibiao Luo 2014-06-10 05:55:44 UTC
Thanks famz who point out my double 'bus' specified in qemu-kvm command line, but I still hit it with qemu-kvm-rhev-0.12.1.2-2.427.el6.x86_64 after i remove the duplicate 'bus'.

e.g:...-drive file=/home/RHEL-Server-7.0-64-virtio.qcow2,if=none,id=drive-system-disk,format=qcow2,cache=none,aio=native,werror=stop,rerror=stop -device virtio-scsi-pci,bus=pci.0,addr=0x4,id=scsi0 -device scsi-hd,drive=drive-system-disk,id=system-disk,bus=scsi0.0,bootindex=1 -drive file=/home/my-data-disk.raw,if=none,id=drive-hostdev0 -device scsi-hd,channel=0,scsi-id=0,lun=0,drive=drive-hostdev0,id=hostdev0,bus=scsi0.0

host info:
# uname -r && rpm -q qemu-kvm-rhev
2.6.32-475.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.427.el6.x86_64

(gdb) bt
#0  qdev_get_fw_dev_path_helper (dev=0x7f05ac507a10, p=0x7fff952d5410 "\001", size=-128)
    at /usr/src/debug/qemu-kvm-0.12.1.2/hw/qdev.c:901
#1  0x00007f05aa315c13 in qdev_get_fw_dev_path (dev=<value optimized out>)
    at /usr/src/debug/qemu-kvm-0.12.1.2/hw/qdev.c:920
#2  0x00007f05aa27e3d5 in get_boot_devices_list (size=0x7fff952d550c) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:2360
#3  0x00007f05aa3e4572 in fw_cfg_machine_ready (n=<value optimized out>, data=<value optimized out>)
    at /usr/src/debug/qemu-kvm-0.12.1.2/hw/fw_cfg.c:344
#4  0x00007f05aa3360f4 in notifier_list_notify (list=<value optimized out>, data=0x0)
    at /usr/src/debug/qemu-kvm-0.12.1.2/notify.c:37
#5  0x00007f05aa27fb0b in qemu_run_machine_init_done_notifiers (argc=65, argv=<value optimized out>, 
    envp=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:5127
#6  main (argc=65, argv=<value optimized out>, envp=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:6608
(gdb) q

Comment 3 Fam Zheng 2014-06-11 06:10:15 UTC
*** Bug 1096577 has been marked as a duplicate of this bug. ***

Comment 4 Fam Zheng 2014-08-07 00:32:26 UTC
Already fixed in bug 1095609. Mark as duplicated.

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