Panic on Lion with OSXFUSE 2.5.1

314 views
Skip to first unread message

ivenhov

unread,
Aug 25, 2012, 10:41:51 AM8/25/12
to osxfus...@googlegroups.com
Hi all

I had a Macbook freeze during test of filesystem with OSXFUSE 2.5.1.
This may not be a problem with OSXFUSE itself but rather my tests and fs that ran away.
Here's the report after freeze.
Unfortunately I cannot say anything about what operations were performed during test as test and fs just went mad.
This is fist time it happened. I will try to reproduce it to narrow it down.


Interval Since Last Panic Report:  1528753 sec
Panics Since Last Report:          2
Anonymous UUID:                    0C936104-35B3-488D-B93E-960E8A6108BF

Fri Aug 24 17:36:36 2012
panic(cpu 2 caller 0xffffff7f80ff3940): "OSXFUSE: Attempted to lock max-locked recursive lock."@/Users/benjamin/Documents/Projekte/OSXFUSE/Repositories/osxfuse/kext/fuse_locking.c:434
Backtrace (CPU 2), Frame : Return Address
0xffffff811390b650 : 0xffffff8000220792 
0xffffff811390b6d0 : 0xffffff7f80ff3940 
0xffffff811390b6f0 : 0xffffff7f80fffd1f 
0xffffff811390b720 : 0xffffff80003191df 
0xffffff811390b750 : 0xffffff80002ff8cb 
0xffffff811390b7a0 : 0xffffff80002ff59e 
0xffffff811390b7e0 : 0xffffff80002ffbde 
0xffffff811390b810 : 0xffffff80002ffc3c 
0xffffff811390b830 : 0xffffff7f80ff46b0 
0xffffff811390b920 : 0xffffff7f80ff479b 
0xffffff811390b970 : 0xffffff7f80ff9298 
0xffffff811390ba80 : 0xffffff7f80fff8f1 
0xffffff811390bab0 : 0xffffff80003190a4 
0xffffff811390baf0 : 0xffffff80002f703a 
0xffffff811390bb70 : 0xffffff80002f5eac 
0xffffff811390bc10 : 0xffffff8000308a62 
0xffffff811390bd90 : 0xffffff800030924c 
0xffffff811390bf50 : 0xffffff80005cd61b 
0xffffff811390bfb0 : 0xffffff80002daa13 
      Kernel Extensions in backtrace:
         com.github.osxfuse.filesystems.osxfusefs(2.5.1)[71E31C8C-E3E2-4956-8935-F0450493715A]@0xffffff7f80fec000->0xffffff7f81003fff

BSD process name corresponding to current thread: fseventsd
Boot args: arch=x86_64

Mac OS version:
11E53

Kernel version:
Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64
Kernel UUID: A8ED611D-FB0F-3729-8392-E7A32C5E7D74
System model name: MacBookPro6,2 (Mac-F22586C8)

