Vallog可以识别的错误及错误提示
-
1.malloc/free: in use at exit 內(nèi)存在退出前沒有被釋放
-
2.Invalid write of size 非法寫內(nèi)存:一般為數(shù)組越界
-
3.Invalid read of size 非法讀內(nèi)存:一般為數(shù)組越界
-
4.definitely lost/possibly lost/still reachable in loss record 內(nèi)存未釋放
-
5.Invalid free() / delete / delete[] 同一指針被多次釋放
-
6.Source and destination overlap 內(nèi)存重疊(一般是使用strncpy,memcpy引起)
-
7.Syscall param contains uninitialised byte 調(diào)用系統(tǒng)函數(shù)時傳入了未初始化的變量
-
8.Conditional jump or move depends on uninitialised value 條件判斷時使用了未初始化的變量
-
9.棧溢出Access not within mapped region/Stack overflow 棧溢出
-
10.Mismatched free() / delete / delete [] new--delete malloc--free搭配錯誤
總結(jié)
以上是生活随笔為你收集整理的Vallog可以识别的错误及错误提示的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Valgrind 安装与使用
- 下一篇: git 配色方法