site_archiver@lists.apple.com Delivered-To: Darwin-kernel@lists.apple.com Load the kgmacros and debug from another machine (showallstacks). -- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... On Jun 20, 2007, at 9:51 PM, Greg wrote: I'm experiencing a strange kernel panic and I can't figure out why it's happening. This is what happened: I have my vnode listener set to deny access to a certain file. I created a shell script that attempted to copy this file to another location many times (each time it would get a "permission denied" error because the listener was set to reject it). After running this script several times rather quickly, I then clicked on another terminal window and tried to launch 'top' to see how much CPU the kernel was taking up. The second I attempted to run top the system kernel panicked and on my development machine (which was attached during this entire time) just gave me this backtrace in gdb: Program received signal SIGTRAP, Trace/breakpoint trap. 0x002ff4ac in pe_run_clock_test () (gdb) bt #0 0x002ff4ac in pe_run_clock_test () #1 0x002ff498 in pe_run_clock_test () Previous frame identical to this frame (gdb could not unwind past this frame) Any clues as to why this is happening? I'm not really doing much in the vnode listener right now and generally that code runs fine, just sometimes in intense situations like this it kernel panics. Is this my fault or could there be a stability issue in 10.4.9's kauth stuff (on PPC)? The most likely cause of this is a kernel stack overflow, either because you've declared some huge data object on the stack, or you accidently caused recursion. You can tell by looking at the "stacktop" "stackbottom", and the stack pointer at the time, to see if it's in the range or out of it. This email sent to site_archiver@lists.apple.com