[-t] [-v] pid | core
     pstack [-d elf-file]


DESCRIPTION

     Displays the stack traces of each thread in the running process with
     process id pid or from the core file core

     Options are as follows:

     -a arg-count
                 Attempt to read arg-count word-size arguments from the stack
                 for each frame.

     -f frame-count
                 Do not attempt to read any more than frame-count stack frames
                 for each stack.

     -d          Causes pstack to print a dump of the ELF information in an
                 object file, and exit.

     -e file     Specify an alternate executable to use for locating symbols
                 in the process.  This is useful if the process was started
                 from a stripped version of an executable, and you have the
                 unstripped version available. If examining a corefile, this
                 argument is required.

     -n          Don't stop and resume the target process. This can confuse or
                 crash pstack if the stack changes as it is being read, but
                 means that pstack has less of an effect (and chance to crash)
                 the target process

     -o          For each stack frame, display the name of the object in which
                 the current function lies

     -O          For each stack frame, display the full path to the object in
                 which the current function lies

     -t          Display the amount of time that the process was suspended by
                 pstack

     -v          verbose. Display debugging and diagnostics.


SEE ALSO

     procfs(5) ptrace(2)


BUGS

     pstack Works for x86 32-bit ELF executables only for the moment. (ie, no
     a.out support, and no Alpha support).  It is also very dependent on the
     current FreeBSD threads implementation.

     Because of a bug in ptrace(2) , pstack needs to send the target process a
     SIGCONT to re-awaken it.  This is not normally an issue, but may cause

BSD                               Oct 2, 2002                              BSD

Man(1) output converted with man2html