Binary package “pstack” in ubuntu focal

Display stack trace of a running process

 pstack dumps a stack trace for a process, given the PID of that process. If
 the process named is part of a thread group, then all the threads in the group
 are traced.