[OpenAFS] MacOS panic decoding

Derrick Brashear shadow@gmail.com
Tue, 19 Jan 2010 01:40:11 -0500


If you grab http://gerrit.openafs.org/1125 you'll find it now offers a
"batch" panic decoder, namely, for any release we shipped, it can
decode panics.

It needs access to
1) an archive of OpenAFS releases (e.g. /afs/grand.central.org/software/openafs)
2) an archive of all relevant MacOS Kernel Debug Kits (download e.g.
kernel_debug_kit_10.6.2_10c540.dmg from Apple and drop in a directory)
3) hdutil from http://www.dementia.org/~shadow/dmgutil-0.1.tar.gz, a
GPL-licensed DMG extraction tool

If any of you are so inclined, it would be nice if this tool acquired
a mode to notice new panics in
/Library/Logs/PanicReporter/YYYY-MM-DD-HHMMSS.panic (Leopard) or
/Library/Logs/DiagnosticReports/Kernel_YYYY-MM-DD-HHMMSS.panic (Snowleopard)
and decoded them using the locally-installed kernel and kext into
/var/db/openafs/logs/YYYY-MM-DD-HHMMSS.panic

My suggestion would be a sentinel file (decode anything newer than X)
to be touched when a new log is placed; However that's but one idea.

Derrick