gdb -p 进程号 (对进程进行调试) thread apply all bt 查看所有进程 gdb 手册如下 https://max.book118.com/html/2017/1018/137393690.shtm