1,gdb attach 到死锁的进程.
例如 gdb attach 3226
2, info thread 查看在那个线程卡住。
查看到thread 33 上面有_lll_lock_wait
bt 查看, frame(f)切到相应的栈(函数调用的第几层)。
查看owener 查看是那个线卡占用了这个锁:
总结:
上一篇:【C进阶】字符串函数
下一篇:woocommerce 自动执行折扣