Date: 2018/9/25
1、参考
https://blog.csdn.net/richu123/article/details/71106672
https://www.cnblogs.com/jiu0821/p/7207082.html
https://zh.cppreference.com/w/c/program/SIG_types
https://www.geeksforgeeks.org/segmentation-fault-sigsegv-vs-bus-error-sigbus/
2、SIGSEGV
发生段错误后系统会抛出 SIGSEGV 信号,之后调用默认的信号处理函数,产生core文件 ,然后关闭程序 。那什么是SIGSEGV信号呢?
官方解释如下:
SIGSEGV — Segment Fault. The possible cases of your encountering this error are:
1.buffer overflow — usually caused by a pointer reference