1. make -g **

- add -g option to enable gdb debug.

 

2. ulimit -c unlimited

- Enable coredump file to be created when segmentation fault occurs.

 

3. Gdb ./bin core.xxxx

- Get the core dump info. By the gdb

 

4. bt/backtrace

- Back trace the point that program gets segmentation fault

 

5. q/quit

- Leave GDB

posted on 2020-02-17 16:36  飞行的俊哥  阅读(179)  评论(0编辑  收藏  举报