Mac crashes when guest connected to USB UART

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
rbmisc
Posts: 14
Joined: 25. Sep 2015, 22:33

Mac crashes when guest connected to USB UART

Post by rbmisc »

I have an FTDI FT232R USB UART cable I have added to the USB Device Filters in VirualBox 5.0.12. I use this with a program I have in Windows XP guest. When I exit Windows XP, my Mac crashes. I don't remember this crash occuring before I installed El Capitan. I have the latest updates to El Capitan. If I don't have this cable in the USB Device Filters, Windows XP exits fine. I also tried this with guest Windows 10 with this cable in USB Devices Filters and exiting causes my Mac to crash. I don't know if this is a VirtualBox or El Capitan issue.
Here is the panic file generated after the crash.

Anonymous UUID: 0A0675B3-F58F-1672-686A-F0B2D4BA0726

Fri Jan 1 16:45:06 2016

Code: Select all

*** Panic Report ***
panic(cpu 2 caller 0xffffff80181d155a): Kernel trap at 0xffffff7f994096ea, type 13=general protection, registers:
CR0: 0x0000000080010033, CR2: 0x00007fff9abbec24, CR3: 0x00000001e325f0ef, CR4: 0x00000000001627e0
RAX: 0x00077c9956870158, RBX: 0x000000000000001e, RCX: 0xffffff805cd0cc08, RDX: 0x0000000000000001
RSP: 0xffffff83bde23c80, RBP: 0xffffff83bde23ca0, RSI: 0x0000000000000001, RDI: 0xffffff80624f2a00
R8:  0x000000000000ffff, R9:  0x0000000000000001, R10: 0xffffff805c9363bc, R11: 0xffffff80186b70e0
R12: 0x000000000000001e, R13: 0x0000000000050001, R14: 0xffffff7f99427808, R15: 0xffffff805cf76000
RFL: 0x0000000000010286, RIP: 0xffffff7f994096ea, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0x00007fff9abbec24, Error code: 0x0000000000000000, Fault CPU: 0x2, PL: 0

Backtrace (CPU 2), Frame : Return Address
0xffffff8392d3ddf0 : 0xffffff80180de792 
0xffffff8392d3de70 : 0xffffff80181d155a 
0xffffff8392d3e050 : 0xffffff80181ef233 
0xffffff8392d3e070 : 0xffffff7f994096ea 
0xffffff83bde23ca0 : 0xffffff801863bb81 
0xffffff83bde23cd0 : 0xffffff801863b9c6 
0xffffff83bde23cf0 : 0xffffff8018194deb 
0xffffff83bde23d30 : 0xffffff80180e2f18 
0xffffff83bde23d60 : 0xffffff80180c68a8 
0xffffff83bde23da0 : 0xffffff80180e3356 
0xffffff83bde23dd0 : 0xffffff80180cee6c 
0xffffff83bde23e50 : 0xffffff80180d180c 
0xffffff83bde23ea0 : 0xffffff801810234a 
0xffffff83bde23ee0 : 0xffffff801859c9e8 
0xffffff83bde23f50 : 0xffffff801859c73c 
0xffffff83bde23f60 : 0xffffff8018629ac1 
0xffffff83bde23fb0 : 0xffffff80181efa36 
      Kernel Extensions in backtrace:
         com.apple.iokit.IOUSBFamily(900.4.1)[C0B6A2C9-07D8-3E39-886D-06253C7FFD49]@0xffffff7f993b2000->0xffffff7f99449fff
            dependency: com.apple.iokit.IOPCIFamily(2.9)[6ADFE830-2986-35D2-8C2F-6ABEDBC94F6A]@0xffffff7f9892c000
            dependency: com.apple.iokit.IOUSBHostFamily(1.0.1)[2E215465-71AC-3DE4-B0A5-27BE9C329936]@0xffffff7f9930c000

BSD process name corresponding to current thread: VirtualBoxVM

Mac OS version:
15C50

Kernel version:
Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64
Kernel UUID: 17EA3101-D2E4-31BF-BDA9-931F51049F93
Kernel slide:     0x0000000017e00000
Kernel text base: 0xffffff8018000000
__HIB  text base: 0xffffff8017f00000
System model name: iMac14,2 (Mac-27ADBB7B4CEE8E61)

