PSTACK(1) Linux Programmer's Manual PSTACK(1)NAME
pstack - print a stack trace of running processes
SYNOPSIS
pstack pid [...]
DESCRIPTION
pstack attaches to the active processes named by the pids on the command line, and prints out an execution stack trace, including a hint at
what the function arguments are. If symbols exist in the binary (usually the case unless you have run strip(1)), then symbolic addresses
are printed as well.
If the process is part of a thread group, then pstack will print out a stack trace for each of the threads in the group.
RESTRICTIONS
pstack currently works only on Linux, only on an x86 machine running 32 bit ELF binaries (64 bit not supported). Also, for symbolic infor-
mation, you need to use a GNU compiler to generate your program, and you can't strip symbols from the binaries. For thread information to
be dumped, you have to use the debug-aware version of the LinuxThreads libpthread.so library. (To check, run nm(1) on your pthreads
library, and make sure that the symbol "__pthread_threads_debug" is defined.) Threads are not supported with the newer NPTL libpthread.so
library.
SEE ALSO nm(1), ptrace(2)AUTHORS
Ross Thompson <ross@whatsis.com>
Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Red Hat Linux Feb 25 2002 PSTACK(1)
Check Out this Related Man Page
pstack(1) General Commands Manual pstack(1)NAME
pstack - print a stack trace for each LWP in each process and core file
SYNOPSIS DESCRIPTION
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, prints the stack trace for each LWP thread in the process. To obtain
symbol information, searches load modules (executable and shared libraries) in the current directory, and You can specify the executable
path with the pid/corepath, separated by a colon character. If cannot find a load module, symbol information for frames in that module is
not displayed.
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
supports the following option:
Prints the usage menu.
Operand
supports the following operand:
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
returns the following values:
Successful completion.
Failure.
An error has occurred.
SEE ALSO ldd(1), pldd(1).
Itanium(R)-based Systems Onlypstack(1)
Hello guys, I got overzealous (I Think).
I got the book Linux Unleashed that comes with the Slackware 3.0 Version of Linux for $2.00.I also have Red Hat Linux 7.2 (No book, just the OS).What I wanted to know was,other than the bells and whistles of Red Hat is there any significant difference... (2 Replies)
Hello,
I'm running Red Hat Linux on a Dell Poweredge 2650 Rack Server and wondered if anyone knew of a tool or command I could use to probe the memory slots on the motherboard.
I know the machine has six memory slots and currently contains 1GB RAM, what I don't know however, is if it contains... (3 Replies)
Hello~ I recently got a class of Linux. Im running Red Hat Linux. Can you guys help me out on the file extensions, and what they mean. Well the most common ones.
Also, how the file system works. I know the '/' is like the beginning of everything. This sounds a little stupid, but i wanna try to... (3 Replies)
I'm on solaris 8. I need to check the stack trace inside my C program. I don't have printstack or walkstack. I tested getcontext and it works. But how do I get the symbols from "stack_t" ? Help please. Many thanks! (4 Replies)
I'm running Red Hat Linux 2.6.7 on a x86_64 box.
I have a core file from a program that called abort(). Does anyone here know how can I get a backtrace? (Re-creating the error with svd running inside gdb has proved impossible).
% gdb svd core.25223
GNU gdb Red Hat Linux... (2 Replies)
All - I have a stack of RS6000's that need a Linux install - Red Hat 5.2 to be exact. Any tips/pointers on how to get this done without an HMC? I can get the discs to boot, but the install hangs when asking for user interaction - like pressing 'ENTER' to skip disc media check.
Any help greatly... (4 Replies)
Hi!
I have a need to allow only certain IP addresses to access a machine running Red Hat Linux. I am not sure how this can be accomplished.
Thanks in advance for your help.
nua7 (2 Replies)
Hello, I am the CEO of Grand Tech Corporation. We are launching Linux NT and forgive me, but I do not know how to strip binaries down in Mandriva Linux. Can someone tell me a way to?:b: (2 Replies)
Dear All,
I am new to this forum. This is my first.
I am facing customer issue. Customer has got core file while running the server.
He had sent core file and details from pstack, pmap and pldd commands.
I have to debug this application, please help me to fix this issue.
I am using sparc 10... (4 Replies)
Hi All
I would like to use the tool "pstack" to get a sample of the stack trace for a process.
As far as I understood It seems widely available in all Linux systems, but it is not in Ubuntu 10.10.
I tried using apt-get as per some posts in few forum, but it cannot be found in the APT... (9 Replies)
I have solved this but now cannot recall the syntax. I want to strip or change the hard wired library paths on binaries I download from a repository. I do not have root and just want a personal install, but would rather not build every tool. I even posted the solution here once for others, but... (2 Replies)
Hi,
I am new to Linux OS. My question is that "is it possible to install 32 Bit application on 64 Bit OS?"
I have the following Redhat OS on VMware workstation.
OS - Red Hat Enterprise Linux Server release 6.2 | 2.6.32-220.el6.x86_64
While installing the application I am getting the... (2 Replies)
Hi everyone,
Our Red Hat server hung yesterday, and I managed to log into the console and see the following message:
RIP: 0010: mwait_idle_with_hints+0x66/
0x67
RSP: 0018:ffffffff80457f40 EFLAGS: 00000046
RAX: 0000000000000010 RBX: ffff810c20075910 RCX: 0000000000000001
RDX:... (6 Replies)
Hello All,
I am new joiner of this forum.I am new to Linux shell scripting.
At present I have identified 1 application which stalls very frequently (PID is say xyz) and I am not having much information in its application log to identify the root cause of stalling. I need to take the core dump... (19 Replies)