From: thomas@mipsbx.lkg.dec.com (Matt Thomas)
Subject: Re: Ultrix crash
Date: 19 Oct 91 14:56:14 GMT [thread overview]
Message-ID: <29019@nntpd.lkg.dec.com> (raw)
In-Reply-To: 1991Oct18.150906.28946@decuac.dec.com
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.
prev parent reply other threads:[~1991-10-19 14:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1991-10-18 13:19 Ultrix crash R. J. Auletta
1991-10-18 15:09 ` Frederick M. Avolio
1991-10-19 14:56 ` Matt Thomas [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox