Solaris commands for process management - pstack

pstack – get backtrace stack of process for debugging purposes

bash-3.2# pstack 706
706:    /usr/dt/bin/dsdm
 fedcc3e5 pollsys  (8046b60, 1, 0, 0)
 fed7559a pselect  (4, 8046c00, fee323d8, fee323d8, 0, 0) + 18e
 fed75890 select   (4, 8046c00, 0, 0, 0) + 82
 fee5ab6b _XWaitForReadable (80651d0) + cf
 fee5a991 _XRead   (80651d0, 8046cf0, 20) + a9
 fee89811 _XReadEvents (80651d0) + 1e9
 fee65b12 XNextEvent (80651d0, 80475a0) + 46
 08052976 main     (1, 80476a0, 80476a8) + 1cc
 080517fa ???????? (1, 80477b0, 0, 80477c1, 80477d4, 8047808)




This command can sometimes be very helpful for debugging daemons. You can see the function call stack by thread, in real-time

No comments:

Post a Comment

Should I trust AI

 Should I trust AI? So far no, sorry.  I tested for the moment (May, 2025) most advanced model for programming and ask very simple question:...