openzfsonosx / zfs

OpenZFS on OS X
https://openzfsonosx.org/
Other
823 stars 72 forks source link

panic when running tests in zvol_first_open #343

Open brendonhumphrey opened 9 years ago

brendonhumphrey commented 9 years ago

Running unit tests against current master frequently results in the panic below:

No specific test seems to cause it.

Probability of occurrence - ~30%

Anonymous UUID: CA88F630-177A-14BD-1D8B-55322467686B

Sun Jul 5 07:55:32 2015

* Panic Report * panic(cpu 6 caller 0xffffff7fab0661ae): "VERIFY(" "dsl_prop_get_integer(zv->zv_name, \"readonly\", &readonly, NULL) == 0" ") failed\n"@zvol.c:733 Backtrace (CPU 6), Frame : Return Address 0xffffff818acdb4e0 : 0xffffff802772bda1 mach_kernel : _panic + 0xd1 0xffffff818acdb560 : 0xffffff7fab0661ae net.lundman.zfs : _zvol_first_open + 0x10a 0xffffff818acdb5a0 : 0xffffff7fab0669b8 net.lundman.zfs : _zvol_open_impl + 0x20 0xffffff818acdb5c0 : 0xffffff7fab068dcd net.lundman.zfs : ZN27net_lundman_zfs_zvol_device10handleOpenEP9IOServicejPv + 0xdd 0xffffff818acdb600 : 0xffffff8027cb2dda mach_kernel : __ZN9IOService4openEPS_jPv + 0x8a 0xffffff818acdb660 : 0xffffff7fa7e4ad80 com.apple.iokit.IOStorageFamily : ZN20IOBlockStorageDriver10handleOpenEP9IOServicejPv + 0x56 0xffffff818acdb690 : 0xffffff8027cb2dda mach_kernel : ZN9IOService4openEPS_jPv + 0x8a 0xffffff818acdb6f0 : 0xffffff7fa7e51175 com.apple.iokit.IOStorageFamily : __ZN7IOMedia10handleOpenEP9IOServicejPv + 0x251 0xffffff818acdb750 : 0xffffff8027cb2dda mach_kernel : ZN9IOService4openEPS_jPv + 0x8a 0xffffff818acdb7b0 : 0xffffff7fa7e52308 com.apple.iokit.IOStorageFamily : _dkopen + 0x207 0xffffff818acdb820 : 0xffffff802798038d mach_kernel : _spec_open + 0x27d 0xffffff818acdb890 : 0xffffff802796f317 mach_kernel : _VNOP_OPEN + 0xd7 0xffffff818acdb8f0 : 0xffffff8027962e36 mach_kernel : _vn_open_auth + 0x6e6 0xffffff818acdb990 : 0xffffff802794e618 mach_kernel : _open1 + 0x228 0xffffff818acdbbd0 : 0xffffff802794f1f0 mach_kernel : _open + 0x1a0 0xffffff818acdbf50 : 0xffffff8027c4bc56 mach_kernel : _unix_syscall64 + 0x296 0xffffff818acdbfb0 : 0xffffff8027835376 mach_kernel : _hndl_unix_scall64 + 0x16 Kernel Extensions in backtrace: com.apple.iokit.IOStorageFamily(2.0)[76E50D45-C97B-3ED1-97C5-94E6E0EB4514]@0xffffff7fa7e47000->0xffffff7fa7e6cfff net.lundman.zfs(1.3.1)[2C9F1835-B38A-3588-B3F4-D0CACD641BF1]@0xffffff7faafc9000->0xffffff7fab1fffff dependency: com.apple.iokit.IOStorageFamily(2.0)[76E50D45-C97B-3ED1-97C5-94E6E0EB4514]@0xffffff7fa7e47000 dependency: net.lundman.spl(1.3.1)[EB16B7BB-37F0-3C50-AA10-54FA958C32C6]@0xffffff7faaf92000

BSD process name corresponding to current thread: cd9660.util Boot args: -v keepsyms=y kext-dev-mode=1

Mac OS version: 14E46

Kernel version: Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64 Kernel UUID: E3C26B2F-8B97-3F1D-B193-690F7E34F830 Kernel slide: 0x0000000027400000 Kernel text base: 0xffffff8027600000 __HIB text base: 0xffffff8027500000 System model name: MacBookPro8,2 (Mac-94245A3940C91C80)

