[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: TSVNCache memory leaks

From: Stefan Fuhrmann <stefanfuhrmann_at_alice-dsl.de>
Date: Fri, 3 Apr 2009 16:36:16 +0200

Stefan Küng wrote:
> Stefan Fuhrmann wrote:
> > Stefan Küng wrote:
> >> Stefan Fuhrmann wrote:
> >>> * someone is writing to deleted data, possibly in
> >>> CDirectoryWatcher::CloseInfoMap
> >> I thought I fixed that just this afternoon?
> >> It happened the WorkerThread(): if GetQueuedCompletionStatus()
succeeds,
> >> the pdi variable could still point to already deleted memory. That's
why
> >> I added the check whether the pdi data is still in the watchInfoMap.
> >>
> >> But if you still get such debug exception, I guess then it's not
fixed
> >> yet :(
> >
> > It took some hours of analysis and frantic clicking
> > (to provoke the heap corruption) to identify and fix
> > the race-conditions.
>
> got one more done in r16030.

Hm. I don't think it is necessary to lock for the pdi access:
It is part of CDirWatchInfo, which is guaranteed to remain
valid until CleanupWatchInfo() is called.

> Should we merge these (your and mine) changes back to 1.6.x? I think we
> should.

Absolutely. But maybe we should defer the merger until
Monday or so - just in case something important broke.

-- Stefan^2.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=1532835

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-04-03 16:36:50 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.