AccMon: Automatically detecting memory-related bugs via program counter-based invariants

被引:0
|
作者
Zhou, P [1 ]
Liu, W [1 ]
Fei, L [1 ]
Lu, S [1 ]
Qin, F [1 ]
Zhou, YY [1 ]
Midkiff, S [1 ]
Torrellas, J [1 ]
机构
[1] Univ Illinois, Dept Comp Sci, Chicago, IL 60680 USA
关键词
D O I
暂无
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
This paper makes two contributions to architectural support for software debugging. First, it proposes a novel statistics-based, on-the-fly bug detection method called PC-based invariant detection. The idea is based on the observation that, in most programs, a given memory location is typically accessed by only a few instructions. Therefore, by capturing the invariant of the set of PCs that normally access a given variable, we can detect accesses by outlier instructions, which are often caused by memory corruption, buffer overflow, stack smashing or other memory-related bugs. Since this method is statistics-based, it can detect bugs that do not violate any programming rules and that, therefore, are likely to be missed by many existing tools. The second contribution is a novel architectural extension called the Check Look-aside Buffer (CLB). The CLB uses a Bloom filter to reduce monitoring overheads in the recently-proposed iWatcher architectural framework for software debugging. The CLB significantly reduces the overhead of PC-based invariant debugging. We demonstrate a PC-based invariant detection tool called AccMon that leverages architectural, run-time system and compiler support. Our experimental results with seven buggy applications and a total of ten bugs, show that AccMon can detect all ten bugs with few false alarms (0 for five applications and 2-8 for two applications) and with low overhead (0.24-2.88 times). Several existing tools evaluated, including Purify, CCured and value-based invariant detection tools, fail to detect some of the bugs. In addition, Purify's overhead is one order of magnitude higher than AccMon's. Finally. we show that the CLB is very effective at reducing overhead.
引用
收藏
页码:269 / 280
页数:12
相关论文
共 1 条
  • [1] Detecting Memory-Related Bugs by Tracking Heap Memory Management of C plus plus Smart Pointers
    Ma, Xutong
    Yan, Jiwei
    Wang, Wei
    Yan, Jun
    Zhang, Jian
    Qiu, Zongyan
    [J]. 2021 36TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING ASE 2021, 2021, : 880 - 891