System uptime in nanoseconds: 363469453244049
last loaded kext at 328320298566160: com.apple.filesystems.msdosfs 1.7.1 (addr 0xffffff7f80873000, size 57344)
last unloaded kext at 328489443331755: com.apple.driver.AppleUSBCDC 4.1.17 (addr 0xffffff7f807c6000, size 12288)
loaded kexts:
com.github.osxfuse.filesystems.osxfusefs 2.5.1
org.virtualbox.kext.VBoxNetAdp 4.1.18
org.virtualbox.kext.VBoxNetFlt 4.1.18
org.virtualbox.kext.VBoxUSB 4.1.18
org.virtualbox.kext.VBoxDrv 4.1.18
com.apple.filesystems.msdosfs 1.7.1
com.apple.driver.AppleBluetoothMultitouch 70.12
com.apple.filesystems.afpfs 9.8.1
com.apple.nke.asp_tcp 6.0.1
com.apple.filesystems.smbfs 1.7.2
com.apple.driver.AppleIntelProfile 85.2
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.filesystems.autofs 3.0
com.apple.filesystems.ntfs 3.10.1
com.apple.driver.AppleMikeyHIDDriver 122
com.apple.driver.AudioAUUC 1.59
com.apple.driver.AppleHDA 2.2.0f3
com.apple.driver.AppleMikeyDriver 2.2.0f3
com.apple.driver.AGPM 100.12.42
com.apple.driver.AppleUpstreamUserClient 3.5.9
com.apple.driver.AppleMCCSControl 1.0.26
com.apple.driver.SMCMotionSensor 3.0.2d6
com.apple.driver.AppleSMCPDRC 5.0.0d0
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.iokit.IOBluetoothSerialManager 4.0.5f11
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AppleSMCLMU 2.0.1d2
com.apple.GeForce 7.1.8
com.apple.driver.ACPI_SMC_PlatformPlugin 5.0.0d0
com.apple.driver.AppleLPC 1.5.8
com.apple.driver.AudioIPCDriver 1.2.2
com.apple.driver.AppleMuxControl 3.0.16
com.apple.driver.AppleIntelHDGraphics 7.1.8
com.apple.driver.AppleIntelHDGraphicsFB 7.1.8
com.apple.driver.AppleUSBTCButtons 225.2
com.apple.driver.BroadcomUSBBluetoothHCIController 4.0.5f11
com.apple.driver.AppleIRController 312
com.apple.driver.AppleUSBCardReader 3.0.1
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 33
com.apple.driver.AppleUSBTCKeyboard 225.2
com.apple.iokit.SCSITaskUserClient 3.2.0
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCISerialATAPI 2.0.3
com.apple.iokit.IOAHCIBlockStorage 2.0.3
com.apple.driver.AppleUSBHub 4.5.0
com.apple.driver.AppleFWOHCI 4.8.9
com.apple.driver.AirPort.Brcm4331 530.4.20
com.apple.iokit.AppleBCM5701Ethernet 3.1.2b2
com.apple.driver.AppleEFINVRAM 1.5.0
com.apple.driver.AppleSmartBatteryManager 161.0.0
com.apple.driver.AppleAHCIPort 2.3.0
com.apple.driver.AppleUSBEHCI 4.5.8
com.apple.driver.AppleACPIButtons 1.5
com.apple.driver.AppleRTC 1.5
com.apple.driver.AppleHPET 1.6
com.apple.driver.AppleSMBIOS 1.8
com.apple.driver.AppleACPIEC 1.5
com.apple.driver.AppleAPIC 1.5
com.apple.driver.AppleIntelCPUPowerManagementClient 193.0.0
com.apple.nke.applicationfirewall 3.2.30
com.apple.security.quarantine 1.3
com.apple.driver.AppleIntelCPUPowerManagement 193.0.0
com.apple.driver.AppleUSBHIDKeyboard 160.7
com.apple.driver.AppleHIDKeyboard 160.7
com.apple.driver.AppleMultitouchDriver 231.4
com.apple.driver.IOBluetoothHIDDriver 4.0.5f11
com.apple.security.SecureRemotePassword 1.0
com.apple.driver.AppleProfileTimestampAction 85.2
com.apple.driver.AppleProfileThreadInfoAction 85.2
com.apple.driver.AppleProfileRegisterStateAction 85.2
com.apple.driver.AppleProfileReadCounterAction 85.2
com.apple.driver.AppleProfileKEventAction 85.2
com.apple.driver.AppleProfileCallstackAction 85.2
com.apple.iokit.AppleProfileFamily 85.2
com.apple.kext.triggers 1.0
com.apple.driver.DspFuncLib 2.2.0f3
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.iokit.IOSurface 80.0.2
com.apple.iokit.IOSerialFamily 10.0.5
com.apple.driver.AppleHDAController 2.2.0f3
com.apple.iokit.IOHDAFamily 2.2.0f3
com.apple.iokit.IOFireWireIP 2.2.4
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.driver.AppleSMC 3.1.3d8
com.apple.driver.IOPlatformPluginLegacy 5.0.0d0
com.apple.driver.IOPlatformPluginFamily 5.1.0d17
com.apple.iokit.IOAudioFamily 1.8.6fc17
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.ApplePolicyControl 3.0.16
com.apple.driver.AppleGraphicsControl 3.0.16
com.apple.driver.AppleBacklightExpert 1.0.3
com.apple.nvidia.nv50hal 7.1.8
com.apple.NVDAResman 7.1.8
com.apple.iokit.IONDRVSupport 2.3.2
com.apple.iokit.IOGraphicsFamily 2.3.2
com.apple.driver.AppleUSBBluetoothHCIController 4.0.5f11
com.apple.iokit.IOBluetoothFamily 4.0.5f11
com.apple.iokit.IOSCSIBlockCommandsDevice 3.2.0
com.apple.iokit.IOUSBMassStorageClass 3.0.1
com.apple.driver.AppleUSBMultitouch 227.1
com.apple.iokit.IOUSBHIDDriver 4.4.5
com.apple.driver.AppleUSBMergeNub 4.5.3
com.apple.driver.AppleUSBComposite 4.5.8
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.2.0
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.7
com.apple.iokit.IOCDStorageFamily 1.7
com.apple.iokit.IOSCSIArchitectureModelFamily 3.2.0
com.apple.iokit.IOUSBUserClient 4.5.8
com.apple.iokit.IOFireWireFamily 4.4.5
com.apple.iokit.IO80211Family 420.3
com.apple.iokit.IOEthernetAVBController 1.0.1b1
com.apple.iokit.IONetworkingFamily 2.1
com.apple.iokit.IOAHCIFamily 2.0.8
com.apple.driver.AppleEFIRuntime 1.5.0
com.apple.iokit.IOHIDFamily 1.7.1
com.apple.iokit.IOUSBFamily 4.5.8
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 177.5
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.DiskImages 331.6
com.apple.iokit.IOStorageFamily 1.7.1
com.apple.driver.AppleKeyStore 28.18
com.apple.driver.AppleACPIPlatform 1.5
com.apple.iokit.IOPCIFamily 2.6.8
com.apple.iokit.IOACPIFamily 1.4
Model: MacBookPro6,2, BootROM MBP61.0057.B0F, 2 processors, Intel Core i5, 2.4 GHz, 8 GB, SMC 1.58f16
Graphics: NVIDIA GeForce GT 330M, NVIDIA GeForce GT 330M, PCIe, 256 MB
Graphics: Intel HD Graphics, Intel HD Graphics, Built-In, 288 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1067 MHz, 0x802C, 0x31364A53463531323634485A2D3147314431
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1067 MHz, 0x802C, 0x31364A53463531323634485A2D3147314431
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x93), Broadcom BCM43xx 1.0 (5.106.198.4.20)
Bluetooth: Version 4.0.5f11, 2 service, 18 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Serial ATA Device: OCZ-VERTEX4, 512.11 GB
Serial ATA Device: MATSHITADVD-R   UJ-898
USB Device: hub_device, 0x0424  (SMSC), 0x2514, 0xfa100000 / 2
USB Device: USB2.0 Hub, 0x05e3  (Genesys Logic, Inc.), 0x0608, 0xfa140000 / 6
USB Device: USB 2.0  SATA BRIDGE, 0x14cd  (MOAI ELECTRONICS CORPORATION), 0x6116, 0xfa143000 / 10
USB Device: Keyboard Hub, apple_vendor_id, 0x1006, 0xfa142000 / 9
USB Device: Apple Keyboard, apple_vendor_id, 0x0221, 0xfa142200 / 13
USB Device: USB2.0 Hub, 0x05e3  (Genesys Logic, Inc.), 0x0608, 0xfa141000 / 7
USB Device: Desktop USB Drive, 0x18a5, 0x0216, 0xfa141400 / 12
USB Device: Drobo, 0x19b9, 0x4d10, 0xfa141200 / 11
USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0237, 0xfa120000 / 5
USB Device: BRCM2070 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 4
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8218, 0xfa113000 / 8
USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403, 0xfa130000 / 3
USB Device: hub_device, 0x0424  (SMSC), 0x2514, 0xfd100000 / 2
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd120000 / 4
USB Device: Built-in iSight, apple_vendor_id, 0x8507, 0xfd110000 / 3

Regards
Daniel

Benjamin Fleischer

unread,
Aug 25, 2012, 12:27:13 PM8/25/12
to osxfus...@googlegroups.com
Hi Daniel,

Thanks for the bug report. This is indeed a bug in OSXFUSE. The panic is caused by decrementing the iocount of a vnode (vnode_put) while holding a lock (biglock). As a result the vnode is being reclaimed. The reclaim process eventually calls fuse_vnop_fsync on the vnode which tries to acquire the locked lock. This causes the panic.

The issue should be fixed in commit https://github.com/osxfuse/kext/commit/1fff932b906f01e46627204c0c1055985d1382c2  

Regards,
Benjamin

ivenhov

unread,
Aug 26, 2012, 5:21:04 AM8/26/12
to osxfus...@googlegroups.com
I don't know how you figured it out but thanks for that. Lightning speed!
Is there a chance there will be an official build any time soon or should I try to build it myself?

D.

Benjamin Fleischer

unread,
Aug 28, 2012, 2:10:23 PM8/28/12
to osxfus...@googlegroups.com
I'm still looking into another issue. It should only be a matter of days until a new version of OSXFUSE is released. 

Regards,
Benjamin
Reply all
Reply to author
Forward
0 new messages