Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > P

pstack(1)

Itanium(R)-based Systems Only
HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

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 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.

SEE ALSO

ldd(1), pldd(1).

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.