Someone once posted a script or program
that would allegedly do something similar
to the Solaris "truss" on OS X. Can anyone
come up with that again?

I finally got some diagnostic data from my printer problem.
I bet a prefs file is corrupted. (See lines 19-20)
Any idea how to find it?

Command: Acrobat Reader 5.0
PID: 5777

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x03069000

Thread 0 Crashed:
#0 0x701725e4 in getString
#1 0x701876ec in pDataTag
#2 0x70171e48 in parMLElement
#3 0x7017229c in getContentObject
#4 0x70172348 in pDictTag
#5 0x70171d74 in parMLElement
#6 0x7017229c in getContentObject
#7 0x70172348 in pDictTag
#8 0x70171d74 in parMLElement
#9 0x7017229c in getContentObject
#10 0x70172348 in pDictTag
#11 0x70171d74 in parMLElement
#12 0x7017229c in getContentObject
#13 0x7017204c in pPListTag
#14 0x70171cb8 in parMLElement
#15 0x70171484 in parMLPropertyList
#16 0x70170dc0 in _CFPropertyListCreateFromXMLData
#17 0x7365ca7c in PMDictionary::LoadNewDictionaryFromXML(__CFData const *)
#18 0x7365d3e0 in PMDictionary::PMDictionary(__CFData const *)
#19 0x7365b530 in loadCacheAndCopyPrefs
#20 0x73657330 in CPLSyncAndCopyPrefsDict
#21 0x73658fcc in CPLCopyDefaultSavedItemName
#22 0x7365ef9c in CPLCopyDefaultPrinterName
#23 0x73658cb0 in PJCPrinter::PJCPrinter(void)
#24 0x7365c638 in PJCGetCurrentPrinter
#25 0x7365de24 in PJCSession::SetCurrentPrinter(void)
#26 0x7365f2c0 in PJCSession::PJCSession(void)
#27 0x7365a254 in PJCCreateSession(OpaquePMPrintSession **)
#28 0x7365c914 in PMCreateSession
#29 0x00668588 in SessionOpenPM(_GenericPrint *)
#30 0x00666900 in GenericOpenPM(_GenericPrint *)
#31 0x004d70a4 in OpenPrintMgr(_t_AVPrint *)
#32 0x004d7440 in AVPrintNew(_t_AVDoc *, unsigned short, long, long,
short, unsigned short, unsigned short, unsigned short, unsigned short,
AVDlgPrintInfo *, unsigned short, unsigned short)
#33 0x004dc940 in
iAVDocPrintPages__FP8_t_AVDocP19_t_AVDocPrintParam sP14AVDlgPri
#34 0x004dce70 in MAC_PrintDocWithParams
#35 0x009348e8 in DEFAULTAVDocPrintPagesWithParams
#36 0x0093a048 in AVDocPrintPagesWithParams
#37 0x005a6430 in ExternalPrintExeProc
#38 0x0092fc1c in AVToolButtonExecute