Steven Roussey wrote:
pstack should be able to find the symbols if you compile and link with -g
Yes, and ./configure with --without-execstrip helps quite a bit too... :)
Now, pstack simply segfaults.
[root@morpheus root]# pstack 5922
5922: /usr/local/apache/bin/httpd
pstack signal received: Segmentation fault
The only two solutions I can think of are:
- Try a newer version of pstack, if applicable.
- If that doesn't work, try gdb. You might be able
script gdb so that it loops through a list of pids
and does an attach/backtrace/detach for each.
Brian