期刊文献+

基于Qt的软件内存泄漏静态检测技术研究 被引量:2

Research on Static Detection Technology of Software Based Qt Memory Leak
下载PDF
导出
摘要 Qt继承了C++语言动态分配内存机制,保证了开发人员能根据实际需要灵活地使用内存,同时Qt也不可避免的要面对“内存泄漏”这个严重威胁软件安全的问题,虽然Qt采取了半自动化内存管理机制等措施,但不能从根本上解决问题;对此,提出了一种基于Qt的软件内存泄漏静态检测方法,该方法针对Qt的半自动化内存管理机制,通过静态分析被测对象中分配内存的代码识别出是否属于Qt自动管理的范围,从而准确地检测出内存泄漏和内存重复释放问题;并基于该检测方法设计了一种Qt内存泄漏自动检测工具,该工具能很大程度上提高测试效率。 Qt inherits C++ language dynamic allocating memory management mechanism, it ensures that the developers can flexible use memory according to the actual needs. Meanwhile Qt has to face the “memory leak” problem of serious threating to software security. Although Qt adopted measures such as semi-automatic memory management mechanism, it has not fundamentally solved the problem. Therefore, this paper proposes a static detection method of software based Qt memory leak. For this semi-automatic memory management mechanism of QT, this method can identify whether belongs to the scope of Qt automatic management by statically analyzing these codes where the tested object allocated memory. Thereby it can accurately detect memory leak and memory repeated release. And based on this detection method, an automatic Qt memory leak detection tool is designed. This tool can greatly improve the test efficiency.
作者 匡海燕 张玉中 刘仁千 李国杰 谷威 Kuang Haiyan;Zhang Yuzhong;Liu Renqian;Li Guojie;Gu Wei(XJ Electric Co., Ltd., Xuchang 461000, China)
出处 《计算机测量与控制》 2019年第7期36-39,共4页 Computer Measurement &Control
基金 国家电网许继集团重点项目(5292C0170039)
关键词 Qt内存管理机制 内存泄漏 内存重复释放 静态检测技术 Qt memory management mechanism memory leaks memory repeated release static detection technology
  • 相关文献

参考文献5

二级参考文献37

  • 1李全虎.交互界面开发工具-Qt[J].中国科技信息,2005(5):33-33. 被引量:6
  • 2吴民,涂奉生.内存泄漏的动态跟踪分析[J].计算机工程与应用,2005,41(14):18-20. 被引量:3
  • 3王卫东,屈洋.可视化图形界面中有关控件的属性类的研究[J].微机发展,2005,15(12):27-28. 被引量:4
  • 4Xie Yichen, Aiken Alex. Context- and path-sensitive memory leak detection//Proeeedings of the ESEC/FSE'05. Lisbon, Portugal, 2005:115-125.
  • 5Tsai T, Vaidyanathan K, Gross K. Low-overhead run-time memory leak detection and recovery//Proceedings of the PRDC'06. Riverside, USA, 2006:329-340.
  • 6Qin Feng, Lu Shan, Zhou Yuanyuan. SafeMem: Exploiting ECC-memory for detecting memory leaks and memory corruption during production runs//Proceedings of the HPCA ' 05. San Francisco, USA, 2005:291-302.
  • 7Bungale Prashanth P, Luk Chi-Keung. PinOS: A programmable framework for whole-system dynamic instrumentation//Proceedings of the ACM Conference on Virtual Execution Environments(VEEr07). San Diego, California, USA, 2007:137-147.
  • 8Waldspurger Carl A. Memory resource management in VMware ESX server//Proceedings of the 5th Symposium on Operating Systems Design and Implementation (OSDI' 02). Boston, USA, 2002:181-194.
  • 9Barham Pet al. Xen and the Art of virtualization//Proceedings of the 19th ACM Symposium on Operating System Principles(SOSP'03). New York, USA, 2003:164-177.
  • 10Neiger Get al. Intel virtualization technology: Hardware support for efficient processor virtualization. Intel Technology Journal, 2006, 10(3) : 167- 177.

共引文献29

同被引文献25

引证文献2

二级引证文献4

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部