BSD 4_3_Net_2 release
[unix-history] / usr / src / share / man / man8 / man8.hp300 / crash.8
index 38158db..7ba0ee6 100644 (file)
@@ -1,29 +1,59 @@
-.\" Copyright (c) 1990 Regents of the University of California.
-.\" All rights reserved.  The Berkeley software License Agreement
-.\" specifies the terms and conditions for redistribution.
+.\" Copyright (c) 1990, 1991 Regents of the University of California.
+.\" All rights reserved.
 .\"
 .\"
-.\"    @(#)crash.8     5.1 (Berkeley) %G%
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\"    This product includes software developed by the University of
+.\"    California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\"    may be used to endorse or promote products derived from this software
+.\"    without specific prior written permission.
 .\"
 .\"
-.TH CRASH 8 ""
-.UC 7
-.SH NAME
-crash \- what happens when the system crashes
-.SH DESCRIPTION
-This section explains what happens when the system crashes
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\"     @(#)crash.8    5.2 (Berkeley) 3/16/91
+.\"
+.Dd March 16, 1991
+.Dt CRASH 8
+.Os
+.Sh NAME
+.Nm crash
+.Nd UNIX system failures
+.Sh DESCRIPTION
+This section explains a bit about system crashes
 and (very briefly) how to analyze crash dumps.
 and (very briefly) how to analyze crash dumps.
-.PP
+.Pp
 When the system crashes voluntarily it prints a message of the form
 When the system crashes voluntarily it prints a message of the form
-.IP
+.Bd -ragged -offset indent
 panic: why i gave up the ghost
 panic: why i gave up the ghost
-.LP
+.Ed
+.Pp
 on the console, takes a dump on a mass storage peripheral,
 and then invokes an automatic reboot procedure as
 described in
 on the console, takes a dump on a mass storage peripheral,
 and then invokes an automatic reboot procedure as
 described in
-.IR reboot (8).
+.Xr reboot 8 .
 Unless some unexpected inconsistency is encountered in the state
 of the file systems due to hardware or software failure, the system
 will then resume multi-user operations.
 Unless some unexpected inconsistency is encountered in the state
 of the file systems due to hardware or software failure, the system
 will then resume multi-user operations.
-.PP
+.Pp
 The system has a large number of internal consistency checks; if one
 of these fails, then it will panic with a very short message indicating
 which one failed.
 The system has a large number of internal consistency checks; if one
 of these fails, then it will panic with a very short message indicating
 which one failed.
@@ -31,82 +61,67 @@ In many instances, this will be the name of the routine which detected
 the error, or a two-word description of the inconsistency.
 A full understanding of most panic messages requires perusal of the
 source code for the system.
 the error, or a two-word description of the inconsistency.
 A full understanding of most panic messages requires perusal of the
 source code for the system.
-.PP
+.Pp
 The most common cause of system failures is hardware failure, which
 can reflect itself in different ways.  Here are the messages which
 are most likely, with some hints as to causes.
 Left unstated in all cases is the possibility that hardware or software
 error produced the message in some unexpected way.
 The most common cause of system failures is hardware failure, which
 can reflect itself in different ways.  Here are the messages which
 are most likely, with some hints as to causes.
 Left unstated in all cases is the possibility that hardware or software
 error produced the message in some unexpected way.
-.TP
-.B iinit
+.Pp
+.Bl -tag -width Ds -compact
+.It Sy iinit
 This cryptic panic message results from a failure to mount the root filesystem
 during the bootstrap process.
 Either the root filesystem has been corrupted,
 or the system is attempting to use the wrong device as root filesystem.
 Usually, an alternate copy of the system binary or an alternate root
 filesystem can be used to bring up the system to investigate.
 This cryptic panic message results from a failure to mount the root filesystem
 during the bootstrap process.
 Either the root filesystem has been corrupted,
 or the system is attempting to use the wrong device as root filesystem.
 Usually, an alternate copy of the system binary or an alternate root
 filesystem can be used to bring up the system to investigate.
-.TP
-.B Can't exec /etc/init
+.Pp
+.It Sy "Can't exec /etc/init"
 This is not a panic message, as reboots are likely to be futile.
 Late in the bootstrap procedure, the system was unable to locate
 and execute the initialization process,
 This is not a panic message, as reboots are likely to be futile.
 Late in the bootstrap procedure, the system was unable to locate
 and execute the initialization process,
