期刊文献+

Linux下可执行文件的动态内存检测设计与实现 被引量:3

Design and Implementation of Executable Files Dynamic Memory Test Tool on Linux NC Platform
在线阅读 下载PDF
导出
摘要 针对可执行文件的动态内存管理容易产生的错误,设计并实现了一个Linux平台下针对C/C++语言的动态内存检测模块DDMEM,使用自定义的ddmemMalloc()函数改写动态分配函数malloc(),实现了一个共享库ddmem.so,可以检测内存泄漏、内存写溢出、释放野指针和内存管理函数的不匹配等问题。给出了函数不匹配的实例检测以验证方法的有效性。并与同类有代表性的检测工具memwatch进行了性能比较,证明该检测模块比memwatch整体更优。 A dynamic memory detection module DDMEM for C/C++ languages on Linux platform is designed to solve the errors of dynamic memory management. The malloc() dynamic distribution function is replaced by customized ddmemMalloc(). And a share library DDMEM is achieved. The module can detect memory leak, write overflow, free wild pointer and mismatch using of memory functions of the executable files. Finally, an instance to test functions mismatch and comparing between the DDMEM and a representational test tool Memwatch is carded to validate the effectiveness of method and module.
出处 《计算机工程》 CAS CSCD 北大核心 2007年第1期74-76,79,共4页 Computer Engineering
基金 国家"863"计划基金资助项目(2003AA1Z2610)
关键词 动态内存检测 函数不匹配 内存泄漏 写溢出 野指针 Dynamic memory check Functions mismatch Memory leak Write overflow Wild pointer
  • 相关文献

参考文献8

  • 1Bush W R,Pincus J D.A Static Analyzer for Finding Dynamic Programming Errors[J].Software-practice and Experience,2000,30(7):775-802.
  • 2Hastings R,Joyce B.Purify:Fast Detection of Memory Leaks and Access Errors[C]//Proceedings of the Winter USENIX Conference,1992-12:125-136.
  • 3Manual of Valgrind-2.1.0[EB/OL].http://valgrind.kde.org/docs.html.
  • 4Documentation of memwatch-2.69[EB/OL].http://memwatch.sourc eforge.net/
  • 5徐文.一个动态内存管理模块的实现[J].单片机与嵌入式系统应用,2002(9):31-32. 被引量:4
  • 6Blunden B.Memory Management:Algorithms and Implementation in C/C++[M].Wordware Publishing,2003.
  • 7GDB:The GNU Project Debugger[EB/OL].http://www.gnu.org/s oftware/gdb/gdb.html.
  • 8Biere A.Introduction of Ccmalloc[EB/OL].http://www.inf.ethz.ch/per sonal/biere/projects/ccmalloc/.

二级参考文献1

  • 1[1]Kernighan Brian W. The C Programming language. 2th ed. Prentice Hall/Pearson

共引文献3

同被引文献21

  • 1何杭军,朱利,李青山,谢海江.基于Linux的动态内存检测工具的设计与实现[J].计算机工程,2005,31(21):69-71. 被引量:5
  • 2Bovet D P,Cesati M.深入理解Linux内核[M].陈莉君,译.北京:中国电力出版社,2008.
  • 3Gorman M.深入理解Linux虚拟内存管理[M].白洛,李俊奎,刘森林,译.北京:北京航空航天大学出版社,2006.
  • 4刘天华,陈枭,朱宏峰,刘骏.Linux可加载内核模块机制的研究与应用[J].微计算机信息,2007,23(20):48-49. 被引量:14
  • 5Clause J, Orso A. LEAKPOINT: Pinpointing the Causes of Memory Leaks[C]//Proceedings of the 32nd ACM/IEEE International Conference on Software Engineering. Cape Town, South Africa: IEEE Press, 2010.
  • 6Apache Source Code[Z]. (2012-05-14 ). http://www.apache. org/.
  • 7Mysql Source Code[Z]. (2012-05-14). http://www.mysql.com/.
  • 8Sqlite Source Code[Z]. (2012-05-14). http://www.sqlite.org/.
  • 9Leveldb Source Code[Z]. (2012-05-14). http://code.google.com /p/leveldb/downloads/list.
  • 10Redise Source Code[Z]. (2012-05-14) . http://code.google.com- /p/redis/downloads/list.

引证文献3

二级引证文献9

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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