Re: [osol-discuss] pstack on Solaris 9

2008-04-22 Thread Frank . Hofmann
On Mon, 21 Apr 2008, Grigoris Beis wrote:

 Hello everyone,



 Is there a way to filter out the pstack command so that it does not print
 the stack output of every thread of my multithreaded application but only of
 the one thread that crashes every time?



 For instance, if thread#1 is the one that crashes, how can I isolate the
 stack output of that thread only using pstack?



 My multithreaded application runs on Solaris 9.



 Thank you in advance,

Not sure if pstack does that on S9, but you can always move the corefile 
over to opensolaris and have a look there; the syntax is (example):

# pstack 143/25
143:/usr/sbin/nscd
-  lwp# 25 / thread# 25  
  fed31b97 nanosleep (fd39df80, fd39df88)
  0805cbda reaper   (80a4348) + 1ba
  fed2e652 _thr_setup (fe9cc200) + 52
  fed2e8b0 _lwp_start (fe9cc200, 0, 0, 0, 0, 0)

nscd on my box has 31 threads, the above shows the stack for the 25th.

If you've got a corefile, just pstack core/id will do ?


FrankH.
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


[osol-discuss] pstack on Solaris 9

2008-04-21 Thread Grigoris Beis
Hello everyone,

 

Is there a way to filter out the pstack command so that it does not print
the stack output of every thread of my multithreaded application but only of
the one thread that crashes every time?  

 

For instance, if thread#1 is the one that crashes, how can I isolate the
stack output of that thread only using pstack?

 

My multithreaded application runs on Solaris 9.

 

Thank you in advance,

 

Greg

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org