Skip to content
Tcl Source Code View Ticket
Login

View Ticket

namespace ensemble problem

Closed / Works For Me2414149fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-12-10 16:23:01
I have a problem concerning memory leakage using namespace ensembles. There are some tests in incr Tcl which are using namespace ensembles and under certain circumstances there is something I would call a memory leakage. There is an ensemble which is not modified after creation. The test calls the same subcommand  of the ensemble several times. What I have found out is: in that special case there are 2 calls to MakeCachedEnsembleCommand which incr the refcount for ensembleCmd->realPrefixObj without a call to FreeEnsembleCmdRep in between (which happens normally and which decrements ensembleCmd->realPrefixObj  again). I don't understand the 2 calls to MakeCachedEnsembleCommand.

The problem can be reproduced with some test files from itcl tests (it's always the same problem, but only for some tests), If necessary, I can try to strip down  a test file to a smaller example.
wiede Ticket [2414149fff]: 1 change [History diff]2008-12-10 23:23:46
dkfplain2009-01-06 18:19:06
I'll need more information to hunt this, since I can't see how you can get the same intrep without going through the code (in MCEC) to unpick the old intrep.
dkfplain2009-03-24 23:09:08
I can't see how to make this happen without playing strange games. Without more info, will assume this is really an itcl bug.
sf-robotplain2009-04-08 09:20:30
allow_comments - 1

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.