System uptime in nanoseconds: 27119498840383 last loaded kext at 25957330261066: net.lundman.zfs 1.3.1 (addr 0xffffff7faafc9000, size 2322432) last unloaded kext at 25841689544980: net.lundman.spl 1.3.1 (addr 0xffffff7fa81a4000, size 225280) loaded kexts: net.lundman.zfs 1.3.1 net.lundman.spl 1.3.1 com.apple.filesystems.afpfs 11.0 com.apple.nke.asp-tcp 8.0.0 com.apple.filesystems.smbfs 3.0.1 com.apple.driver.AppleHWSensor 1.9.5d0 com.apple.driver.AudioAUUC 1.70 com.apple.filesystems.autofs 3.0 com.apple.driver.AGPM 110.19.6 com.apple.iokit.IOBluetoothSerialManager 4.3.5f8 com.apple.driver.AppleOSXWatchdog 1 com.apple.driver.AppleMikeyHIDDriver 124 com.apple.driver.AppleMikeyDriver 272.18.1 com.apple.driver.AppleUpstreamUserClient 3.6.1 com.apple.kext.AMDFramebuffer 1.3.2 com.apple.driver.AppleHDA 272.18.1 com.apple.iokit.IOUserEthernet 1.0.1 com.apple.AMDRadeonX3000 1.3.2 com.apple.driver.AppleIntelHD3000Graphics 10.0.0 com.apple.Dont_Steal_Mac_OS_X 7.0.0 com.apple.driver.AppleHWAccess 1 com.apple.driver.AppleHV 1 com.apple.driver.AppleSMCPDRC 1.0.0 com.apple.driver.AppleThunderboltIP 2.0.2 com.apple.kext.AMD6000Controller 1.3.2 com.apple.driver.SMCMotionSensor 3.0.4d1 com.apple.driver.AppleLPC 1.7.3 com.apple.driver.AppleIntelSlowAdaptiveClocking 4.0.0 com.apple.driver.AppleSMCLMU 2.0.7d0 com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.3.5f8 com.apple.driver.AppleIntelSNBGraphicsFB 10.0.0 com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0 com.apple.driver.AppleMuxControl 3.10.24 com.apple.driver.AppleMCCSControl 1.2.12 com.apple.driver.AppleUSBTCButtons 240.2 com.apple.driver.AppleUSBTCKeyboard 240.2 com.apple.driver.AppleIRController 327.5 com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1 com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0 com.apple.BootCache 36 com.apple.iokit.SCSITaskUserClient 3.7.5 com.apple.driver.XsanFilter 404 com.apple.iokit.IOAHCIBlockStorage 2.7.1 com.apple.driver.AppleUSBHub 705.4.2 com.apple.driver.AirPort.Brcm4331 800.20.24 com.apple.driver.AppleSDXC 1.6.5 com.apple.iokit.AppleBCM5701Ethernet 10.1.3 com.apple.driver.AppleFWOHCI 5.5.2 com.apple.driver.AppleAHCIPort 3.1.2 com.apple.driver.AppleUSBEHCI 705.4.14 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.driver.AppleIntelCPUPowerManagementClient 218.0.0 com.apple.nke.applicationfirewall 161 com.apple.security.quarantine 3 com.apple.security.TMSafetyNet 8 com.apple.driver.AppleIntelCPUPowerManagement 218.0.0 com.apple.security.SecureRemotePassword 1.0 com.apple.kext.triggers 1.0 com.apple.iokit.IOSerialFamily 11 com.apple.driver.DspFuncLib 272.18.1 com.apple.kext.OSvKernDSPLib 1.15 com.apple.iokit.IOSurface 97.4 com.apple.iokit.IOAcceleratorFamily2 156.16 com.apple.iokit.IOFireWireIP 2.2.6 com.apple.driver.AppleSMBusPCI 1.0.12d1 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.kext.AMDSupport 1.3.2 com.apple.AppleGraphicsDeviceControl 3.10.24 com.apple.iokit.IOUSBUserClient 705.4.0 com.apple.iokit.IOSlowAdaptiveClockingFamily 1.0.0 com.apple.iokit.IOBluetoothHostControllerUSBTransport 4.3.5f8 com.apple.iokit.IOBluetoothFamily 4.3.5f8 com.apple.driver.IOPlatformPluginLegacy 1.0.0 com.apple.driver.IOPlatformPluginFamily 5.9.1d7 com.apple.driver.AppleGraphicsControl 3.10.24 com.apple.driver.AppleBacklightExpert 1.1.0 com.apple.driver.AppleSMC 3.1.9 com.apple.iokit.IONDRVSupport 2.4.1 com.apple.driver.AppleSMBusController 1.0.13d1 com.apple.iokit.IOGraphicsFamily 2.4.1 com.apple.driver.AppleUSBMultitouch 245.2 com.apple.iokit.IOUSBHIDDriver 705.4.0 com.apple.driver.AppleUSBMergeNub 705.4.0 com.apple.driver.AppleUSBComposite 705.4.9 com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.7.5 com.apple.iokit.IOBDStorageFamily 1.7 com.apple.iokit.IODVDStorageFamily 1.7.1 com.apple.iokit.IOCDStorageFamily 1.7.1 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.IOAHCISerialATAPI 2.6.1 com.apple.iokit.IOSCSIArchitectureModelFamily 3.7.5 com.apple.iokit.IOEthernetAVBController 1.0.3b3 com.apple.iokit.IO80211Family 730.60 com.apple.driver.mDNSOffloadUserClient 1.0.1b8 com.apple.iokit.IONetworkingFamily 3.2 com.apple.iokit.IOFireWireFamily 4.5.7 com.apple.iokit.IOAHCIFamily 2.7.5 com.apple.iokit.IOUSBFamily 720.4.4 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 397 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.Libm 1 com.apple.kec.pthread 1 com.apple.kec.corecrypto 1.0

lundman commented 9 years ago

c436c4dcb6637c9a77472f374da24efcd564eb88

brendonhumphrey commented 9 years ago

Proving harder to trigger than hoped! Heres a double panic from master in the same area:

https://www.dropbox.com/s/h7vj3ib5rqddqc9/Screen%20Shot%202015-07-12%20at%2012.16.15%20pm.png?dl=0

lundman commented 9 years ago

7007aec4afeff8730a0301b275e7323c66b27373

ilovezfs commented 8 years ago
Anonymous UUID:       A4929C5D-2A53-9781-733C-BA9069AE669C

Tue Nov  3 21:59:43 2015

*** Panic Report ***
panic(cpu 1 caller 0xffffff7f8ad1666c): "VERIFY(" "dsl_prop_get_integer(zv->zv_name, \"readonly\", &readonly, NULL) == 0" ") failed\n"@zvol.c:742
Backtrace (CPU 1), Frame : Return Address
0xffffff90b24dba70 : 0xffffff800a0e5357 mach_kernel : _panic + 0xe7
0xffffff90b24dbaf0 : 0xffffff7f8ad1666c net.lundman.zfs : _zvol_first_open + 0x18c
0xffffff90b24dbb40 : 0xffffff7f8ad17409 net.lundman.zfs : _zvol_open_impl + 0x49
0xffffff90b24dbb80 : 0xffffff7f8ad1ab20 net.lundman.zfs : __ZN27net_lundman_zfs_zvol_device10handleOpenEP9IOServicejPv + 0x130
0xffffff90b24dbbc0 : 0xffffff800a692d14 mach_kernel : __ZN9IOService4openEPS_jPv + 0x84
0xffffff90b24dbc20 : 0xffffff7f8a850944 com.apple.iokit.IOStorageFamily : __ZN20IOBlockStorageDriver10handleOpenEP9IOServicejPv + 0x56
0xffffff90b24dbc50 : 0xffffff800a692d14 mach_kernel : __ZN9IOService4openEPS_jPv + 0x84
0xffffff90b24dbcb0 : 0xffffff7f8a856e07 com.apple.iokit.IOStorageFamily : __ZN7IOMedia10handleOpenEP9IOServicejPv + 0x261
0xffffff90b24dbd10 : 0xffffff800a692d14 mach_kernel : __ZN9IOService4openEPS_jPv + 0x84
0xffffff90b24dbd70 : 0xffffff7f8a85bcb1 com.apple.iokit.IOStorageFamily : __ZN17IOPartitionScheme10handleOpenEP9IOServicejPv + 0xa3
0xffffff90b24dbdb0 : 0xffffff800a692d14 mach_kernel : __ZN9IOService4openEPS_jPv + 0x84
0xffffff90b24dbe10 : 0xffffff7f8a84f3e8 com.apple.iokit.IOStorageFamily : __ZN22IOApplePartitionScheme4scanEPi + 0xc0
0xffffff90b24dbea0 : 0xffffff7f8a84f167 com.apple.iokit.IOStorageFamily : __ZN22IOApplePartitionScheme5probeEP9IOServicePi + 0x33
0xffffff90b24dbec0 : 0xffffff800a6938ce mach_kernel : __ZN9IOService15probeCandidatesEP12OSOrderedSet + 0x69e
0xffffff90b24dbf30 : 0xffffff800a68e81a mach_kernel : __ZN9IOService14doServiceMatchEj + 0x22a
0xffffff90b24dbf70 : 0xffffff800a6947fc mach_kernel : __ZN15_IOConfigThread4mainEPvi + 0x13c
0xffffff90b24dbfb0 : 0xffffff800a1d14b7 mach_kernel : _call_continuation + 0x17
      Kernel Extensions in backtrace:
         com.apple.iokit.IOStorageFamily(2.1)[956BA336-5C0A-37E9-B395-538D1BD95AC0]@0xffffff7f8a84d000->0xffffff7f8a873fff
         net.lundman.zfs(1.4.5)[F89A610A-56B4-3D8B-A399-46B80ED089AA]@0xffffff7f8abf5000->0xffffff7f8aed5fff
            dependency: com.apple.iokit.IOStorageFamily(2.1)[956BA336-5C0A-37E9-B395-538D1BD95AC0]@0xffffff7f8a84d000
            dependency: net.lundman.spl(1.4.5)[B9C81134-4007-3646-993D-66B57BDBF3CC]@0xffffff7f8abae000

BSD process name corresponding to current thread: kernel_task
Boot args: keepsyms=y kext-dev-mode=1 debug=0x144 rootless=0

Mac OS version:
15A284