-.IR init (8).
+.Xr init 8 .
 The root filesystem is incorrect or has been corrupted, or the mode
 The root filesystem is incorrect or has been corrupted, or the mode
-or type of /etc/init forbids execution.
-.TP
-.B IO err in push
-.ns
-.TP
-.B hard IO err in swap
+or type of
+.Pa /etc/init
+forbids execution.
+.Pp
+.It Sy "IO err in push"
+.It Sy "hard IO err in swap"
 The system encountered an error trying to write to the paging device
 or an error in reading critical information from a disk drive.
 The offending disk should be fixed if it is broken or unreliable.
 The system encountered an error trying to write to the paging device
 or an error in reading critical information from a disk drive.
 The offending disk should be fixed if it is broken or unreliable.
-.TP
-.B realloccg: bad optim
-.ns
-.TP
-.B ialloc: dup alloc
-.ns
-.TP
-.B alloccgblk: cyl groups corrupted
-.ns
-.TP
-.B ialloccg: map corrupted
-.ns
-.TP
-.B free: freeing free block
-.ns
-.TP
-.B free: freeing free frag
-.ns
-.TP
-.B ifree: freeing free inode
-.ns
-.TP
-.B alloccg: map corrupted
+.Pp
+.It Sy "realloccg: bad optim"
+.It Sy "ialloc: dup alloc"
+.It Sy "alloccgblk:cyl groups corrupted"
+.It Sy "ialloccg: map corrupted"
+.It Sy "free: freeing free block"
+.It Sy "free: freeing free frag"
+.It Sy "ifree: freeing free inode"
+.It Sy "alloccg: map corrupted"
 These panic messages are among those that may be produced
 when filesystem inconsistencies are detected.
 The problem generally results from a failure to repair damaged filesystems
 after a crash, hardware failures, or other condition that should not
 normally occur.
 A filesystem check will normally correct the problem.
 These panic messages are among those that may be produced
 when filesystem inconsistencies are detected.
 The problem generally results from a failure to repair damaged filesystems
 after a crash, hardware failures, or other condition that should not
 normally occur.
 A filesystem check will normally correct the problem.
-.TP
-.B timeout table overflow
-.ns
+.Pp
+.It Sy "timeout table overflow"
 This really shouldn't be a panic, but until the data structure
 involved is made to be extensible, running out of entries causes a crash.
 If this happens, make the timeout table bigger.
 This really shouldn't be a panic, but until the data structure
 involved is made to be extensible, running out of entries causes a crash.
 If this happens, make the timeout table bigger.
-.TP
-.B "trap type %d, code = %x, v = %x"
+.Pp
+.It Sy "trap type %d, code = %x, v = %x"
 An unexpected trap has occurred within the system; the trap types are:
 An unexpected trap has occurred within the system; the trap types are:
-.sp
-.nf
+.Bl -column xxxx -offset indent
 0      bus error
 1      address error
 2      illegal instruction
 3      divide by zero
 0      bus error
 1      address error
 2      illegal instruction
 3      divide by zero
-4      \fIchk\fP instruction
-5      \fItrapv\fP instruction
+.No 4\t Em chk No instruction
+.No 5\t Em trapv No instruction
 6      privileged instruction
 7      trace trap
 8      MMU fault
 6      privileged instruction
 7      trace trap
 8      MMU fault
@@ -115,11 +130,13 @@ An unexpected trap has occurred within the system; the trap types are:
 11     FP coprocessor fault
 12     coprocessor fault
 13     simulated AST
 11     FP coprocessor fault
 12     coprocessor fault
 13     simulated AST
-.fi
-.sp
+.El
+.Pp
 The favorite trap type in system crashes is trap type 8,
 indicating a wild reference.
 The favorite trap type in system crashes is trap type 8,
 indicating a wild reference.
-``code'' (hex) is the concatenation of the MMU status register
+``code'' (hex) is the concatenation of the
+MMU
+status register
 (see <hp300/cpu.h>)
 in the high 16 bits and the 68020 special status word
 (see the 68020 manual, page 6-17)
 (see <hp300/cpu.h>)
 in the high 16 bits and the 68020 special status word
 (see the 68020 manual, page 6-17)
