检查core dump设置 ulimit -c 编译加-g选项 gcc -g -o test test.c 分析异常 gdb test core.* gdb -c core.* test 显示异常堆栈 bt, where