site_archiver@lists.apple.com Delivered-To: Darwin-kernel@lists.apple.com On Jun 21, 2007, at 8:09 AM, Terry Lambert wrote: Load the kgmacros and debug from another machine (showallstacks). (gdb) source kgmacros kgmacros:28: Error in sourced command file: No struct type named mach_header. - Greg _______________________________________________ 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... 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. -- Terry I'm having difficulty using the kgmacros script, I searched google for for it and found a google-cached version of it from xnu-792.6.61. Whenever I try to load it in gdb I get this error: I tried doing that after I added symbols from the various kpis that my KEXT uses and I still get that error. On the other hand I think I've determined that the problem is elsewhere (not in the kauth stuff), either it's some sort of threading issue or it's the kernel control stuff that I'm using. This email sent to site_archiver@lists.apple.com