Public bug reported:

When trying to attach a usb device to a running vm libvirt segfaults.

cat ./sd-attach.sh 
virsh attach-device vmname /home/asavah/sdcard.xml

cat sdcard.xml 
<hostdev mode='subsystem' type='usb'>
  <source>
    <vendor id='0x8564'/>
    <product id='0x4000'/>
  </source>
</hostdev>

Output:
error: Disconnected from qemu:///system due to end of file
error: Failed to attach device from /home/asavah/sdcard.xml
error: End of file while reading data: Input/output error


Dmesg:
[ 1035.308457] libvirtd[2801]: segfault at 0 ip 00007f78a4a9cfc0 sp 
00007f789726a968 error 4 in libvirt.so.0.4000.0[7f78a498b000+3be000]


This was working perfectly on ubuntu 16.04 and 17.10.

lsb_release -rd
Description:    Ubuntu Bionic Beaver (development branch)
Release:        18.04

apt policy libvirt-bin
libvirt-bin:
  Installed: 4.0.0-1ubuntu5
  Candidate: 4.0.0-1ubuntu5
  Version table:
 *** 4.0.0-1ubuntu5 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

** Affects: libvirt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1756918

Title:
  libvirt crashes when attaching usb device

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1756918/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to