Pulling and offline USB device crashes host (1.3.1-r2)

Developer discussions.

Pulling and offline USB device crashes host (1.3.1-r2)

Postby mortengh » Sat Aug 29, 2015 9:10 pm

Hello!

Host OS: MacOSX Yosemite 10.10.5
OpenZFS: 1.3.1-r2
Pool: raidz1 of 3 x 128GB disks
Hardware:
Sandisk Ultrafit USB stick
(http://www.sandisk.com/products/usb/drives/ultra-fit3/)
Connected to an TRENDnet TU3-ETGH3 USB3 hub
(http://www.trendnet.com/products/prodde ... _TU3-ETGH3)

I have a raidz1 pool created from the 3 USB sticks. I tried to offline one of the sticks and made a scrub so I could tell which of the USB devices if was that was offline (by looking at the disk access LEDs on the devices).
I then just pulled out the device but that resulted in an immediate crash of the host OS.
After restart I got the following error report from MacOSX:

Code: Select all
Anonymous UUID:       E58FFAFD-486A-CF6E-3161-86F9A4EDFEE3

Sun Aug 30 06:49:11 2015

*** Panic Report ***
panic(cpu 3 caller 0xffffff801a816df2): Kernel trap at 0xffffff7f9af21138, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0x0000000000000018, CR3: 0x000000001dc13000, CR4: 0x00000000001627e0
RAX: 0x0000000000000000, RBX: 0xffffff801a7412a0, RCX: 0xffffff7f9af21130, RDX: 0x0000000000000000
RSP: 0xffffff8206fcbfb0, RBP: 0xffffff8206fcbfb0, RSI: 0x0000000000000000, RDI: 0xffffff8246772300
R8:  0x00000000009890e0, R9:  0xffffff81fa8e5068, R10: 0x00001abf9f50b496, R11: 0x00001abf9eb823b6
R12: 0xffffff803f0025c0, R13: 0x00001abf8bfd10d2, R14: 0x0000000000000000, R15: 0xffffff803ad92e28
RFL: 0x0000000000010246, RIP: 0xffffff7f9af21138, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0x0000000000000018, Error code: 0x0000000000000002, Fault CPU: 0x3

Backtrace (CPU 3), Frame : Return Address
0xffffff8206fcbc60 : 0xffffff801a72ad21
0xffffff8206fcbce0 : 0xffffff801a816df2
0xffffff8206fcbea0 : 0xffffff801a833ca3
0xffffff8206fcbec0 : 0xffffff7f9af21138
0xffffff8206fcbfb0 : 0xffffff801a8116e7
      Kernel Extensions in backtrace:
         net.lundman.zfs(1.3.1)[0A0974C1-DAF6-31E2-AC90-1DAFD34649D1]@0xffffff7f9aeab000->0xffffff7f9b059fff
            dependency: com.apple.iokit.IOStorageFamily(2.0)[D0ABB996-2084-3A05-A166-5951D925EF80]@0xffffff7f9ae47000
            dependency: net.lundman.spl(1.3.1)[C6AC8C88-D1A1-329A-B4BA-359F129DE859]@0xffffff7f9ae76000

BSD process name corresponding to current thread: kernel_task

Mac OS version:
14F27

Kernel version:
Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64
Kernel UUID: 58F06365-45C7-3CA7-B80D-173AFD1A03C4
Kernel slide:     0x000000001a400000
Kernel text base: 0xffffff801a600000
__HIB  text base: 0xffffff801a500000
System model name: MacBookPro11,3 (Mac-2BD1B31983FE1663)

System uptime in nanoseconds: 29410303987316
last loaded kext at 26979277026203: com.apple.iokit.SCSITaskUserClient   3.7.5 (addr 0xffffff7f9d51f000, size 36864)
last unloaded kext at 27086812089255: com.apple.driver.AppleUSBCDC   4.3.3b1 (addr 0xffffff7f9d51b000, size 16384)
loaded kexts:
com.vmware.kext.vmioplug.15.1.6   15.1.6
com.vmware.kext.vmx86   0298.55.94
com.vmware.kext.vmnet   0298.55.94
com.vmware.kext.vsockets   90.8.0
com.vmware.kext.vmci   90.8.1
net.lundman.zfs   1.3.1
net.lundman.spl   1.3.1
com.asix.driver.ax88179-178a   1.0.0
com.apple.filesystems.smbfs   3.0.2
com.apple.driver.AppleHWSensor   1.9.5d0
com.apple.driver.AudioAUUC   1.70
com.apple.filesystems.autofs   3.0
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport   4.3.6f3
com.apple.driver.ApplePlatformEnabler   2.2.0d4
com.apple.driver.AGPM   110.19.6
com.apple.driver.X86PlatformShim   1.0.0
com.apple.driver.AppleUSBTCButtons   240.2
com.apple.driver.AppleOSXWatchdog   1
com.apple.iokit.IOBluetoothSerialManager   4.3.6f3
com.apple.driver.AppleUSBTCKeyboard   240.2
com.apple.driver.AppleGraphicsDevicePolicy   3.7.7
com.apple.driver.AppleHDA   272.18.1
com.apple.driver.AppleUpstreamUserClient   3.6.1
com.apple.iokit.IOUserEthernet   1.0.1
com.apple.Dont_Steal_Mac_OS_X   7.0.0
com.apple.GeForce   10.0.4
com.apple.driver.AppleHWAccess   1
com.apple.driver.AppleIntelHD5000Graphics   10.0.6
com.apple.driver.AppleHV   1
com.apple.driver.AppleSMCLMU   2.0.7d0
com.apple.driver.AppleMCCSControl   1.2.12
com.apple.driver.AppleLPC   1.7.3
com.apple.driver.AppleCameraInterface   5.36.0
com.apple.driver.AppleMuxControl   3.10.25
com.apple.driver.AppleIntelFramebufferAzul   10.0.6
com.apple.driver.AppleIntelSlowAdaptiveClocking   4.0.0
com.apple.driver.AppleThunderboltIP   2.0.2
com.apple.driver.AppleUSBCardReader   3.5.5
com.apple.driver.AppleUSBHub   705.4.2
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless   1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib   1.0.0
com.apple.BootCache   36
com.apple.driver.XsanFilter   404
com.apple.iokit.IOAHCIBlockStorage   2.7.1
com.apple.driver.AppleAHCIPort   3.1.2
com.apple.driver.AirPort.Brcm4360   930.37.3
com.apple.driver.AppleUSBXHCI   710.4.11
com.apple.driver.AppleSmartBatteryManager   161.0.0
com.apple.driver.AppleACPIButtons   3.1
com.apple.driver.AppleRTC   2.0
com.apple.driver.AppleHPET   1.8
com.apple.driver.AppleSMBIOS   2.1
com.apple.driver.AppleACPIEC   3.1
com.apple.driver.AppleAPIC   1.7
com.apple.nke.applicationfirewall   161
com.apple.security.quarantine   3
com.apple.security.TMSafetyNet   8
com.apple.kext.triggers   1.0
com.apple.iokit.IOBluetoothHostControllerUSBTransport   4.3.6f3
com.apple.driver.AppleUSBMultitouch   245.2
com.apple.iokit.IOUSBUserClient   705.4.0
com.apple.iokit.IOSerialFamily   11
com.apple.iokit.IOUSBHIDDriver   705.4.0
com.apple.driver.DspFuncLib   272.18.1
com.apple.kext.OSvKernDSPLib   1.15
com.apple.iokit.IOBluetoothFamily   4.3.6f3
com.apple.nvidia.driver.NVDAGK100Hal   10.0.4
com.apple.nvidia.driver.NVDAResman   10.0.4
com.apple.iokit.IOSurface   97.4
com.apple.driver.AppleHDAController   272.18.1
com.apple.iokit.IOHDAFamily   272.18.1
com.apple.iokit.IOAudioFamily   203.3
com.apple.vecLib.kext   1.2.0
com.apple.driver.AppleSMBusController   1.0.13d1
com.apple.driver.AppleBacklightExpert   1.1.0
com.apple.iokit.IONDRVSupport   2.4.1
com.apple.driver.AppleGraphicsControl   3.10.25
com.apple.AppleGraphicsDeviceControl   3.10.25
com.apple.iokit.IOAcceleratorFamily2   156.16
com.apple.iokit.IOGraphicsFamily   2.4.1
com.apple.driver.X86PlatformPlugin   1.0.0
com.apple.driver.AppleSMC   3.1.9
com.apple.driver.IOPlatformPluginFamily   5.9.1d7
com.apple.iokit.IOSlowAdaptiveClockingFamily   1.0.0
com.apple.iokit.IOSCSIBlockCommandsDevice   3.7.5
com.apple.iokit.IOUSBMassStorageClass   3.7.2
com.apple.iokit.IOSCSIArchitectureModelFamily   3.7.5
com.apple.driver.AppleUSBMergeNub   705.4.0
com.apple.driver.AppleUSBComposite   705.4.9
com.apple.driver.CoreStorage   471.30.1
com.apple.iokit.IOAHCIFamily   2.7.5
com.apple.driver.AppleThunderboltDPInAdapter   4.0.6
com.apple.driver.AppleThunderboltDPAdapterFamily   4.0.6
com.apple.driver.AppleThunderboltPCIDownAdapter   2.0.2
com.apple.driver.AppleThunderboltNHI   3.1.7
com.apple.iokit.IOThunderboltFamily   4.2.2
com.apple.iokit.IO80211Family   730.60
com.apple.driver.mDNSOffloadUserClient   1.0.1b8
com.apple.iokit.IONetworkingFamily   3.2
com.apple.iokit.IOUSBFamily   720.4.4
com.apple.driver.AppleEFINVRAM   2.0
com.apple.iokit.IOHIDFamily   2.0.0
com.apple.driver.AppleEFIRuntime   2.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   398
com.apple.iokit.IOStorageFamily   2.0
com.apple.iokit.IOReportFamily   31
com.apple.driver.AppleFDEKeyStore   28.30
com.apple.driver.AppleACPIPlatform   3.1
com.apple.iokit.IOPCIFamily   2.9
com.apple.iokit.IOACPIFamily   1.4
com.apple.kec.corecrypto   1.0
com.apple.kec.Libm   1
com.apple.kec.pthread   1
Model: MacBookPro11,3, BootROM MBP112.0138.B15, 4 processors, Intel Core i7, 2.6 GHz, 16 GB, SMC 2.19f12
Graphics: Intel Iris Pro, Intel Iris Pro, Built-In
Graphics: NVIDIA GeForce GT 750M, NVIDIA GeForce GT 750M, PCIe, 2048 MB
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x02FE, -
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x02FE, -
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x134), Broadcom BCM43xx 1.0 (7.15.166.24.3)
Bluetooth: Version 4.3.6f3 16238, 3 services, 27 devices, 1 incoming serial ports
Network Service: AX88179 USB 3.0 to Gigabit Ethernet, Ethernet, en6
Serial ATA Device: APPLE SSD SM0512F, 500,28 GB
USB Device: Internal Memory Card Reader
USB Device: Hub
USB Device: Ultra Fit
USB Device: Ultra Fit
USB Device: AX88179
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: Apple Internal Keyboard / Trackpad
USB Device: RAPOO 2.4G Wireless Device
USB Device: USB2.0 Hub
Thunderbolt Bus: MacBook Pro, Apple Inc., 17.1


I am not sure if this is a known issue?

Best regards,
- Morten Green Hermansen, Fanitas
mortengh
 
Posts: 4
Joined: Thu May 22, 2014 5:04 am

Re: Pulling and offline USB device crashes host (1.3.1-r2)

Postby Brendon » Sun Aug 30, 2015 3:54 pm

Not sure if this is a known issue or not. However the panic log is not really readable in that format.

Perhaps you could turn "keepsyms" on IAW https://openzfsonosx.org/wiki/Developme ... g_with_GDB, and provide a new log?

Cheers
Brendon
Brendon
 
Posts: 278
Joined: Thu Mar 06, 2014 12:51 pm


Return to OpenZFS on OS X Development

Who is online

Users browsing this forum: No registered users and 1 guest