System uptime in nanoseconds: 74600466976467
last loaded kext at 50032135758679: com.apple.iokit.SCSITaskUserClient	3.7.7 (addr 0xffffff7f9b170000, size 36864)
last unloaded kext at 50200583103573: com.apple.driver.AppleUSBODD	3.7.1 (addr 0xffffff7f9b16c000, size 16384)
loaded kexts:
com.regularrateandrhythm.driver.RowmoteIREmu	1.2
org.virtualbox.kext.VBoxNetAdp	5.0.12
org.virtualbox.kext.VBoxNetFlt	5.0.12
org.virtualbox.kext.VBoxUSB	5.0.12
org.virtualbox.kext.VBoxDrv	5.0.12
com.apple.iokit.SCSITaskUserClient	3.7.7
com.apple.filesystems.smbfs	3.0.0
com.apple.filesystems.ntfs	3.13
com.apple.driver.AudioAUUC	1.70
com.apple.driver.AppleBluetoothMultitouch	90.3
com.apple.driver.AppleHWSensor	1.9.5d0
com.apple.driver.ApplePlatformEnabler	2.6.0d0
com.apple.driver.AGPM	110.20.21
com.apple.driver.X86PlatformShim	1.0.0
com.apple.filesystems.autofs	3.0
com.apple.driver.AppleMikeyHIDDriver	124
com.apple.driver.AppleOSXWatchdog	1
com.apple.driver.AppleMikeyDriver	272.51.3
com.apple.driver.AppleHDA	272.51.3
com.apple.driver.AppleUpstreamUserClient	3.6.1
com.apple.driver.pmtelemetry	1
com.apple.GeForce	10.0.8
com.apple.iokit.IOUserEthernet	1.0.1
com.apple.iokit.IOBluetoothSerialManager	4.4.3f4
com.apple.Dont_Steal_Mac_OS_X	7.0.0
com.apple.driver.AppleIntelHD5000Graphics	10.1.2
com.apple.driver.AppleHV	1
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport	4.4.3f4
com.apple.driver.AppleBacklight	170.8.3
com.apple.driver.AppleUSBFTDI	5.0.0
com.apple.driver.AppleLPC	3.1
com.apple.driver.AppleIntelFramebufferAzul	10.1.2
com.apple.driver.AppleThunderboltIP	3.0.8
com.apple.driver.AppleSMCLMU	208
com.apple.driver.AppleIntelSlowAdaptiveClocking	4.0.0
com.apple.driver.AppleMCCSControl	1.2.13
com.apple.driver.MaxTranserSizeOverrideDriver	3.7.1
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless	1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib	1.0.0
com.apple.BootCache	38
com.apple.iokit.IOAHCIBlockStorage	2.8.5
com.apple.driver.AppleSDXC	1.7.0
com.apple.iokit.AppleBCM5701Ethernet	10.1.12
com.apple.driver.AirPort.Brcm4360	1020.17.1a1
com.apple.driver.AppleAHCIPort	3.1.8
com.apple.driver.AppleACPIButtons	4.0
com.apple.driver.AppleRTC	2.0
com.apple.driver.AppleHPET	1.8
com.apple.driver.AppleSMBIOS	2.1
com.apple.driver.AppleACPIEC	4.0
com.apple.driver.AppleAPIC	1.7
com.apple.nke.applicationfirewall	163
com.apple.security.quarantine	3
com.apple.security.TMSafetyNet	8
com.apple.driver.usb.IOUSBHostHIDDevice	1.0.1
com.apple.iokit.IOSCSIMultimediaCommandsDevice	3.7.7
com.apple.iokit.IOBDStorageFamily	1.8
com.apple.iokit.IODVDStorageFamily	1.8
com.apple.iokit.IOCDStorageFamily	1.8
com.apple.driver.AppleBluetoothHIDKeyboard	181
com.apple.driver.AppleHIDKeyboard	181
com.apple.iokit.IOUSBUserClient	900.4.1
com.apple.driver.IOBluetoothHIDDriver	4.4.3f4
com.apple.driver.AppleMultitouchDriver	304.10
com.apple.driver.AppleHIDTransport	5
com.apple.kext.triggers	1.0
com.apple.driver.DspFuncLib	272.51.3
com.apple.kext.OSvKernDSPLib	525
com.apple.nvidia.driver.NVDAGK100Hal	10.0.8
com.apple.nvidia.driver.NVDAResman	10.0.8
com.apple.iokit.IOSurface	108.0.1
com.apple.driver.CoreCaptureResponder	1
com.apple.iokit.IOBluetoothHostControllerUSBTransport	4.4.3f4
com.apple.iokit.IOBluetoothFamily	4.4.3f4
com.apple.driver.AppleBacklightExpert	1.1.0
com.apple.iokit.IONDRVSupport	2.4.1
com.apple.iokit.IOSerialFamily	11
com.apple.driver.AppleHDAController	272.51.3
com.apple.iokit.IOHDAFamily	272.51.3
com.apple.iokit.IOAudioFamily	204.3
com.apple.vecLib.kext	1.2.0
com.apple.driver.AppleSMBusPCI	1.0.14d1
com.apple.AppleGraphicsDeviceControl	3.12.6
com.apple.iokit.IOAcceleratorFamily2	203.14
com.apple.driver.X86PlatformPlugin	1.0.0
com.apple.driver.IOPlatformPluginFamily	6.0.0d7
com.apple.iokit.IOSlowAdaptiveClockingFamily	1.0.0
com.apple.driver.AppleSMC	3.1.9
com.apple.driver.AppleSMBusController	1.0.14d1
com.apple.iokit.IOGraphicsFamily	2.4.1
com.apple.driver.AppleThunderboltEDMSink	4.1.1
com.apple.iokit.IOSCSIBlockCommandsDevice	3.7.7
com.apple.iokit.IOUSBMassStorageDriver	1.0.0
com.apple.iokit.IOSCSIArchitectureModelFamily	3.7.7
com.apple.driver.usb.AppleUSBHostCompositeDevice	1.0.1
com.apple.driver.usb.AppleUSBHub	1.0.1
com.apple.driver.CoreStorage	517.20.1
com.apple.driver.AppleThunderboltDPOutAdapter	4.1.3
com.apple.driver.AppleThunderboltDPInAdapter	4.1.3
com.apple.driver.AppleThunderboltDPAdapterFamily	4.1.3
com.apple.driver.AppleThunderboltPCIDownAdapter	2.0.2
com.apple.driver.AppleThunderboltNHI	4.0.4
com.apple.iokit.IOThunderboltFamily	5.1.0
com.apple.iokit.IOEthernetAVBController	1.0.3b3
com.apple.iokit.IO80211Family	1110.26
com.apple.driver.mDNSOffloadUserClient	1.0.1b8
com.apple.iokit.IONetworkingFamily	3.2
com.apple.driver.corecapture	1.0.4
com.apple.iokit.IOAHCIFamily	2.8.1
com.apple.driver.usb.AppleUSBXHCIPCI	1.0.1
com.apple.driver.usb.AppleUSBXHCI	1.0.1
com.apple.iokit.IOUSBFamily	900.4.1
com.apple.iokit.IOUSBHostFamily	1.0.1
com.apple.driver.AppleUSBHostMergeProperties	1.0.1
com.apple.driver.AppleEFINVRAM	2.0
com.apple.driver.AppleEFIRuntime	2.0
com.apple.iokit.IOHIDFamily	2.0.0
com.apple.iokit.IOSMBusFamily	1.1
com.apple.security.sandbox	300.0
com.apple.kext.AppleMatch	1.0.0d1
com.apple.driver.AppleKeyStore	2
com.apple.driver.AppleMobileFileIntegrity	1.0.5
com.apple.driver.AppleCredentialManager	1.0
com.apple.driver.DiskImages	417.1
com.apple.iokit.IOStorageFamily	2.1
com.apple.iokit.IOReportFamily	31
com.apple.driver.AppleFDEKeyStore	28.30
com.apple.driver.AppleACPIPlatform	4.0
com.apple.iokit.IOPCIFamily	2.9
com.apple.iokit.IOACPIFamily	1.4
com.apple.kec.Libm	1
com.apple.kec.pthread	1
com.apple.kec.corecrypto	1.0
dan_g
Posts: 2
Joined: 30. Apr 2010, 00:40
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu

