Questions tagged [pstack]

Prints a stack trace of running processes.

pstack is a utility to print the stack trace of running processes.

23 questions
0
votes
1 answer

Displaying all stack history of a process

How can i display all function calls of a process on Solaris? dbx and pstack prints the call stack. What I want is a list of all the functions called by the process. In other words the output of several pstacks of the process.
scatman
  • 14,109
  • 22
  • 70
  • 93
0
votes
1 answer

using pstack to print all threads stacktrace

I am trying to use pstack to print the stacktrace of all threads of specific process, but I get only the main thread. According to the pstack description: pstack - print a stack trace of a running process ... If the process is part of a thread…
si_s
  • 21
  • 3
0
votes
1 answer

Intalling gdb and pstack on Amazon Linux AMI

I tried installing gdb and pstack on EC2 Instance with Amazon Linux AMI (it was not installed by default), and it's not working. Tried: [ec2-user@ip-172-21-ab-xyz ~]$ sudo yum install gdb Loaded plugins: priorities, update-motd, upgrade-helper No…
K.K
  • 2,647
  • 1
  • 26
  • 32
0
votes
1 answer

Alter code accessed by running cron

I have several crons running at various times every day. Occasionally, one or another will get 'stuck' and its process will never die. This isn't consistent, but after a change in a function in a different file which several of the crons access,…
BIU
  • 2,340
  • 3
  • 17
  • 23
0
votes
0 answers

Unusable pstack output for core dump on Solaris

Output of pstack applied to a coredump should contain a stack backtrace for every thread. But in some cases the output contains truncated backtraces for each thread, only one entry per thread. Here is an example, showing an excerpt of the pstack…
0
votes
1 answer

pstack show question mark

when I run pstack {pid} on linux, Sometimes, I shows ?? for some records. what is the reason for that? if it is just be optimized, how can I know the real related code ? #0 0x00000037d620b3dc in pthread_cond_wait@@GLIBC_2.3.2 () from…
zhihuifan
  • 1,093
  • 2
  • 16
  • 30
0
votes
1 answer

Does any one know the side effect of Solaris p series command(pstack, pmap)?

I'm now investigating a prod issue and would expect my investigating wouldn't cause any side effect to the normal prod environment, so Would it result in the pause of the running program even for a short period? Thanks
whossa
  • 191
  • 1
  • 7
-1
votes
1 answer

How do i get last n line stack using pstack command?

I am using pstack command in my c++ code and storing it in a string. The problem is it prints the stack upto last function and string becomes very heavy. Is there any way to print only last n lines of stack using pstack? If it can't be done using…
Dharmendra
  • 384
  • 1
  • 5
  • 22
1
2