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.
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…
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…
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,…
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…
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…
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
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…