Re: Mac crashes when guest connected to USB UART

Post by dan_g »

Same problem here! This is a Xilinx board using a Digilent JTAG programming adapter via USB. EL Cap host, Ubuntu guest. Virtualbox 5.0.12 r104815

Entire host machine reboots when I unplug the device, or power off the device, or even just disconnect from the guest it with the Virtualbox menu.
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Any and all
Contact:

Re: Mac crashes when guest connected to USB UART

Post by michaln »

Talk to Apple about that. They rewrote the USB stack for El Capitan and didn't publish the source code, so we aren't exactly in a position to debug it for you.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Mac crashes when guest connected to USB UART

Post by socratis »

michaln wrote:They rewrote the USB stack for El Capitan and didn't publish the source code
Wait a minute. The USB stack was part of their open-source Darwin (I can't recall the whole thing now) and with ElCapitan they went to a closed-source model?
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.
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Any and all
Contact:

Re: Mac crashes when guest connected to USB UART

Post by michaln »

socratis wrote:Wait a minute. The USB stack was part of their open-source Darwin (I can't recall the whole thing now) and with ElCapitan they went to a closed-source model?
They didn't, but it's complicated. Apple does publish a significant chunk of OS X source code. However, some components never get released (say, the Intel E1000 NIC driver or HD Audio driver) and many are published occasionally. Apple did publish the USB stack source code several times, but the last time was for Mountain Lion (10.8.5 or so). I don't think there's been any statement to the effect that the USB code won't be published ever again, but at the moment the El Capitan USB stack source code isn't available.

See http://opensource.apple.com/ for what is or isn't out there.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Mac crashes when guest connected to USB UART

Post by socratis »

OK, I see. Sometimes Apple does not so "logical" stuff. Not trying to justify it, it's just that I've seem it once too many.
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.
Post Reply