@@ -135,46 +152,51 @@ this process may not be related to the panic.
 ``pc'' (hex) is the value of the program counter saved
 on the hardware exception frame.
 It may
 ``pc'' (hex) is the value of the program counter saved
 on the hardware exception frame.
 It may
-.I not
+.Em not
 be the PC of the instruction causing the fault.
 ``sfc'' and ``dfc'' (hex) are the 68020 source/destination function codes.
 They should always be one.
 be the PC of the instruction causing the fault.
 ``sfc'' and ``dfc'' (hex) are the 68020 source/destination function codes.
 They should always be one.
-``p0'' and ``p1'' are the VAX-like region registers.
+``p0'' and ``p1'' are the
+VAX-like
+region registers.
 They are of the form:
 They are of the form:
-.sp
-       <length> '@' <kernel VA>
-.sp
+.Pp
+.Bd -ragged -offset indent
+<length> '@' <kernel VA>
+.Ed
+.Pp
 where both are in hex.
 Following these values are a dump of the processor registers (hex).
 Finally, is a dump of the stack (user/kernel) at the time of the offense.
 where both are in hex.
 Following these values are a dump of the processor registers (hex).
 Finally, is a dump of the stack (user/kernel) at the time of the offense.
-.TP
-.B init died
+.Pp
+.It Sy "init died"
 The system initialization process has exited.  This is bad news, as no new
 users will then be able to log in.  Rebooting is the only fix, so the
 system just does it right away.
 The system initialization process has exited.  This is bad news, as no new
 users will then be able to log in.  Rebooting is the only fix, so the
 system just does it right away.
-.TP
-.B out of mbufs: map full
+.Pp
+.It Sy "out of mbufs: map full"
 The network has exhausted its private page map for network buffers.
 This usually indicates that buffers are being lost, and rather than
 allow the system to slowly degrade, it reboots immediately.
 The map may be made larger if necessary.
 The network has exhausted its private page map for network buffers.
 This usually indicates that buffers are being lost, and rather than
 allow the system to slowly degrade, it reboots immediately.
 The map may be made larger if necessary.
-.PP
+.El
+.Pp
 That completes the list of panic types you are likely to see.
 That completes the list of panic types you are likely to see.
-.PP
+.Pp
 When the system crashes it writes (or at least attempts to write)
 an image of memory into the back end of the dump device,
 usually the same as the primary swap
 area.  After the system is rebooted, the program
 When the system crashes it writes (or at least attempts to write)
 an image of memory into the back end of the dump device,
 usually the same as the primary swap
 area.  After the system is rebooted, the program
-.IR savecore (8)
+.Xr savecore 8
 runs and preserves a copy of this core image and the current
 system in a specified directory for later perusal.  See
 runs and preserves a copy of this core image and the current
 system in a specified directory for later perusal.  See
-.IR savecore (8)
+.Xr savecore 8
 for details.
 for details.
-.PP
+.Pp
 To analyze a dump you should begin by running
 To analyze a dump you should begin by running
-.IR adb (1)
+.Xr adb 1
 with the 
 with the 
-.B \-k
+.Fl k
 flag on the system load image and core dump.
 If the core image is the result of a panic,
 the panic message is printed.
 flag on the system load image and core dump.
 If the core image is the result of a panic,
 the panic message is printed.
@@ -183,16 +205,21 @@ Normally the command
 will provide a stack trace from the point of
 the crash and this will provide a clue as to
 what went wrong.
 will provide a stack trace from the point of
 the crash and this will provide a clue as to
 what went wrong.
-A more complete discussion
-of system debugging is impossible here.
-See, however,
-``Using ADB to Debug the UNIX Kernel''.
-.SH "SEE ALSO"
-adb(1),
-reboot(8)
-.br
-.I "MC68020 32-bit Microprocessor User's Manual"
-.br
-.I "Using ADB to Debug the UNIX Kernel"
-.br
-.I "4.3BSD for the HP300"
+For more details consult
+.%T "Using ADB to Debug the UNIX Kernel" .
+.Sh SEE ALSO
+.Xr adb 1 ,
+.Xr reboot 8
+.Rs
+.%T "MC68020 32-bit Microprocessor User's Manual"
+.Re
+.Rs
+.%T "Using ADB to Debug the UNIX Kernel
+.Re
+.Rs
+.%T "4.3BSD for the HP300"
+.Re
+.Sh HISTORY
+A
+.Nm
+man page appeared in Version 6 AT&T UNIX.