Re: Strange report from leaks



On Mar 2, 6:19 pm, Golden California Girls <gldncag...@xxxxxxxxxxx>
wrote:
Got a strange pair of reports from leaks.

Just wondering how it could be that a block of memory reported leaked could be
on the next check not be reported leaked in fact getting a zero blocks leaked.
Then later it reported a leak again.  I attached gdb and attaching gdb make the
leak go away!

Just wondering if anyone has seen this kind of behavior before.

Question is idle curiosity, my real leak problem is solved.

It was, in fact, not leaked but referenced in a way that your tool
could not detect. Since the tool detected no references, it reported
the block leaked. Later, when the reference the tool could not detect
was used in a way the tool could detect, the block was no longer
leaked.

As a silly proof-of-concept, consider this: You allocate a block. You
write that block's address to a file on disk, but do not have any
pointers in memory to it. Is the block now leaked? If no, how can the
tool tell? If yes, what happens when the address is read from disk --
is it still leaked?

DS
.



Relevant Pages

  • Re: menus in JS or CSS - pros? cons?
    ... So in theory, attaching event handlers to ... The theory that says 'all circular references including DOM nodes causes ... but it does not identify all leak scenarios. ...
    (comp.lang.javascript)
  • Re: IE6 memory leak - very fiddly
    ... You should not simply snip what is being referred to in the quoted text, ... references, many of them unnecessary, which are known to leak memory in IE ...
    (comp.lang.javascript)
  • Re: Memory leak in aspnet_wp.exe
    ... http://www.red-gate.com/code_profiling.htm (14 day free trial ought to be ... First you need to figure out if this is a managed or unmanaged leak. ... references to the same object all over the place (utility classes can often ... It did not send any responses for pending requests in ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: JetStress Available Mbytes
    ... Thanks for the reply - that doesn't tell me why JetStress causes memory to ... Disk sec/Read Avg. ... in the perfmon results pointing to anything other than a memory leak in ...
    (microsoft.public.exchange.setup)
  • Re: Corrupted OS on C: drive. Working OS on D: drive
    ... you're better off buying the larger disk and starting over. ... There are too many references to what is currently the D: drive to be able to change the partition its installed on. ... I put my WinXP installation disk ...
    (microsoft.public.windowsxp.security_admin)