I normally use “truss -T” to suspend a process & “pstack” to list out the stack of function calls leading to the suspended call. This is clearly demonstrated in this post by Tanel Poder.
For the benefit of starters, i just wanted to point out that one key step was missing in the post. truss -T suspends a process and after using pstack, we shouldn’t forget to resume the process using prun.