Edgewall Software

Ticket #6581 (closed defect: fixed)

Opened 12 months ago

Last modified 12 months ago

[PATCH] memory leak in svn_fs.py

Reported by: Daniel Wallin <daniel@…> Owned by: jruigrok
Priority: high Milestone: 0.11
Component: version control Version: devel
Severity: normal Keywords:
Cc:

Description (last modified by cboos) (diff)

There's a reference cycle between SubversionRepository and RealSubversionAuthorizer that isn't collectable because of the __del__ method on SubversionRepository. The attached patch fixes the problem.

Attachments

svn_fs.diff (492 bytes) - added by Daniel Wallin <daniel@…> 12 months ago.

Change History

Changed 12 months ago by Daniel Wallin <daniel@…>

Changed 12 months ago by cboos

  • priority changed from normal to high
  • description modified (diff)
  • milestone set to 0.11

Changed 12 months ago by jruigrok

Committed in r6385.

Only just saw that you changed the ticket Christian, sorry, was not trying to get in the way.

Changed 12 months ago by cboos

  • owner changed from cboos to jruigrok

Yeah, I was about to test it... I just have to update now instead of patching the file, so it's not really getting in the way ;-)

I'll report back my findings.

Changed 12 months ago by cboos

  • status changed from new to closed
  • resolution set to fixed

There are apparently no memory savings (no visible leak either) with or without, only high but stable memory usage, as usual.

When the repository gets explicitly close()d, this effectively frees the svn objects. The repository object itself might be leaked without the patch, but the impact of this is quite minor and I don't thinkg it explains the high memory usage we're seeing. But it's better to avoid that (probably very minor) leak anyway, so I'm closing the issue.

Anyway, for 0.12, the whole SvnAuthorizer stuff could be easily adapted to the security framework (no user visible changes, only an implementation detail).

Add/Change #6581 ([PATCH] memory leak in svn_fs.py)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jruigrok. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.