LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 03-29-2005, 04:57 AM   #1
node047
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
stickman
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
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,058

Rep: Reputation: 295Reputation: 295Reputation: 295
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.
 
  


Reply


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


All times are GMT -5. The time now is 08:16 AM.

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