{"action":"created","issue":{"url":"https://api.github.com/repos/openzfsonosx/zfs/issues/313","labels_url":"https://api.github.com/repos/openzfsonosx/zfs/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/openzfsonosx/zfs/issues/313/comments","events_url":"https://api.github.com/repos/openzfsonosx/zfs/issues/313/events","html_url":"https://github.com/openzfsonosx/zfs/issues/313","id":77146697,"number":313,"title":"Panic zfs: link count on vnode # objID # is 0, should be at least 1.","user":{"login":"foliva","id":1072568,"avatar_url":"https://avatars.githubusercontent.com/u/1072568?v=3","gravatar_id":"","url":"https://api.github.com/users/foliva","html_url":"https://github.com/foliva","followers_url":"https://api.github.com/users/foliva/followers","following_url":"https://api.github.com/users/foliva/following{/other_user}","gists_url":"https://api.github.com/users/foliva/gists{/gist_id}","starred_url":"https://api.github.com/users/foliva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foliva/subscriptions","organizations_url":"https://api.github.com/users/foliva/orgs","repos_url":"https://api.github.com/users/foliva/repos","events_url":"https://api.github.com/users/foliva/events{/privacy}","received_events_url":"https://api.github.com/users/foliva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-16T22:24:14Z","updated_at":"2015-05-16T23:03:33Z","closed_at":null,"body":"I'm having this panic, which makes my macbook to reboot, and can't find a reason why it's happening.\r\n\r\nI found here in the repository where in the code is the condition to raise it. In **zfs/module/zfs/zfs_dir.c**, function **zfs_link_destroy**:\r\n\r\n    if (zp->z_links <= zp_is_dir) {\r\n    \t\tzfs_panic_recover(\"zfs: link count on vnode %p objID %llu is %u, \"\r\n    \t\t    \"should be at least %u\", zp->z_vnode,\r\n    \t\t\t\t\t\t  zp->z_id,\r\n    \t\t    (int)zp->z_links,\r\n    \t\t    zp_is_dir + 1);\r\n    \t\tzp->z_links = zp_is_dir + 1;\r\n    \t}\r\n\r\nHere is the panic:\r\n````\r\nAnonymous UUID:       861D1D3D-ADB7-9455-7627-E8D43D299D7E\r\n\r\nSat May 16 18:49:39 2015\r\n\r\n*** Panic Report ***\r\npanic(cpu 2 caller 0xffffff7fa12778fc): \"zfs: link count on vnode 0xffffff8050dc8690 objID 4334898 is 0, should be at least 1\"@spl-err.c:53\r\nBacktrace (CPU 2), Frame : Return Address\r\n0xffffff820871b1d0 : 0xffffff8020b2bda1 \r\n0xffffff820871b250 : 0xffffff7fa12778fc \r\n0xffffff820871b380 : 0xffffff7fa1313bf7 \r\n0xffffff820871b3f0 : 0xffffff7fa1315774 \r\n0xffffff820871b560 : 0xffffff7fa132e275 \r\n0xffffff820871b690 : 0xffffff7fa13300f2 \r\n0xffffff820871b6c0 : 0xffffff8020d7108b \r\n0xffffff820871b760 : 0xffffff8020d70623 \r\n0xffffff820871bd70 : 0xffffff8020d5dc5d \r\n0xffffff820871bf50 : 0xffffff802104bc36 \r\n0xffffff820871bfb0 : 0xffffff8020c35376 \r\n      Kernel Extensions in backtrace:\r\n         net.lundman.spl(1.3.1)[9D1614EC-4FA4-32DB-BC82-A698763DDABC]@0xffffff7fa1276000->0xffffff7fa12aafff\r\n         net.lundman.zfs(1.3.1)[DC00B3E6-1DC8-343B-ADC3-1931FF103156]@0xffffff7fa12ab000->0xffffff7fa145dfff\r\n            dependency: com.apple.iokit.IOStorageFamily(2.0)[76E50D45-C97B-3ED1-97C5-94E6E0EB4514]@0xffffff7fa1247000\r\n            dependency: net.lundman.spl(1.3.1)[9D1614EC-4FA4-32DB-BC82-A698763DDABC]@0xffffff7fa1276000\r\n\r\nBSD process name corresponding to current thread: imagent\r\nBoot args: net.inet.ip.scopedroute=0\r\n\r\nMac OS version:\r\n14E17e\r\n\r\nKernel version:\r\nDarwin Kernel Version 14.4.0: Tue May  5 14:17:52 PDT 2015; root:xnu-2782.30.4~3/RELEASE_X86_64\r\nKernel UUID: C306DF4F-3F6C-303A-AA2A-8C744C9F3568\r\nKernel slide:     0x0000000020800000\r\nKernel text base: 0xffffff8020a00000\r\n__HIB  text base: 0xffffff8020900000\r\nSystem model name: MacBookPro8,1 (Mac-94245B3640C91C81)\r\n\r\nSystem uptime in nanoseconds: 16512477843508\r\nlast loaded kext at 1164619867953: com.apple.filesystems.smbfs\t3.0.1 (addr 0xffffff7fa3533000, size 389120)\r\nlast unloaded kext at 156640558793: com.apple.driver.AppleUSBUHCI\t656.4.1 (addr 0xffffff7fa1b58000, size 65536)\r\nloaded kexts:\r\nnet.lundman.zfs\t1.3.1\r\nnet.lundman.spl\t1.3.1\r\ncom.checkpoint.cpfw\t1.0\r\ncom.apple.filesystems.smbfs\t3.0.1\r\ncom.apple.driver.AudioAUUC\t1.70\r\ncom.apple.filesystems.autofs\t3.0\r\ncom.apple.driver.AppleHWSensor\t1.9.5d0\r\ncom.apple.driver.AGPM\t110.19.6\r\ncom.apple.iokit.IOBluetoothSerialManager\t4.3.5f4\r\ncom.apple.driver.AppleOSXWatchdog\t1\r\ncom.apple.driver.AppleMikeyHIDDriver\t124\r\ncom.apple.driver.AppleHDA\t272.18.1\r\ncom.apple.driver.AppleLPC\t1.7.3\r\ncom.apple.iokit.IOUserEthernet\t1.0.1\r\ncom.apple.Dont_Steal_Mac_OS_X\t7.0.0\r\ncom.apple.driver.AppleHWAccess\t1\r\ncom.apple.driver.AppleHV\t1\r\ncom.apple.driver.AppleIntelSlowAdaptiveClocking\t4.0.0\r\ncom.apple.driver.ApplePolicyControl\t3.10.22\r\ncom.apple.driver.AppleUpstreamUserClient\t3.6.1\r\ncom.apple.iokit.BroadcomBluetoothHostControllerUSBTransport\t4.3.5f4\r\ncom.apple.driver.AppleSMCLMU\t2.0.7d0\r\ncom.apple.driver.AppleMikeyDriver\t272.18.1\r\ncom.apple.driver.ACPI_SMC_PlatformPlugin\t1.0.0\r\ncom.apple.driver.AppleThunderboltIP\t2.0.2\r\ncom.apple.driver.AppleIntelHD3000Graphics\t10.0.0\r\ncom.apple.driver.AppleIntelSNBGraphicsFB\t10.0.0\r\ncom.apple.driver.AppleSMCPDRC\t1.0.0\r\ncom.apple.driver.AppleBacklight\t170.7.4\r\ncom.apple.driver.AppleMCCSControl\t1.2.11\r\ncom.apple.driver.SMCMotionSensor\t3.0.4d1\r\ncom.apple.driver.AppleUSBTCButtons\t240.2\r\ncom.apple.driver.AppleUSBTCKeyboard\t240.2\r\ncom.apple.driver.AppleIRController\t327.5\r\ncom.apple.AppleFSCompression.AppleFSCompressionTypeDataless\t1.0.0d1\r\ncom.apple.AppleFSCompression.AppleFSCompressionTypeZlib\t1.0.0\r\ncom.apple.BootCache\t36\r\ncom.apple.driver.XsanFilter\t404\r\ncom.apple.iokit.IOAHCIBlockStorage\t2.7.1\r\ncom.apple.driver.AppleUSBHub\t705.4.2\r\ncom.apple.driver.AppleSDXC\t1.6.5\r\ncom.apple.iokit.AppleBCM5701Ethernet\t10.1.3\r\ncom.apple.driver.AppleFWOHCI\t5.5.2\r\ncom.apple.driver.AirPort.Brcm4331\t800.20.24\r\ncom.apple.driver.AppleAHCIPort\t3.1.2\r\ncom.apple.driver.AppleUSBEHCI\t705.4.14\r\ncom.apple.driver.AppleSmartBatteryManager\t161.0.0\r\ncom.apple.driver.AppleRTC\t2.0\r\ncom.apple.driver.AppleACPIButtons\t3.1\r\ncom.apple.driver.AppleHPET\t1.8\r\ncom.apple.driver.AppleSMBIOS\t2.1\r\ncom.apple.driver.AppleACPIEC\t3.1\r\ncom.apple.driver.AppleAPIC\t1.7\r\ncom.apple.driver.AppleIntelCPUPowerManagementClient\t218.0.0\r\ncom.apple.nke.applicationfirewall\t161\r\ncom.apple.security.quarantine\t3\r\ncom.apple.security.TMSafetyNet\t8\r\ncom.apple.driver.AppleIntelCPUPowerManagement\t218.0.0\r\ncom.apple.kext.triggers\t1.0\r\ncom.apple.AppleGraphicsDeviceControl\t3.10.22\r\ncom.apple.iokit.IOSerialFamily\t11\r\ncom.apple.driver.DspFuncLib\t272.18.1\r\ncom.apple.kext.OSvKernDSPLib\t1.15\r\ncom.apple.iokit.IOFireWireIP\t2.2.6\r\ncom.apple.iokit.IOSurface\t97.4\r\ncom.apple.iokit.IOSlowAdaptiveClockingFamily\t1.0.0\r\ncom.apple.iokit.IOBluetoothHostControllerUSBTransport\t4.3.5f4\r\ncom.apple.iokit.IOBluetoothFamily\t4.3.5f4\r\ncom.apple.driver.AppleHDAController\t272.18.1\r\ncom.apple.iokit.IOHDAFamily\t272.18.1\r\ncom.apple.iokit.IOAudioFamily\t203.3\r\ncom.apple.vecLib.kext\t1.2.0\r\ncom.apple.driver.AppleSMBusPCI\t1.0.12d1\r\ncom.apple.driver.IOPlatformPluginLegacy\t1.0.0\r\ncom.apple.driver.IOPlatformPluginFamily\t5.9.1d7\r\ncom.apple.iokit.IOUSBUserClient\t705.4.0\r\ncom.apple.driver.AppleGraphicsControl\t3.10.22\r\ncom.apple.driver.AppleBacklightExpert\t1.1.0\r\ncom.apple.iokit.IONDRVSupport\t2.4.1\r\ncom.apple.driver.AppleSMBusController\t1.0.13d1\r\ncom.apple.iokit.IOGraphicsFamily\t2.4.1\r\ncom.apple.driver.AppleSMC\t3.1.9\r\ncom.apple.iokit.IOSCSIArchitectureModelFamily\t3.7.5\r\ncom.apple.driver.AppleUSBMultitouch\t245.2\r\ncom.apple.iokit.IOUSBHIDDriver\t705.4.0\r\ncom.apple.driver.AppleUSBMergeNub\t705.4.0\r\ncom.apple.driver.AppleUSBComposite\t705.4.9\r\ncom.apple.driver.CoreStorage\t471.20.7\r\ncom.apple.driver.AppleThunderboltDPInAdapter\t4.0.6\r\ncom.apple.driver.AppleThunderboltDPAdapterFamily\t4.0.6\r\ncom.apple.driver.AppleThunderboltPCIDownAdapter\t2.0.2\r\ncom.apple.driver.AppleThunderboltNHI\t3.1.7\r\ncom.apple.iokit.IOThunderboltFamily\t4.2.2\r\ncom.apple.iokit.IOEthernetAVBController\t1.0.3b3\r\ncom.apple.iokit.IOFireWireFamily\t4.5.7\r\ncom.apple.iokit.IO80211Family\t730.60\r\ncom.apple.driver.mDNSOffloadUserClient\t1.0.1b8\r\ncom.apple.iokit.IONetworkingFamily\t3.2\r\ncom.apple.iokit.IOAHCIFamily\t2.7.5\r\ncom.apple.iokit.IOUSBFamily\t720.4.4\r\ncom.apple.driver.AppleEFINVRAM\t2.0\r\ncom.apple.driver.AppleEFIRuntime\t2.0\r\ncom.apple.iokit.IOHIDFamily\t2.0.0\r\ncom.apple.iokit.IOSMBusFamily\t1.1\r\ncom.apple.security.sandbox\t300.0\r\ncom.apple.kext.AppleMatch\t1.0.0d1\r\ncom.apple.driver.AppleKeyStore\t2\r\ncom.apple.driver.AppleMobileFileIntegrity\t1.0.5\r\ncom.apple.driver.AppleCredentialManager\t1.0\r\ncom.apple.driver.DiskImages\t397\r\ncom.apple.iokit.IOStorageFamily\t2.0\r\ncom.apple.iokit.IOReportFamily\t31\r\ncom.apple.driver.AppleFDEKeyStore\t28.30\r\ncom.apple.driver.AppleACPIPlatform\t3.1\r\ncom.apple.iokit.IOPCIFamily\t2.9\r\ncom.apple.iokit.IOACPIFamily\t1.4\r\ncom.apple.kec.corecrypto\t1.0\r\ncom.apple.kec.Libm\t1\r\ncom.apple.kec.pthread\t1\r\n ````\r\n\r\nWhat do I do to help find the problem? What can be causing this?"},"comment":{"url":"https://api.github.com/repos/openzfsonosx/zfs/issues/comments/102710158","html_url":"https://github.com/openzfsonosx/zfs/issues/313#issuecomment-102710158","issue_url":"https://api.github.com/repos/openzfsonosx/zfs/issues/313","id":102710158,"user":{"login":"lundman","id":637168,"avatar_url":"https://avatars.githubusercontent.com/u/637168?v=3","gravatar_id":"","url":"https://api.github.com/users/lundman","html_url":"https://github.com/lundman","followers_url":"https://api.github.com/users/lundman/followers","following_url":"https://api.github.com/users/lundman/following{/other_user}","gists_url":"https://api.github.com/users/lundman/gists{/gist_id}","starred_url":"https://api.github.com/users/lundman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lundman/subscriptions","organizations_url":"https://api.github.com/users/lundman/orgs","repos_url":"https://api.github.com/users/lundman/repos","events_url":"https://api.github.com/users/lundman/events{/privacy}","received_events_url":"https://api.github.com/users/lundman/received_events","type":"User","site_admin":false},"created_at":"2015-05-16T23:03:33Z","updated_at":"2015-05-16T23:03:33Z","body":"Thanks, means we can rule out any source/head code.\r\n"}}