Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e3c2bcd5b24e945a94684398672f135c890a9318
Ticket: 2414149fffffffffffffffffffffffffffffffff
namespace ensemble problem
User & Date: wiede on 2008-12-10 16:23:01
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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.
    
  4. foundin changed to: "obsolete: 8.6a3"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "wiede"
  10. subsystem changed to: "21. [namespace]"
  11. title changed to: "namespace ensemble problem"
  12. type changed to: "Bug"