前言
调试代码的时候,可能会出现segmentation fault的bug,很难找到原因,在此总结一下可能的原因。
SIGSEGV
原因分析
1.程序中的变量没有进行检查;
比如,没有对变量的大小进行检查,却在之后要用到该变量,如果变量为空,此时便会出错。
完