Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-29-2005, 04:57 AM   #1
LQ Newbie
Registered: Mar 2005
Location: india
Posts: 12

Rep: Reputation: 0
stack trace of a process

Can anyone pl tell me how to trace the stack of a process ?
Old 04-01-2005, 01:30 PM   #2
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
strace and lsof are good utilities for this task.
Old 04-01-2005, 09:11 PM   #3
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Also, if you have a process that is crashing, it will generate a core file (you'll need to set ulimit -c unlimited or whatever you want the max size of the core file to be -- this assumes bash). You can load it up into gdb with gdb <executable> <corefile> and you can then use the backtrace command to show the stack frames existent at the time of the crash.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
java: stack trace eantoranz Programming 3 04-25-2005 11:38 AM
How to trace individual process' bandwidth usage wangru Linux - Networking 0 08-24-2004 12:32 PM
How To interpret kernel stack trace kklier Linux - Enterprise 6 08-22-2004 09:24 AM
Accessible stack memory for a process on IA-64 muzzafukka Linux - General 0 05-24-2004 08:57 AM
Stack trace ust Linux - General 0 02-27-2004 02:30 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration