memory problem with libumem

Debuggers like dbx are quite powerful to diagnose memory problems (try help rtc inside dbx).

The "problems" with debuggers is that they are not always available on the host you are working on.

Plus when you have to diagnose a problem in a shared library , using a debugger may become a little bit heavy.


A nice alternative is the libumem on Solaris. You can get debugging information

about memory usage just by using a LD_PRELOAD statement.

here are pictures describing basic usage. For more information go to the

man page  libumem(3LIB). The first example demonstrate a leak and the second

one a wrong access problem

oups
oups



Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Emmanuel Jannetti blog

Search

Archives
« avril 2014
lun.mar.mer.jeu.ven.sam.dim.
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today