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:
Operand
pstack
supports the following operand:
- pid[:execpath]|corepath
pid
identifies a running process, with an optional
execpath,
the full executable 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.