美文网首页
内存泄露、内存越界检测

内存泄露、内存越界检测

作者: 锋之律 | 来源:发表于2020-06-01 22:51 被阅读0次

    Address Sanitizer(ASan)是一个快速的内存错误检测工具。
    编译时加上-fsanitize=address -fno-omit-frame-pointer的选项
    参考:https://www.jianshu.com/p/3a2df9b7c353
    https://www.cnblogs.com/tongyishu/p/12597615.html

    其他工具:
    valgrind
    mtrace
    dmalloc
    ccmalloc
    memwatch
    debug_new

    用backtrace()调试coredump问题
    参考:https://www.jianshu.com/p/8eac340f1760

    相关文章

      网友评论

          本文标题:内存泄露、内存越界检测

          本文链接:https://www.haomeiwen.com/subject/hevezhtx.html