Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gstack(1) [suse man page]

GSTACK(1)						     Linux Programmer's Manual							 GSTACK(1)

NAME
gstack - print a stack trace of a running process SYNOPSIS
gstack pid DESCRIPTION
gstack attaches to the active process named by the pid on the command line, and prints out an execution stack trace. If ELF 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 gstack will print out a stack trace for each of the threads in the group. SEE ALSO
nm(1), ptrace(2), gdb(1) AUTHORS
Ross Thompson <ross@whatsis.com> Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> Red Hat Linux Feb 15 2008 GSTACK(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 Only pstack(1)
Man Page

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

set tab to 4 spaces in vi

Hi, I want to set my tab lenght to 4 spaces instead of 8. And when i press tab instead of inserting tab it should insert 4 spaces. if i do set ts=4 this set tab=4. But this inserts tab. Say suppose i copy the code from unix to texpad/wordpad.Textpad will interpret tab as 8 spaces.(I can set... (4 Replies)
Discussion started by: pinnacle
4 Replies

2. Programming

Implementing a stack of strings in C

I'm trying to create a simplified version of dc to learn from. The first thing I notice is that the main stack stores strings. How would I implement a string stack in C? How is something like this: struct StringStack { const unsigned int pysicalSize; // physical size of the stack... (3 Replies)
Discussion started by: afulldevnull
3 Replies

3. UNIX for Dummies Questions & Answers

View User Mode Call Stack of Hung Process

I have a multithreaded usermode program(actually a daemon) which is in hanged state. To debug it I tried attaching the process to gdb, but the gdb hangs. gstack also gets hanged. I peeped into the proc file system and saw the process to be in sleeping state. /proc/sysrq-trigger I guess... (1 Reply)
Discussion started by: rupeshkp728
1 Replies

4. UNIX for Dummies Questions & Answers

Setting AIX vi colors

Hi - In my ~/.exrc file I have: set number syntax on colorscheme evening The numbers are set when I open a file but the syntax and colorscheme options are not available: syntax: Not an editor command Is there a workaround to getting colors appear, without installing anything? (2 Replies)
Discussion started by: ocbit
2 Replies

5. UNIX for Advanced & Expert Users

Restrict service account from direct interactive sessions

Environment: CentOS 7 I would like to have a solution where a service account can access a server in only these ways: ssh non-interactively via password or ssh key; that is, run commands or scripts (but running anything in /etc/shells will not be allowed) not ssh interactively regular... (2 Replies)
Discussion started by: bgstack15
2 Replies

6. UNIX for Advanced & Expert Users

Pam.d and make difference between AD User and local user on Linux

Hello, i configured rhel linux 6 with AD directory to authorize windows users to connect on the system and it works. i have accounts with high privileges (oracle for example) if an account is created on the AD server i would to block him. I looked for how to do, for the moment all the... (3 Replies)
Discussion started by: vincenzo
3 Replies