pstack.1 (2010 09)

p
pstack(1)
Itanium(R)-based Systems Only
pstack(1)
NAME
pstack - print a stack trace for each LWP in each process and core file
SYNOPSIS
pstack [-h][pid[:
execpath]]|[corepath]
DESCRIPTION
pstack prints a stack trace (hex+symbolic) for each LWP (Lightweight Process) in each process and core
file.
Given the pid of a running process or the full path of a core file,
pstack prints the stack trace for each
LWP thread in the process. To obtain symbol information,
pstack searches load modules (executable
and shared libraries) in the current directory,
$PATH
, $LD_LIBRARY_PATH
, and $SHLIB_PATH.You
can specify the executable path with the pid /corepath , separated by a colon (
:) character. If pstack
cannot find a load module, symbol information for frames in that module is not displayed.
pstack works by attaching to the running process and reading its registers, memory, and stack.
Mismatch between executable and corefile may result in unpredictable behavior.
Options
pstack supports the following option:
-h Prints the usage menu.
Operand
pstack supports the following operand:
pid[
:execpath]|corepath pid identifies a running process, with an optional execpath , the full exe-
cutable path.
corepath is the full path name of the specified executable.
RETURN VALUES
pstack returns the following values:
0 Successful completion.
n!=0 Failure. An error has occurred.
SEE ALSO
ldd(1), pldd(1).
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (2 pages)