首页 | 本学科首页   官方微博 | 高级检索  
     

基于有界模型检测的C/C 程序内存泄漏检测
引用本文:黄蔚,洪玫,杨秋辉,郭鑫宇,代声馨,徐保平,高婉玲,赵鹤.基于有界模型检测的C/C 程序内存泄漏检测[J].计算机应用研究,2016,33(6).
作者姓名:黄蔚  洪玫  杨秋辉  郭鑫宇  代声馨  徐保平  高婉玲  赵鹤
作者单位:四川大学计算机学院,四川大学计算机学院,四川大学计算机学院,四川大学计算机学院,四川大学计算机学院,四川大学计算机学院,四川大学计算机学院,四川大学计算机学院
基金项目:四川省应用基础研究项目(No. 2014JY0112)
摘    要:C/C 语言中的动态内存管理机制自由且灵活,但动态内存的使用容易引入内存泄漏,导致系统性能降低甚至系统崩溃。为了更加有效的检测内存泄漏,提出了一个基于有界模型检测技术的C/C 程序内存泄漏检测方案MLD-CBMC。该方案以C/C 程序文件为输入,利用有界模型检测技术,对程序进行展开处理,加入内存泄漏性质,并利用可满足性模理论(SMT)对程序约束和性质组成的验证条件编码,使用SMT求解器对验证条件求解,将检测内存泄漏问题转换为求解可满足性问题,实现C/C 程序内存泄漏的检测。通过实验验证了方案的有效性,并与其他有界模型检测工具进行对比实验,实验证明方案对内存泄漏的检测能力更强。

关 键 词:C/C  程序    内存泄漏    有界模型检测    可满足性模理论
收稿时间:4/1/2015 12:00:00 AM
修稿时间:2016/4/28 0:00:00

C/C Program Memory Leak Detection Based on Bounded Model Checking
Huang Wei,HONG Mei,Yang Qiuhui,Guo Xin-Yu,DAI Sheng-Xin,Xu Baoping,Gao Wanling and Zhao He.C/C Program Memory Leak Detection Based on Bounded Model Checking[J].Application Research of Computers,2016,33(6).
Authors:Huang Wei  HONG Mei  Yang Qiuhui  Guo Xin-Yu  DAI Sheng-Xin  Xu Baoping  Gao Wanling and Zhao He
Affiliation:College of Computer Science,Sichuan University,Chengdu,China,,College of Computer Science,Sichuan University,Chengdu,China,College of Computer Science,Sichuan University,Chengdu,China,College of Computer Science,Sichuan University,Chengdu,China,College of Computer Science,Sichuan University,Chengdu,China,College of Computer Science,Sichuan University,Chengdu,China,College of Computer Science,Sichuan University,Chengdu,China
Abstract:The dynamic memory management mechanism in C/C programming language is free and flexible, but when used by developer it is easy to introduce memory leaks which lead to performance degradation and even failure of system. In order to detect memory leak more effectively, a memory leak detection method based on bounded model checking for C program called MLD-CBMC was proposed. It took C/C program files as input, unwound the program and inserted memory leak properties, encoded the program constraints and properties into verification conditions using satisfiability modulo theory, then passed the verification conditions to a SMT solver. Thus it converted detecting memory leaks to solving satisfiability problems. By experiment and cooperation with other bounded model checking tools, MLD-CBMC shows its feasibility and effectiveness.
Keywords:C/C    program  Memory Leak  Bounded Model Checking  Satisfiability Modulo Theories
点击此处可从《计算机应用研究》浏览原始摘要信息
点击此处可从《计算机应用研究》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号