|
From: Michael B A. <io...@gm...> - 2008-07-09 02:13:50
|
On 7/8/08, Howard Chu <hy...@sy...> wrote: > Michael B Allen wrote: > > > Hi, > > > > I have a leak in my Apache module but I can't tell where it is because > > there are no symbols in the backtraces. I've done this before > > successfully but I don't know why it's not working anymore and I would > > appreciate some tips. > > > > > > > > > From looking at the leak report it seems the symbols are discarded > > > > > before the backtraces are emitted. Is that the problem? > > > > I have to hit Ctrl-C to stop Apache so maybe that's triggering > > valgrind to prematurely discard the symbols? > > > > How can I track down this problem? > > > > I'm using valgrind-3.2.1-6.el5 on CentOS 5. > > > > Typically this happens because the main program has unloaded the shared > objects containing the relevant symbols in its shutdown/cleanup processing. > We do this in OpenLDAP slapd too, and I #if out the unload calls when I need > to do this kind of tracking. Is there any other workaround? Is it possible to somehow signal valgrind to generate the leak report at runtime as opposed to on shutdown? Otherwise I guess I'll have to create a custom build of the main program and comment out the dlclose() calls. That's annoying. Mike |