[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug 1810000] Re: qemu system emulator crashed with the attachment of us
From: |
BALATON Zoltan |
Subject: |
[Bug 1810000] Re: qemu system emulator crashed with the attachment of usb-bt-dongle device |
Date: |
Sun, 24 May 2020 21:57:21 -0000 |
This issue has nothing to do with bluetooth rather something with xhci. I've
got the same error while trying to pass through a usb device to a Windows VM,
once the guest driver is loaded in the the assert fires so probably it's trying
to send something that's not handled correctly. A similar (same?) issue is also
mentioned in this bug tracker:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=849884
For me it happens with both qemu-xhci and nec-usb-xhci
Here are some debug infos I could gather, not sure if it helps:
qemu-system-x86_64: hw/usb/core.c:591: usb_packet_copy: Assertion
`p->actual_length + bytes <= iov->size' failed.
(gdb) bt
#0 0x00007ffff6b85a7a in raise () at /lib64/libc.so.6
#1 0x00007ffff6b6e524 in abort () at /lib64/libc.so.6
#2 0x00007ffff6b6e40f in _nl_load_domain.cold.0 () at /lib64/libc.so.6
#3 0x00007ffff6b7a9a2 in () at /lib64/libc.so.6
#4 0x0000555555bd1c93 in usb_packet_copy (p=0x7fff680fc8f8,
ptr=0x55555772d63c, bytes=5) at hw/usb/core.c:591
#5 0x0000555555bd10ba in usb_generic_async_ctrl_complete (s=0x55555772d550,
p=0x7fff680fc8f8) at hw/usb/core.c:332
#6 0x0000555555c0dc54 in usb_host_req_complete_ctrl (xfer=0x7fff681a6430) at
hw/usb/host-libusb.c:416
#7 0x00007ffff7c68082 in () at /lib64/libusb-1.0.so.0
#8 0x00007ffff7c6bd1a in () at /lib64/libusb-1.0.so.0
#9 0x00007ffff7c6daa8 in () at /lib64/libusb-1.0.so.0
#10 0x00007ffff7c67a28 in () at /lib64/libusb-1.0.so.0
#11 0x00007ffff7c68b13 in libusb_handle_events_timeout_completed () at
/lib64/libusb-1.0.so.0
#12 0x0000555555c0d4a6 in usb_host_handle_fd (opaque=0x5555568eeb70) at
hw/usb/host-libusb.c:226
#13 0x0000555555e2099c in aio_dispatch_handler (ctx=0x555556614530,
node=0x5555570c06c0) at util/aio-posix.c:339
[...]
(gdb) up
#4 0x0000555555bd1c93 in usb_packet_copy (p=0x7fff680fc8f8,
ptr=0x55555772d63c, bytes=5) at hw/usb/core.c:591
591 assert(p->actual_length + bytes <= iov->size);
(gdb) list
586 void usb_packet_copy(USBPacket *p, void *ptr, size_t bytes)
587 {
588 QEMUIOVector *iov = p->combined ? &p->combined->iov : &p->iov;
589
590 assert(p->actual_length >= 0);
591 assert(p->actual_length + bytes <= iov->size);
(gdb) p/x *p
$3 = {pid = 0x69, id = 0x1a20f5c0, ep = 0x55555772e650, stream = 0x0,
iov = {iov = 0x7fff680fc200, niov = 0x0, {{nalloc = 0x1, local_iov =
{iov_base = 0x0, iov_len = 0x0}}, {__pad = {
0x1, 0x0 <repeats 11 times>}, size = 0x0}}}, parameter = 0x500000f000680,
short_not_ok = 0x0, int_req = 0x1,
status = 0x0, actual_length = 0x0, state = 0x3, combined = 0x0,
queue = {tqe_next = 0x0, tqe_circ = {tql_next = 0x0, tql_prev =
0x55555772e668}},
combined_entry = {tqe_next = 0x0, tqe_circ = {tql_next = 0x0, tql_prev =
0x0}}}
** Bug watch added: Debian Bug tracker #849884
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=849884
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1810000
Title:
qemu system emulator crashed with the attachment of usb-bt-dongle
device
Status in QEMU:
New
Bug description:
I am testing usb-bt-dongle device on xchi host controller, and found
that the qemu crashed directly with an assertion failer.
Here is the information to reproduce the crash:
Qemu git revision: 9b2e891ec5ccdb4a7d583b77988848282606fdea
System emulator: qemu-x86_64
VM image:
https://people.debian.org/~aurel32/qemu/amd64/debian_squeeze_amd64_desktop.qcow2
CommandLine: qemu-system-x86_64 -M q35 -device qemu-xhci,id=xhci -enable-kvm
-device usb-bt-dongle -hda ./debian_wheezy_amd64_standard.qcow2
Error message:
qemu-system-x86_64: /build/qemu-
Eap4uc/qemu-2.11+dfsg/hw/usb/core.c:592: usb_packet_copy: Assertion
`p->actual_length + bytes <= iov->size' failed.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1810000/+subscriptions
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug 1810000] Re: qemu system emulator crashed with the attachment of usb-bt-dongle device,
BALATON Zoltan <=