Solaris Developer Quiz January 31, 2007
Which of the following could be useful in finding memory leaks?a) mdb
b) dbx
c) libumem
d) All of the above.
The correct answer is d. All of the above.
The Modular Debugger ('mdb') is an extensible utility for low-level debugging and editing of a live operating system, operating system crash dumps, user processes, user process core dumps, and object files.
'dbx', part of the Sun Studio compiler and tools, is an interactive, source-level, command-line debugging tool. You can use it to run a program in a controlled manner and to inspect the state of a stopped program. You can use 'dbx' to debug an application written in C, C++, or Fortran. You can also, with some limitations, debug an application that is a mixture of Java code and C JNI(Jave Native Interface) code or C++ JNI code, including code developed with the Native Connector tool(NCT).
'libumen' is a port of the kernel memory allocator to the user level. The slab nomenclature denotes one or more virtual memory(VM) pages which are split into equal size buffers. The buffer contains the user's data and in addition can, depending on the environment settings, contain the debug information that will help the application developer find and repair memory management bugs.
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/27174/showart_465041.html
页:
[1]