Bug 1088116
Summary: | qemu crash when device_del usb-redir | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Xiaoqing Wei <xwei> | ||||
Component: | qemu-kvm | Assignee: | Gerd Hoffmann <kraxel> | ||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 7.0 | CC: | hdegoede, hhuang, juzhang, knoel, michen, rbalakri, shuang, sluo, virt-maint, xwei | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | qemu-kvm-1.5.3-76.el7 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-03-05 08:06:18 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: | |||||||
Attachments: |
|
Description
Xiaoqing Wei
2014-04-16 04:58:32 UTC
Created attachment 886746 [details]
xz
Looked up in the source. Looks like CharDriverState->chr_update_read_handler points into nowhere (line 219 calls that function pointer). Hans, any clue? see comment #4 (In reply to Gerd Hoffmann from comment #4) > Looked up in the source. Looks like > CharDriverState->chr_update_read_handler points into nowhere (line 219 calls > that function pointer). Hans, any clue? No not really, spice-qemu-char.c does not set CharDriverState->chr_update_read_handler and it allocates the CharDriverState using gmalloc0 so it should be NULL. So either something is overriding memory, or something has freed the memory and it has been reused. Maybe qemu_chr_delete is called on it too early ? Can you repeat the test with ElectricFence please? Also this looks like autotest, which of the tests is it? short instructions: yum install -y ElectricFence export EF_ALLOW_MALLOC_0=1 export LD_PRELOAD=libefence.so.0.0 qemu-kvm $args Hi Xwei, Can you have a look comment7 and update our testing result? Best Regards, Junyi (In reply to Gerd Hoffmann from comment #7) > Can you repeat the test with ElectricFence please? > Also this looks like autotest, which of the tests is it? just manually booting cmd as above, did one cmd in monitor > > short instructions: > > yum install -y ElectricFence > export EF_ALLOW_MALLOC_0=1 > export LD_PRELOAD=libefence.so.0.0 > qemu-kvm $args crash as well. gdb fail to explain why. # gdb qemu-kvm /tmp/crash.qemu.31078/core Electric Fence 2.2.2 Copyright (C) 1987-1999 Bruce Perens <bruce> GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-51.el7 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/libexec/qemu-kvm...Reading symbols from /usr/lib/debug/usr/libexec/qemu-kvm.debug...done. done. warning: core file may not match specified executable file. [New LWP 31078] [New LWP 31085] [New LWP 31086] [New LWP 31087] [New LWP 31088] [New LWP 31089] [New LWP 31090] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". ElectricFence Exiting: mprotect() failed: Cannot allocate memory patches posted. Fix included in qemu-kvm-1.5.3-76.el7 Boot VM with usb redir and steps as below: ----------------------- QEMU 1.5.3 monitor - type 'help' for more information (qemu) info usb Device 0.1, Port 1, Speed 480 Mb/s, Product QEMU USB Tablet Device 0.0, Port 2, Speed 1.5 Mb/s, Product USB Redirection Device (qemu) device_del redir0 (qemu) info usb Device 0.1, Port 1, Speed 480 Mb/s, Product QEMU USB Tablet (qemu) info usbhost Bus 2, Addr 4, Port 1.6.1, Speed 1.5 Mb/s Class 00: USB device 0557:2213, CS-1734A V4.2.418 (qemu) ------------------------ ============== QEMU 2.1.2 monitor - type 'help' for more information (qemu) info usb Device 0.1, Port 1, Speed 480 Mb/s, Product QEMU USB Tablet Device 0.0, Port 2, Speed 1.5 Mb/s, Product USB Redirection Device (qemu) device_del redir0 (qemu) info usb Device 0.1, Port 1, Speed 480 Mb/s, Product QEMU USB Tablet ============== [root@dhcp-10-208 ~]# rpm -q qemu-kvm qemu-kvm-1.5.3-77.el7.x86_64 or qemu-kvm-rhev-2.1.2-1.el7.x86_64 [root@dhcp-10-208 ~]# rpm -qa | grep -i usb libusbx-1.0.15-4.el7.x86_64 usbredir-0.6-7.el7.x86_64 usb_modeswitch-data-20130807-2.el7.noarch usbutils-007-4.el7.x86_64 libgusb-0.1.6-3.el7.x86_64 libusb-0.1.4-3.el7.x86_64 usb_modeswitch-1.2.7-5.el7.x86_64 Set to Verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-0349.html |