InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   Where can i find the Kernel Panic Logs / Vanila Kernel (http://infinitemac.com/showthread.php?t=2507)

Bettarg 04-03-2009 06:43 PM

Where can i find the Kernel Panic Logs / Vanila Kernel
 
Hello,

i have a few Kernelpancis here and there, but the Vanila Kernel does not show his Debug Infos as Voodoo does.
Appel says Logs should store at /Lib/Logs/Paniclog but there is no Dir like this.

Where does Apple store the log files about a panic ?

Thanks a lot!

lanceomni 04-03-2009 08:27 PM

Try /Library/Logs/panic.log or open Console click logs and find /Library/Logs/panic.log

I am currently on my Tiger machine but i am fairly certain it is stored in the same place on Leopard.

lanceomni 04-03-2009 09:47 PM

Now that I think about it I believe that versions somewhere around 10.5.3 and later display a screen telling you to reboot your computer. I also believe that KPs are stored in the mac's NVRAM or PRAM and then added to the log file on the next boot. Im not certain but I dont think there is an equivalent for us hack users.

You may be able to force the Vanilla Kernel to display the KP at the time it occurred, like with Voodoo, by using this flag on startup:
Code:

debug=0x144
If this works out for you then you can add it to your com.apple.boot.plist so that it is used on every boot.

[EDIT] If anyone knows what the difference between 0x144 & 0x100 id surely like to know

Bettarg 04-03-2009 09:57 PM

Ah this is most usefull. Thanks !

lanceomni 04-03-2009 10:11 PM

No problem ;)

rcfa 05-27-2009 04:24 AM

See Apple's documentation...
 
Quote:

Originally Posted by lanceomni (Post 24241)
[EDIT] If anyone knows what the difference between 0x144 & 0x100 id surely like to know

http://developer.apple.com/documenta...CH221-CIHIAFFJ

lanceomni 05-27-2009 01:09 PM

Thanks for the link

So it would seem that the following would be true as 0x144 looks like a combination of several.

0xABC
0x144

0x04 DB_NMI
Drop into debugger on NMI (Command–Power, Command-Option-Control-Shift-Escape, or interrupt switch).

0x40 DB_ARP
Allow debugger to ARP and route (allows debugging across routers and removes the need for a permanent ARP entry, but is a potential security hole)—not available in all kernels.

0x100 DB_LOG_PI_SCRN
Disable graphical panic dialog.