problem in using SampleFilterScheme
problem in using SampleFilterScheme
- Subject: problem in using SampleFilterScheme
- From: Flost Li <email@hidden>
- Date: Mon, 02 Jul 2012 23:53:36 +0800
Hi all,
I download the SampleFilterScheme example code from
https://developer.apple.com/library/mac/#samplecode/SampleFilterScheme/Introduction/Intro.html#//apple_ref/doc/uid/DTS10000432
But I have some issue on making study on it.
I modify the code downloaded, and add the "probe" method. This probe function will scan a scsi disk and check whether it contains certain string on certain offset. If the probe function got the string, the function will return a score of 9999.
I build the project, insert this kext, and than i connect my device.
from the log, i notice that the disk was recognize by the kext, and the kext started.
but soon after the driver start, the system got panic. when i restart the machine, and use gdb/kextutils to decode the panic stack sounds like below:
(as the first several level are the same, i only print the first 7 level of the stack.)
I'm wandering why the iokit got recursive status? does the panic called by the over stack, when the recursive for much time?
Tue Jun 19 15:10:53 2012
panic(cpu 0 caller 0x2aaf41): Double fault at 0x0022315f, thread:0x6efe000, trapno:0x8, err:0x0,registers:
CR0: 0x8001003b, CR2: 0x3073fff8, CR3: 0x00100000, CR4: 0x00000660
EAX: 0x00000069, EBX: 0x30131d74, ECX: 0x30131cec, EDX: 0x00223d48
ESP: 0x30740000, EBP: 0x30740128, ESI: 0x30131d74, EDI: 0x06d0e480
EFL: 0x00010206, EIP: 0x0022315f
Backtrace (CPU 0), Frame : Return Address (4 potential args on stack)
0x819e18 : 0x21b837 (0x5dd7fc 0x819e4c 0x223ce1 0x0)
0x819e68 : 0x2aaf41 (0x59dfe4 0x59e0df 0x22315f 0x6efe000)
0x819f58 : 0x2a29d2 (0x0 0x0 0x0 0x0)
0x30740128 : 0x223e31 (0x30131d74 0x30740174 0x223104 0x223d48)
0x30740168 : 0x3013174c (0x30131d74 0x30131cec 0x6d0e480 0x30131d68) com_apple_dts_driver_SampleFilterScheme::read(IOService*, unsigned long long, IOMemoryDescriptor*, IOStorageCompletion)+122>:
0x307401b8 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x30740208 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0)
0x30740248 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0)
0x30740298 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x307402e8 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0)
0x30740328 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0)
0x30740378 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x307403c8 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0)
0x30740408 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0)
0x30740458 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x307404a8 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0)
0x307404e8 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0)
0x30740538 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x30740588 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0)
0x307405c8 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0)
0x30740618 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x30740668 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0)
0x307406a8 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0)
0x307406f8 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x30740748 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0)
0x30740788 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0)
0x307407d8 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x30740828 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0)
0x30740868 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0)
0x307408b8 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x30740908 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0)
0x30740948 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0)
0x30740998 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x307409e8 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0)
0x30740a28 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0)
0x30740a78 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x30740ac8 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0)
0x30740b08 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0)
0x30740b58 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x30740ba8 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0)
0x30740be8 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0)
0x30740c38 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x30740c88 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0)
0x30740cc8 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0)
0x30740d18 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x30740d68 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0)
0x30740da8 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0)
0x30740df8 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x30740e48 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0)
0x30740e88 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0)
0x30740ed8 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x30740f28 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0)
0x30740f68 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0)
0x30740fb8 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x30741008 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0)
0x30741048 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0)
0x30741098 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0)
0x307410e8 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0) IOStorage::read(IOService*, unsigned long long, IOMemoryDescriptor*, IOStorageCompletion)+97
0x30741128 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0) com_apple_dts_driver_SampleFilterScheme::read)+1990x30741178 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0) IOStorage::read *)+177
0x307411c8 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0) IOStorage::read )+970x30741208 : 0x30131799 (0xaeae600 0x6d0e480 0x0 0x0) com_apple_dts_driver_SampleFilterScheme::read
0x30741258 : 0x2a0b9725 (0x6d0e480 0xaeae600 0x0 0x0) IOStorage::read0x307412a8 : 0x2a0b8e7d (0x6d0e480 0xaeae600 0x0 0x0) IOStorage::read
Backtrace continues...
Kernel Extensions in backtrace (with dependencies):
com.apple.dts.driver.SampleFilterScheme(1.2.0d1)@0x30130000->0x30132fff
dependency: com.apple.iokit.IOStorageFamily(1.6.3)@0x2a0a7000
com.apple.iokit.IOStorageFamily(1.6.3)@0x2a0a7000->0x2a0bffff
BSD process name corresponding to current thread: kernel_task
Mac OS version:
10K549
Kernel version:
Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386
System model name: Macmini3,1 (Mac-F22C86C8)
System uptime in nanoseconds: 1568822487180
unloaded kexts:
com.apple.driver.AppleFileSystemDriver 2.0 (addr 0x300e4000, size 0x12288) - last unloaded 116091913968
loaded kexts:
com.avid.driver.Avid_SCSI 1.2.0 - last loaded 1567760916202
com.sns.driver.SNSArchitectureModel 1.0.0
com.paceap.kext.pacesupport.snowleopard 5.7.2b8
com.logmein.driver.LogMeInSoundDriver 1.0.0
com.digidesign.iokit.DigiIO 8.0.1f1
com.digidesign.iokit.DigiDal 8.0.1f1
com.attotech.driver.ATTOiSCSI 3.2.5
com.cftech.driver.vmeter 1.0.0d1
com.apple.dts.driver.SampleFilterScheme 1.2.0d1
com.apple.driver.AppleHWSensor 1.9.3d0
com.apple.filesystems.autofs 2.1.0
com.apple.driver.ApplePlatformEnabler 2.0.2d1
com.apple.driver.AGPM 100.12.31
com.apple.driver.AudioAUUC 1.57
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.iokit.CHUDUtils 364
com.apple.iokit.CHUDProf 366
com.apple.driver.AppleUpstreamUserClient 3.5.7
com.apple.driver.AppleIntelPenrynProfile 17.1
com.apple.driver.AudioIPCDriver 1.1.6
com.apple.driver.AppleHDA 2.0.5f14
com.apple.driver.AppleMCCSControl 1.0.20
com.apple.nvenet 2.0.17
com.apple.driver.ACPI_SMC_PlatformPlugin 4.7.0a1
com.apple.driver.AppleLPC 1.5.1
com.apple.driver.AirPortBrcm43224 428.42.4
com.apple.GeForce 6.3.6
com.apple.driver.AppleIRController 303.8
com.apple.iokit.SCSITaskUserClient 2.6.8
com.apple.iokit.IOAHCIBlockStorage 1.6.4
com.apple.BootCache 31.1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.driver.AppleEFINVRAM 1.4.0
com.apple.driver.AppleUSBHub 4.2.4
com.apple.driver.AppleFWOHCI 4.7.3
com.apple.driver.AppleAHCIPort 2.1.7
com.apple.driver.AppleUSBEHCI 4.2.4
com.apple.driver.AppleUSBOHCI 4.2.0
com.apple.driver.AppleRTC 1.3.1
com.apple.driver.AppleHPET 1.5
com.apple.driver.AppleACPIButtons 1.3.6
com.apple.driver.AppleSMBIOS 1.7
com.apple.driver.AppleACPIEC 1.3.6
com.apple.driver.AppleAPIC 1.4
com.apple.driver.AppleIntelCPUPowerManagementClient 142.6.0
com.apple.security.sandbox 1
com.apple.security.quarantine 0
com.apple.nke.applicationfirewall 2.1.14
com.apple.driver.AppleIntelCPUPowerManagement 142.6.0
com.apple.iokit.IOSCSIParallelFamily 2.1.1
com.apple.iokit.IOSCSIBlockCommandsDevice 2.6.8
com.apple.filesystems.acfsctl 412.6
com.apple.filesystems.acfs 412.6
com.apple.driver.AppleProfileReadCounterAction 17
com.apple.driver.AppleProfileTimestampAction 10
com.apple.driver.AppleProfileThreadInfoAction 14
com.apple.driver.AppleProfileRegisterStateAction 10
com.apple.driver.AppleProfileKEventAction 10
com.apple.driver.AppleProfileCallstackAction 20
com.apple.iokit.IOSurface 74.2
com.apple.iokit.IOBluetoothSerialManager 2.4.5f3
com.apple.iokit.IOSerialFamily 10.0.3
com.apple.iokit.CHUDKernLib 365
com.apple.driver.DspFuncLib 2.0.5f14
com.apple.iokit.IOAudioFamily 1.8.3fc2
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.AppleHDAController 2.0.5f14
com.apple.iokit.IOHDAFamily 2.0.5f14
com.apple.driver.IOPlatformPluginFamily 4.7.0a1
com.apple.nvidia.nv50hal 6.3.6
com.apple.iokit.IOFireWireIP 2.0.3
com.apple.driver.AppleSMC 3.1.0d5
com.apple.iokit.IO80211Family 320.1
com.apple.iokit.IONetworkingFamily 1.10
com.apple.driver.NVSMU 2.2.7
com.apple.iokit.AppleProfileFamily 41.4
com.apple.NVDAResman 6.3.6
com.apple.iokit.IONDRVSupport 2.2.1
com.apple.iokit.IOGraphicsFamily 2.2.1
com.apple.driver.AppleUSBHIDMouse 162
com.apple.driver.AppleHIDMouse 162
com.apple.driver.AppleUSBHIDKeyboard 141.5
com.apple.driver.AppleHIDKeyboard 141.5
com.apple.driver.BroadcomUSBBluetoothHCIController 2.4.5f3
com.apple.driver.AppleUSBBluetoothHCIController 2.4.5f3
com.apple.iokit.IOBluetoothFamily 2.4.5f3
com.apple.iokit.IOUSBHIDDriver 4.2.0
com.apple.driver.AppleUSBMergeNub 4.2.4
com.apple.driver.AppleUSBComposite 3.9.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.6.8
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.6
com.apple.iokit.IOCDStorageFamily 1.6.1
com.apple.driver.XsanFilter 402.1
com.apple.iokit.IOAHCISerialATAPI 1.2.6
com.apple.iokit.IOSCSIArchitectureModelFamily 2.6.8
com.apple.iokit.IOUSBUserClient 4.2.4
com.apple.iokit.IOFireWireFamily 4.2.6
com.apple.iokit.IOAHCIFamily 2.0.6
com.apple.iokit.IOUSBFamily 4.2.4
com.apple.driver.AppleEFIRuntime 1.4.0
com.apple.iokit.IOHIDFamily 1.6.6
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.TMSafetyNet 6
com.apple.kext.AppleMatch 1.0.0d1
com.apple.driver.DiskImages 289
com.apple.iokit.IOStorageFamily 1.6.3
com.apple.driver.AppleACPIPlatform 1.3.6
com.apple.iokit.IOPCIFamily 2.6.5
com.apple.iokit.IOACPIFamily 1.3.0
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden