VM crash accessing USB device on USB 3 host controller

Discussions related to using VirtualBox on Windows hosts.
Post Reply
ddbug
Posts: 9
Joined: 8. Dec 2015, 18:24

VM crash accessing USB device on USB 3 host controller

Post by ddbug »

It looks that there's still some bug with redirecting USB devices into a VM, which involves USB3 host controller.
I'm trying to redirect a built-in USB card reader of the laptop with a CF card. The reader itself is Realtek USB 2.0, but the host controller is Intel USB 3.0
Soon after accessing the card the VM crashes.
Redirection of external readers (USB 2.0 or 3.0) attached to USB 2 hub works well.

The guest is Ubuntu 17.04 x64, host Win10 1803 (multiple updates) on Lenovo G50-80

Excerpt from the log:

Code: Select all

VirtualBox VM 5.2.12 r122591 win.amd64 (May  9 2018 10:42:46) release log
00:00:02.986626 Log opened 2018-06-03T13:23:37.844800400Z
00:00:02.986627 Build Type: release
00:00:02.986631 OS Product: Windows 10
00:00:02.986632 OS Release: 10.0.17134
00:00:03.097817 DMI Product Name: 80E5
00:00:03.102189 DMI Product Version: Lenovo G50-80
00:00:03.102200 Host RAM: 8106MB (7.9GB) total, 4269MB (4.1GB) available
00:00:03.102205 Executable: C:\Program Files\Oracle\VirtualBox\VirtualBox.exe
00:00:03.102206 Package type: WINDOWS_64BITS_GENERIC
00:00:03.103763   Oracle VM VirtualBox Extension Pack (Version: 5.2.12 r122591; VRDE Module: VBoxVRDP)
...........
00:20:38.363765 VUSB: Attached '00000000cd952e90[proxy 0bda:0129]' to port 1 on RootHub#0 (HighSpeed)
00:20:38.363969 EHCI: USB Operational
........
00:21:04.976443 !!! rtR3WinUnhandledXcptFilter caught an exception on thread 0000000000000860!!!
00:21:04.976462 
00:21:04.976463 ExceptionCode=0xc0000005 ExceptionFlags=0x00000000 ExceptionAddress=00007ffb6cbed390
00:21:04.976469 ExceptionInformation[0]=0000000000000000
00:21:04.976473 ExceptionInformation[1]=0000000000000010
..............
00:21:04.977032 Thread name: USBDevIo--1
00:21:04.977036 Thread IPRT: 000000004d347640
..........
00:21:04.977709 Potential code addresses on the stack:
00:21:04.977712 Xcpt PC         : 00007ffb6cbed390 - 0x0009d390 bytes into C:\Program Files\Oracle\VirtualBox\VBoxDD.DLL
00:21:04.977721 0000000003a0f978: 0000000055a78d94 - 0x00068d94 bytes into C:\Program Files\Oracle\VirtualBox\MSVCR100.dll
00:21:04.977727 0000000003a0f9a8: 00007ffb6cbe7cbf - 0x00097cbf bytes into C:\Program Files\Oracle\VirtualBox\VBoxDD.DLL
00:21:04.977734 0000000003a0f9d8: 00007ffb84db3cdb - 0x000a3cdb bytes into C:\Program Files\Oracle\VirtualBox\VBoxRT.dll
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VM crash accessing USB device on USB 3 host controller

Post by socratis »

ddbug wrote:Soon after accessing the card the VM crashes.
Do you mean a Guru Meditation? In any event, post a complete ZIPPED VBox.log from such a session. Partial logs are not that helpful I'm afraid.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
ddbug
Posts: 9
Joined: 8. Dec 2015, 18:24

Crash when ejecting flash card from USB reader

Post by ddbug »

The USB redirection layer still seems to have stability issues with USB 3 host controllers vs. USB 2.

My Ubuntu VM crashes on Win10 x64 1803 host when a flash card is removed from USB reader (internal SD card reader of Lenovo laptop).
The USB reader is attached to the VM (because Windows host does not understand the card format).

The log is attached. The interesting part is below:

Code: Select all

00:00:18.369227 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:18.472836 AIOMgr: Async flushes not supported
00:00:19.301079 EHCI: USB Suspended
00:00:29.189710 VUSB: Attached '00000000043d2a60[proxy 0bda:0129]' to port 1 on RootHub#0 (HighSpeed)
00:00:29.190151 EHCI: USB Operational
00:04:39.671411 
00:04:39.671416 !!! rtR3WinUnhandledXcptFilter caught an exception on thread 0000000000003dcc!!!
00:04:39.671464 
00:04:39.671465 ExceptionCode=0xc0000005 ExceptionFlags=0x00000000 ExceptionAddress=00007ff8ff5bdde0
00:04:39.671493 ExceptionInformation[0]=0000000000000000
00:04:39.671517 ExceptionInformation[1]=0000000000000010
.....................................
00:04:39.673613 Thread ID:   0000000000003dcc
00:04:39.673649 Thread name: USBDevIo--1
00:04:39.673672 Thread IPRT: 00000000073bd420

Version: 5.2.16 (64 bit), updated from several earlier versions.
Machine: Lenovo G50-80,
Intel(R) USB 3.0 eXtensible Host Controller PCI\VEN_8086&DEV_9CB1&SUBSYS_390B17AA&REV_03


Thanks for reading...

-- dd
Attachments
log-usb-sd-crash.7z
(22.13 KiB) Downloaded 11 times
Post Reply