* Re: Ultrix crash
1991-10-18 15:09 ` Frederick M. Avolio
@ 1991-10-19 14:56 ` Matt Thomas
0 siblings, 0 replies; 3+ messages in thread
From: Matt Thomas @ 1991-10-19 14:56 UTC (permalink / raw)
In article <1991Oct18.150906.28946@decuac.dec.com> avolio@decuac.DEC.COM (Frederick M. Avolio) writes:
>Have you tried the "crash" utility???
>
>% apropos crash
>crash (8) - examine system images
>crash (8v) - what happens when the system crashes
Not available under V3.x. To get a stack trace,
cd /usr/adm/crash
adb -k vmunix.X vmcore.X (where X is the number of the crash)
1000$s (increase the synbol recognition size)
*(scb-4)$c (this will give a stack trace)
Now comes the hard part, to figure the crashing pc.
On the stack, you'll see a line like
trap() from x at y (which x and y are large hex numbers)
So do
y/40X (replace y by number in the stack frame)
So now you are looking for a sequence of longwards in the pattern of trap
type, va, pc, psl. Note that these will be after the call frame for trap
(which is 17 longwords - 12 registers + saved pc, sp, fp + register mask +
exception ptr). For V4.x, you skip two longwords after the stack frame.
So
y+4c/4X (ditto)
should give the exception frame (type, va, pc, psl). Now take the third
longword and do
pc/i (replacing pc by the value of the longword)
Now you know exactly where it died. To figure out why you'll need sources
(which you don't probably have). But you could post an article with the
above information and see if anyone can help.
Note that I can concentrated on traps under VAX ULTRIX V3.x. ULTRIX V4.0
has some differences (for SMP) and MIPS ULTRIX is completely different (you
use dbx, not adb).
Hope this helps,
Matt Thomas Internet: thomas@lkg.dec.com
DECnet-ULTRIX Development UUCP: ...!decwrl!thomas
Digital Equipment Corporation Disclaimer: This message reflects my own
Littleton, MA warped views, etc.
^ permalink raw reply [flat|nested] 3+ messages in thread