This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Memory leak in a shared library plugin


"Cason, Kenny" <kenny.cason@boeing.com> writes:

>   3) does not run from the command line so use of gdb and breakpoints is of little value

See gdb's attach command.


> Determine why the memory continuously increases (memory leak?) for
> Daemon A. If it's a memory leak is it in Daemon A or Plugin B.

Tough problem.  I think I would modify the heap allocation and free
routines in the plugin to log a message.  Then with some scripting you
could perhaps see if all allocated memory was freed during a typical
plugin call.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]