⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crash.8

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 8
字号:
.TH crash 8.SH Namecrash \- examine system images.SH Syntax.B /usr/bin/crash[ \fIsystem\fR ] [ \fInamelist\fR ].SH Description.NXR "crash utility"The.PN crashutility is an interactive program that lets you examine the core image of the operating system.  This utility has facilities for interpretingand formatting the various control structuresin the system and certain miscellaneousfunctions that are useful when perusing a dump..PPThe arguments to the.PN crashutility are the file name where the.I systemimagecan be found anda.I namelistfile to be usedfor symbol values..PPThe default values are.PN /dev/memand.PN /vmunix ;hence, the.PN crashutility specified without arguments can be used to examine anactive system.If a.I systemimage file is given,it is assumed to be a system core dump andthe default process is set to be that of theprocess running at the timeof the crash.This is determined by a valuestored in a fixed locationby the dump mechanism..SS CommandsUse the following input to the .PN crash utility:.PP.B command [ \fIoptions\fR ] [ \fIstructures\fR ].PPIf used, .I optionsmodify the format of the printout.If a specific structure element is not specified,all valid entries are used.  For example,.B "proc 12 15 3"prints only process table slots12, 15, and 3,but.B procprints the entire process tablein standard format..PPIn general, those commands that perform \s-1I\s+1/\s-1O\s+1with addresses assumehexadecimal on 32-bitmachines and octal on 16-bit machines..PPThe commands include the following:.TP\fBuser\fR [ \fIprocess table entry\fR ] [ *\fIproc address\fR ] [ #\fIpid\fR ]Aliases:.PN uarea ,.PN u_area ,.PN u ..brPrints the user structure of the named processas determined by the information contained in the process table entry.If an entry number is not given, the information from the last executing process is printed.Swapped processes produce an error message since their uareas are swapped..TP \fBufile\fR [ \fIprocess table entry\fR ] [ *\fIproc address\fR ] [ #\fIpid\fR ]Prints the open file table for the given process..TP \fBtrace\fR  [ \- ] [ \fIprocess table entry\fR ] [ *\fIproc address\fR ] [ #\fIpid\fR ]Aliases:.PN t ..brGenerates a kernel stack trace of a process.The process is either a process slot number, an address of process slot, orthe running process.If the process is not running, the trace begins at the .PN pcb .If an entry number is not given, the information from the last executing processwill be printed.  It is not possible to trace the executing process on arunning system.Using the \- flag allows the registers and variables for each stack frameto be dumped..TP \fBstack\fP [ \fIprocess table entry\fR ] [ *\fIproc address\fR ] [ #\fIpid\fR ]Aliases :.PN s ,.PN stk ..brGenerates a kernel stack dump of a process.  This is an unformatted displayof the kernel stack.  .TP\fBproc\fP [ \fB\-r\fP] [ \fIprocess table entry\fR ] [ *\fIproc address\fR ] [ #\fIpid\fR ]Aliases:.PN p ..brFormats the process table.The.B \-roption causes only runnable processes to be printed..TP\fBproclock\fP [ \fB\-r\fP] [ \fIprocess table entry\fR ] [ *\fIproc address\fR ] [ #\fIpid\fR ] Shows the SMP sleep locks held by a non-running process.  Same optionalarguments as \fBproc\fP..TP\fBpcb\fP [ \fIprocess table entry\fR ] [ *\fIproc address\fR ] [ #\fIpid\fR ]Prints the process control block of the current process.The process control block is a part of the user area(\s-1VAX\s+1\&en only).If no entry number is given, the information from the last executing processwill be printed..TP\fBps\fP [ \fIprocess table entry\fR ] [ *\fIproc address\fR ] [ #\fIpid\fR ]Prints the process slots, process id's, and process names for allprocesses..TP\fBpcb\fP [ \fIprocess table entry\fR ] [ *\fIproc address\fR ] [ #\fIpid\fR ]Prints the process control block for the given process..TP\fBppte\fP [ \fIprocess table entry\fR ] [ *\fIproc address\fR ] [ #\fIpid\fR ]Prints the pte's associated with the given process..TP\fBspt\fPDumps the system page table..TP \fBcmap\fP <\fIpage frame number\fR>Prints the memory freelist or the cmap for the given PFN..TP\fBcmap\fP \-i \fIindex\fRPrints the core map for the given coremap index..TP\fBcmap\fP \-h \fIindex\fRPrints the core maps for the given hash starting at index..TP\fBcmap\fP \-b \fIblock\fRPrints the core maps hashed on the given block..TP\fBcmap\fP \-a \fIat\fRPrints the core map at the given address..TP\fBgnode\fP [ \fB\-\fP ] [ \fIgnode table entries\fR ] [ *\fIgnode address\fR ]Aliases:.PN gno ,.PN g ..brFormats the gnode table..TP\fBgnode\fP \-maj <\fImajor number\fR>Formats all gnodes with the given major number..TP\fBgnode\fP \-min <\fIminor number\fR>Formats all gnodes with the given minor number..TP\fBgnode\fP \-fs <\fImount slot number\fR>Formats all gnodes for a given file system slot..TP\fBgnode\fP \-gno <\fIgnode number\fR>Formats all gnodes with the given gnode number..TP\fBgnode\fP \-uid <\fIuser id\fR>Formats all gnodes owned by the given uid..TP\fBgnode\fP \-gid <\fIgroup id\fR>Formats all gnodes owned by the given gid..TP\fBgnode\fP \-lmod <\fIfile permissions\fR>Formats all gnodes with the given protection.  The command \fBgnode \-lmod 777\fP finds all gnodes that allow read/write/execute permission to every one..TP\fBgnode\fP \-hmod <\fIfile type\fR>Formats all gnodes with the given file type.  \fBgnode \-hmod 2\fP find all gnodes that are character special files..TP\fBgnode\fP \-amod <\fIfile modesfR>Formats all gnodes that match the given modes exactly.  The command\fBgnode \-amod 20777\fP finds all gnodes for character devices thatallow read/write/execute permission to every one..TP\fBgnode\fP \-allDisplays a more extensive list of the gnodes contents..TP\fBgnode\fP \-lockShows the SMP lock contained in the gnode..TP\fBgfree\fPPrints the list of all inactive gnodes..TP\fBblock\fP [ \fB\-\fP ] [ \fIgnode table entries\fR ] [ *\fIgnode address \fR]Prints the gnode data block addresses..TP\fBrnode\fP [ \fIgnode table entries\fR ] [ *\fIgnode address\fR ]Alias:.PN v ..brPrints the associated rnode values for gnodes that are remote (via NFS)..TP\fBfile\fP [ \fIfile table entries\fR ] [ *\fIfile address\fR ]Alias:.PN f ..brFormats the file table..TP\fBcred\fP \fIaddress\fRPrints the credentials at the given address..TP\fBcrred\fP \fIaddress\fRVerifies the references of a credential at the given address..TP\fBcrcheck\fPVerifies all references to all credentials..TP\fBmount\fP [ \-s ] [ \fImount table entries\fR ] [ *\fImount address\fR ]Aliases:.PN mnt ,.PN m ..brFormats the mount table.  The .PN \-s option gives a abbreviated format..TP\fBfsdata\fP [ \fImount table entries\fR ] [ *\fImount address\fR ]Alias:.PN df ..brPrints the fsdata structure associated with a mount entry..TP\fBmntinfo\fP [ \fImount table entries\fR ] [ *\fImount address\fR ]Alias:.PN mi ..brPrints the mntinfo data structure associate with an NFS file system..TP\fBbuf\fP [ \- ] [ \fIbuffer headers\fR ] [ *\fIbuffer header address\fR ]Aliases:.PN hdr ,.PN bufhdr ..brFormats the system buffer headers.  By using the \- option, all buffer headers (including ones marked invalid) are printed..TP\fBbufgp\fP [ \fIgnode slots\fR ] [ *\fIgnode address\fR ] Alias:.PN cache ..brPrints the buffer headers associated with the given gnode..TP\fBbuflock\fPPrints the buffer headers on the locked list..TP\fBbuflru\fPPrints the buffer headers on the lru list..TP\fBbufage\fPPrints the buffer headers on the aged list..TP\fBbufempty\fPPrints the buffer headers on the empty list..TP\fBbuffer\fP [ \fIformat\fR ] [ \fIlist of buffers\fR ]Alias:.PN b ..brPrints the data in a system bufferaccording to.IR format .If.I formatis omitted, the previous.I formatis used.Valid formats include.PN decimal ,.PN octal ,.PN hex ,.PN character ,.PN byte ,.PN directory ,.PN gnode ,and.PN write .The last creates a filein the current directory (see the Files section)containing the buffer data..TP\fBtext\fP [ \fItext table entries\fR ] [ *\fItext address\fR ]Aliases:.PN txt ,.PN x ..brFormats the text table..TP\fBftext\fPAlias:.PN freet ..brPrints the list of free texts..TP.B calloutAliases:.PN calls ,.PN call ,.PN c ,.PN timeout ,.PN time ,.PN tout ..brPrints all entries in the callout table..TP\fBarp\fP [ \- ] [ \fIaddress\fR ]Prints the arp table.  The \- option prints the entire table..TP\fBsocket\fP [ \fIfile slot\fR ] [ *\fIfile address\fR ]Prints the socket structure associated with the given file slot..TP\fBtty\fP [ \- ] [ \fIprocess slot\fR ] [ *\fIproc address\fR ] [ #\fIpid\fR ]Alias:.PN term ..brPrints the terminal structure attached to a process.  The \- option allowsfor the raw, cannonical, and output clists..TP\fBtty \fR\-clistIncludes clists in display of the tty struct..TP\fBtty \fR-addr \fIaddress\fRPrints the contents of a tty structure at thespecified address..TP\fBmap\fP [ \fImap names\fR ]Formats the named system map structures..TP\fBnm\fP [ \fIsymbols\fR ]Prints the symbol value and type as found in the.I namelistfile..TP\fBts\fP [ \fItext addresses\fR ]Finds the closest text symbols to the given addresses..TP\fBds\fP [ \fIdata addresses\fR ]Finds the closest data symbols to the given addresses..TP\fBod\fP [ \fIsymbol name or address\fR ] [ \fIcount\fR ] [ \fIformat\fR ]Aliases:.PN dump ,.PN rd ..brDumps.I count\^data valuesstarting at the symbol value or address givenaccording to.IR format .Allowable formats are.PN octal ,.PN longoct ,.PN decimal ,.PN longdec ,.PN character ,.PN hex ,or.PN byte ..TP\fBdis\fP \fIaddress\fR [ \fIaddress\fR ]Disassembles starting at the first address and continuing until the secondaddress.  These addresses may be symbolic (that is, syscall+33).  .TP\fBstat\fP Prints useful statistics pertaining to the buffer cache, dnlc, namei translationcache, and others..TP\fBdupreq\fP Displays the contents of the duplicate request cache.  This is useful in finding out the recent history of NFS requests made to the server.  .TP\fBmbuf\fP \fIaddress\fRDisplays the .PN mbuf chain starting at the given address..TP\fBinpcb\fP \-udp \-tcpDisplays the .PN inpcb chain of the corresponding protocol, or both TCP and UDPif no protocol is specified..TP\fBclient\fP Displays the client table, which contains client handles used to initiate rpc requests..TP\fBsync\fP Resynchronizes the proc, mount, gnode, buffer, file and other internal tablesup to the current state of .PN /dev/kmem .  This command is useful for looking at changing valuesin runing kernels. However, you should not use it when looking at.PN vmcorefiles.  .TP\fBsvcxprt\fP  \fIaddress\fRPrints the svcxprt structure located at address..TP\fBscsTraverses data structures in the System Communications Services (SCS)tree and displays the contents of the data structures..TP\fBscs \fR-cb \fIaddress\fRDisplays the contents of an SCS connection block data structure at thespecified address..TP\fBscs \fR-cib \fIaddress\fRDisplays the contents of an SCS connection information block data structure at the specified address..TP\fBscs \fR-pb \fIaddress\fRDisplays the contents of an SCS path block data structure at thespecified address..TP\fBscs \fR-pib \fIaddress\fRDisplays the contents of an SCS path information block data structure at the specified address..TP\fBscs \fR-sb \fIaddress\fRDisplays the contents of an SCS system block data structure at thespecified address..TP\fBscs \fR-sib \fIaddress\fRDisplays the contents of an SCS system information block data structureat the specified address..TP\fBscsiPrints SCSI controller information..TP\fBscsi \fR-targetPrints SCSI target information..TP\fBscsi \fR-devtabPrints SCSI devtab information..TP\fBscsi \fR-transPrints SCSI transfer information..TP\fBscsi \fR-cmdPrints SCSI message or command data..TP\fBscsi \fR-bbrPrints SCSI Bad Block Replacement data..TP\fBscsi \fR-errorPrints SCSI error information..TP\fBscsi \fR-siiPrints SCSI SII information..TP\fBscsi \fR-dctPrints SCSI DCT statistics..TP\fBscsi \fR-spinPrints SCSI SPIN statistics..TP\fBscsi \fR-allPrints all SCSIBUS information..TP\fBlock\fP  [-all] \fIaddress\fRPrints the SMP lock structure located at address.  The \f(CWall\fP flagdisplays all global SMP locks..TP\fBmscpTraverses both the mscp disk and tape subsystems, andprints the data structures for class blocks,connection blocks, unit blocks, and active requestblocks..TP\fBmscp \fR-diskTraverses the mscp disk subsystem and prints the data structures for the mscp class block, mscpconnection blocks, mscp unit blocks, and activerequest blocks..TP\fBmscp \fR-tapeTraverses the tmscp tape subsystem and prints the data structures for the tmscp class block, tmscpconnection blocks, tmscp unit blocks, and activerequest blocks..TP\fBmscp \fR-configTraverses both the mscp disk and tape subsystems, anddisplay the system configuration.  This is done byprinting summary information from the class,connection, and unit blocks..TP\fBmscp \fR-connb \fIaddress\fRPrints the contents of an mscp connection blockat the specified address..TP\fBmscp \fR-classb \fIaddress\fRPrints the contents of an mscp class blockat the specified address..TP\fBmscp \fR-unitb \fIaddress\fRPrints the contents of an mscp unitb blockat the specified address..TP\fBmscp \fR-reqb \fIaddress\fRPrints the contents of an mscp request blockat the specified address..TP\fBmscp \fR-dtableDisplays all the elements of the mscp disk unit table.Unused elements of the array will be specified as NULL..TP\fBmscp \fR-ttableDisplays all the elements of the tmscp tape unit table.Unused elements of the array will be specified as NULL..TP.B !Escapes to the shell..TP\fB#\fP[ \fIhistory\fR ]Repeats the last command.  If a number is given (that is, \fB#5\fP), thatcommand number is re-executed..TP\fB#h\fPAlias:.PN history ,.brShows the history list..TP.B qExits from.PN crash ..TP.B ?Prints a synopsis of commands..SS AliasesThere are built-in aliases for many of the.I formatsas well as those listed for the commands.Some of them are:.PD 0.RS.TP 12byteb..TPcharacterchar, c..TPdecimaldec, e..TPdirectorydirect, dir, d..TPhexadecimalhexadec, hex, h, x..TPgnodegno ,g..TPlongdecld, \s-1D\s+1..TPlongoctlo, \s-1O\s+1..TPoctaloct, o..TPwritew..RE.PD.SH RestrictionsMany of the flags are abbreviated making them difficultto interpret.  A source listing of the system header fileswould be helpful when using the.PN crashutility..PPExaming the stack of the current process on arunning system and procs running at the time of a crashdoes not work..SH Files.TP 22.PN /usr/include/sys/\(**.hHeader files for table and structure info.TP.PN /dev/memDefault system image file.TP.PN /vmunixDefault namelist file.TP.PN buf.#Files created containing buffer data.SH See Alsomount(8), nm(1), ps(1), sh(1), stty(1), pstat(8)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -