Skip to content
Tcl Source Code History Of Ticket 1710710
Login

History Of Ticket 1710710

Artifacts Associated With Ticket 1710710

  1. Ticket change [a302997196] (rid 109989) by kennykb on 2007-05-01 17:00:59:

    1. assignee initialized to: "mistachkin"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Running valgrind on the Tcl test suite reveals numerous
      memory leaks in unload.test.  They appear to be the
      loaded module failing to clean up after itself;
      since programmers are likely to use its code as an
      example of writing an unloadable module, it should
      do a better job.
      
      valgrind log is attached.
      
      
      
    4. foundin initialized to: "obsolete: 8.5a6"
    5. is_private initialized to: "0"
    6. priority initialized to: "8"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "kennykb"
    10. subsystem initialized to: "40. Dynamic Loading"
    11. title initialized to: "Memory leaks in unload.test"
    12. type initialized to: "Bug"
  2. Ticket change [e9e5f1bcf7] (rid 104886) by kennykb on 2007-05-02 00:00:59:

    1. icomment:
      
      
      File Added - 227376: leakunload.txt
      
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  3. Add attachment "leakunload.txt" [14c73e77f2] (rid 124459) by kennykb on 2007-05-02 00:00:59.

  4. Ticket change [cb01cfdc32] (rid 95456) by mistachkin on 2007-05-02 05:45:59:

    1. icomment:
      Logged In: YES 
      user_id=113501
      Originator: NO
      
      
      The pkgua library is leaking the interpTokenMap hash table itself (by not calling Tcl_DeleteHashTable in PkguaFreeTokensHashTable); however, the Tcl_SetVar leaks appear to be false alarms.  The memory being leaked is not owned by the package and the variables in question are not referred to by the package except to append values to them.
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  5. Ticket change [83cd83835e] (rid 117439) by mistachkin on 2007-05-02 06:03:57:

    1. icomment:
      Logged In: YES 
      user_id=113501
      Originator: NO
      
      
      There does not seem to be any other place in the core that uses Tcl_SetVar2 with TCL_APPEND_VALUE.  The only place I see using TCL_APPEND_VALUE is in tclExecute.c with TclPtrSetVar.  Perhaps the string object allocated by Tcl_SetVar2 is always leaked if TCL_APPEND_VALUE is used?
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  6. Ticket change [3d7237fd72] (rid 121088) by msofer on 2007-05-02 07:32:54:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      There was indeed a refCount bug as mistachkin described; fix committed. 
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  7. Ticket change [b20c68f0cc] (rid 98268) by kennykb on 2007-05-03 04:04:22:

    1. assignee changed to: "msofer"
    2. icomment:
      Logged In: YES 
      user_id=99768
      Originator: YES
      
      Verified that the leaks are plugged; leaving this open in case the maintainer wants to add tclTest.c code to exercise this path (without dltest, we'd never have seen it).
      
      
    3. login: "kennykb"
    4. mimetype: "text/plain"
    5. priority changed to: "3 Low"
    6. username: "kennykb"
  8. Ticket change [368503fefa] (rid 107115) by dgp on 2007-05-11 01:50:37:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      I suspect this needs a backport
      for 8.4.15 ?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "8"
    5. username: "dgp"
  9. Ticket change [09f8c20559] (rid 113739) by msofer on 2007-09-09 06:38:07:

    1. closedate changed to: "2007-09-08T23:38:07"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      That was only a partial fix - TclPtrSetVar is a hairy monster wrt to the new value, and it remains one after this change. Tcl_SetVar2 needs to manage the refCount properly. 
      
      Reverting the old fix, replacing with new fix in HEAD, 8.4 already correct.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "msofer"