strace has a --stack-traces option
I just learned that strace has a --stack-traces
option from this nice blog post showing how you can use it to figure out what a Go program is doing.
strace tips for better debugging also has some other strace tips I didn’t know, like that you can use it to inject failures