1. top -H, 找到占用CPU最高的线程 2. gdb -p attach到进程上面 3. info thread, 找到跟上面线程id对应的gdb 里面的ID 4. thread $id, 锁定上面的线程 5. bt 查看可疑信息。