From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b612,14288fe38e547fb8 X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,14288fe38e547fb8 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1991-10-19 18:20:52 PST Path: gmdzi!unido!mcsun!uunet!decwrl!deccrl!news.crl.dec.com!nntpd.lkg.dec.com!mipsbx.lkg.dec.com!thomas From: thomas@mipsbx.lkg.dec.com (Matt Thomas) Newsgroups: comp.unix.ultrix,comp.sys.dec Subject: Re: Ultrix crash Message-ID: <29019@nntpd.lkg.dec.com> Date: 19 Oct 91 14:56:14 GMT References: <1991Oct18.131955.18500@gmuvax2.gmu.edu> <1991Oct18.150906.28946@decuac.dec.com> Sender: news@nntpd.lkg.dec.com Followup-To: comp.unix.ultrix Organization: Digital Equipment Xref: gmdzi comp.unix.ultrix:48232 comp.sys.dec:25621 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.