Re: dtrace return hook missing for some iokit funcs?
Re: dtrace return hook missing for some iokit funcs?
- Subject: Re: dtrace return hook missing for some iokit funcs?
- From: Andrew Gallatin <email@hidden>
- Date: Mon, 26 Apr 2010 09:08:36 -0400
Terry Lambert wrote:
>>> It would also be useful to know the criminal KEXT; if this one is too
>>> hard to track down with your setup, I'd understand if you said not to
>>> it, but it can never hurt to ask...
>
> I can give you a kernel programmers pig-trick:
>
> Reenable the assert and put a return in the panic routine instead of
I started doing that, and then got stuck due to the box hanging, waiting
for a Debugger connection (due to my boot flags). I rebooted into a
good kernel, and managed to find the panic log and stopped there.
I hope this helps.
Drew
Mon Apr 26 08:51:35 2010
panic(cpu 0 caller 0x2c301b): preemption_level(1) != 0!
Backtrace (CPU 0), Frame : Return Address (4 potential args on stack)
0x60b13ce8 : 0x22ebc8 (0x6420d4 0x60b13d1c 0x237b6a 0x0)
0x60b13d38 : 0x2c301b (0x805bd0 0x1 0x60b13d78 0x243c8d)
0x60b13d48 : 0x243c8d (0x8a116b4 0x51fcce 0x89e33f4 0x1)
0x60b13d78 : 0x51fcf2 (0x8a113f4 0x60b13e14 0x60b13ebc 0x1)
0x60b13ed8 : 0x521343 (0x103d600 0x1 0x1 0xffffffff)
0x60b13f28 : 0x549104 (0x8df6010 0x84ceea8 0x84c8854 0x5)
0x60b13fc8 : 0x2cbe6d (0x84ceea4 0x0 0x10 0x0)
BSD process name corresponding to current thread: kextd
Mac OS version:
10D573
Kernel version:
Darwin Kernel Version 10.3.0: Mon Apr 26 08:45:27 EDT 2010;
root:xnu-1504.3.12/BUILD/obj//DEBUG_I386
System model name: MacPro1,1 (Mac-F4208DC8)
System uptime in nanoseconds: 5679287993
unloaded kexts:
(none)
loaded kexts:
com.apple.iokit.SCSITaskUserClient 2.6.2
com.apple.driver.PioneerSuperDrive 2.5.3
com.apple.BootCache 31
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.iokit.IOAHCIBlockStorage 1.6.1
com.apple.driver.AppleUSBHub 3.9.6
com.apple.driver.AppleFWOHCI 4.5.7
com.apple.driver.AppleAHCIPort 2.1.1
com.apple.driver.AppleIntelPIIXATA 2.5.1
com.apple.driver.AppleEFINVRAM 1.3.0
com.apple.driver.AppleUSBEHCI 3.9.6
com.apple.driver.AppleUSBUHCI 3.9.6
com.apple.driver.AppleACPIButtons 1.3.2
com.apple.driver.AppleRTC 1.3.1
com.apple.driver.AppleHPET 1.5
com.apple.driver.AppleSMBIOS 1.5
com.apple.driver.AppleACPIEC 1.3.2
com.apple.driver.AppleAPIC 1.4
com.apple.driver.AppleIntelCPUPowerManagementClient 104.3.0
com.apple.security.sandbox 0
com.apple.security.quarantine 0
com.apple.nke.applicationfirewall 2.1.11
com.apple.driver.AppleIntelCPUPowerManagement 104.3.0
com.apple.iokit.IOUSBHIDDriver 3.9.6 - last loaded 1266053101
com.apple.driver.AppleUSBComposite 3.9.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.6.2
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.6
com.apple.iokit.IOCDStorageFamily 1.6
com.apple.driver.AppleFileSystemDriver 2.0
com.apple.driver.XsanFilter 402.1
com.apple.iokit.IOATAPIProtocolTransport 2.5.1
com.apple.iokit.IOSCSIArchitectureModelFamily 2.6.2
com.apple.iokit.IOFireWireFamily 4.2.6
com.apple.iokit.IOUSBUserClient 3.9.6
com.apple.iokit.IOAHCIFamily 2.0.3
com.apple.iokit.IOATAFamily 2.5.1
com.apple.iokit.IOUSBFamily 3.9.6
com.apple.driver.AppleEFIRuntime 1.3.0
com.apple.iokit.IOHIDFamily 1.6.2
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.TMSafetyNet 6
com.apple.kext.AppleMatch 1.0.0d1
com.apple.driver.DiskImages 283
com.apple.iokit.IOStorageFamily 1.6
com.apple.driver.AppleACPIPlatform 1.3.2
com.apple.iokit.IOPCIFamily 2.6
com.apple.iokit.IOACPIFamily 1.3.0
That stack corresponds to:
0x22ebc8 is in panic (/var/tmp/build/xnu-1504.3.12/osfmk/kern/debug.c:298
0x2c301b is at cpu_data.h:351
0x243c8d is in thread_resume
(/var/tmp/build/xnu-1504.3.12/osfmk/kern/thread_act.c:254).
0x51fcf2 is in wq_runitem
(/var/tmp/build/xnu-1504.3.12/bsd/kern/pthread_synch.c:2068).
0x521343 is in workq_kernreturn
(/var/tmp/build/xnu-1504.3.12/bsd/kern/pthread_synch.c:1295).
0x549104 is in unix_syscall64
(/var/tmp/build/xnu-1504.3.12/bsd/dev/i386/systemcalls.c:365).
0x2cbe6d is at cpu_data.h:351.
_______________________________________________
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