The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Hardware > Filesystems, Disks and Memory
.
google unix.com



Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
A program to trace execution of another program jiten_hegde High Level Programming 3 08-19-2008 06:26 AM
help required - stack trace ranj@chn UNIX for Advanced & Expert Users 9 09-26-2006 09:20 AM
Need to capture ERROR msg and stack trace gswhoops Shell Programming and Scripting 2 01-11-2006 07:51 PM
printing a stack trace with backtrace dmirza High Level Programming 2 11-03-2005 03:27 PM
Core file without a readable stack trace ciregbu High Level Programming 0 10-02-2002 12:42 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-23-2007
rydahl rydahl is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 3
get stack trace from C program on Solaris 8

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!
  #2 (permalink)  
Old 03-23-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,122
Maybe use system() to invoke the pstack program? I have never tried that...
  #3 (permalink)  
Old 03-23-2007
rydahl rydahl is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 3
I need to examine the stack trace inside the C program not to dump it to the shell.
  #4 (permalink)  
Old 03-23-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,122
Ok, then, popen rather than system.
  #5 (permalink)  
Old 03-23-2007
rydahl rydahl is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 3
Cool. That solves my problem. Thanks a million !!!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:16 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0