Font Size: a A A

Memory Leaks In Embedded Linux System

Posted on:2007-04-10Degree:MasterType:Thesis
Country:ChinaCandidate:H J QiFull Text:PDF
GTID:2208360182485250Subject:Control theory and control engineering
Abstract/Summary:PDF Full Text Request
In computer system, memory management is very important for operation system, and it is most complex part in computer operation system. For linux operation system, user program uses memory by GNU dynamic shared library providing functions call and operation system supporting. If memory leak takes place in program when it's running, it will cause very serious affection, even will cause system crash.This subject first introduces some information about ARM CPU. In order to get the return address of the dynamic memory management function call, it analyzes arm-linux stack and stack frame, and then analyzes memory management and virtual memory management mechanism about linux operation system, and starting with the operation which user program allocate and free memory. It decomposes the memory leak detection into two parts. One is microcosmic detect, another is subject detect. Microcosmic detect can capture particular information, and subject detect can judge whether one process have memory leak. Microcosmic detect source code will be compiled to a dynamic shared library which would replace glibc memory management functions, but allocation and free operation is executed in glibc's memory management function all the same.This subject improve some memory detection tools apply in debug period, and it's main work as follows.[1] Research memwatch, ccmalloc, dmalloc memory detect tools.[2] Use a method of preference load dynamic library to capture user program operation on memory.[3] Locate the source code line number where memory leak takes place.
Keywords/Search Tags:memory leak, ARM, dynamic shared library, stack, glibc
PDF Full Text Request
Related items