Skip to content
Tcl Source Code History Of Ticket 988703ffffffffff
Login

History Of Ticket 988703ffffffffff

Artifacts Associated With Ticket 988703ffffffffff

  1. Ticket change [c9f1f0a5dc] (rid 122376) by mistachkin on 2004-07-11 00:07:24:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      When compiled with threads and debugging, the
      tsdPtr->objThreadMap hash table and it's associated
      data is never freed.  This leak grows for each object
      allocated and for each thread used.
      
      A patch designed to fix this issue is attached.
      
      Please review and commit.
      
      Also, I believe this bug may exist in the
      core-8-4-branch as well.  Perhaps this bugfix should be
      backported?
      
      
    4. foundin initialized to: "obsolete: 8.5a2"
    5. priority initialized to: "9 Immediate"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "mistachkin"
    9. subsystem initialized to: "10. Objects"
    10. title initialized to:
      tsdPtr->objThreadMap and data never freed in tclObj.c
      
    11. type initialized to: "Bug"
  2. Ticket change [c0729a60ff] (rid 102407) by mistachkin on 2004-07-11 07:07:24:

    1. icomment:
      
      
      File Added - 93512: bugfix.diff
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  3. Ticket change [f0ebb0de41] (rid 109279) by msofer on 2004-07-14 04:41:43:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      Dropping the ball: I don't know about these issues.
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  4. Ticket change [519090eecc] (rid 126153) by mistachkin on 2004-07-14 06:41:53:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      
      Patch needs to be update, the call:
      
        TclFinalizeThreadObjDebugging();
      
      needs to be outside of the "if" block it is currently in.
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  5. Ticket change [61835e4080] (rid 92253) by mistachkin on 2004-07-14 09:07:09:

    1. icomment:
      
      
      File Deleted - 93512: 
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  6. Ticket change [76ce16d899] (rid 105644) by mistachkin on 2004-07-14 09:09:19:

    1. icomment:
      
      
      File Added - 93877: bug988703.diff
      
      Logged In: YES 
      user_id=113501
      
      
      Patch updated. Although, now that I think about it, I'm not
      sure what the "right thing" is in this case.  Can people
      create a new Tcl_Obj without hitting the code that
      initializes the thread storage for "tclEvent.c"?
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  7. Ticket change [31c4f8e54e] (rid 93490) by hobbs on 2004-11-18 01:11:24:

    1. priority changed to: "7 High"
  8. Ticket change [052cef0aa0] (rid 89010) by hobbs on 2005-05-31 09:17:28:

    1. assignee changed to: "vasiljevic"
  9. Ticket change [5a983e4620] (rid 118169) by vasiljevic on 2005-05-31 19:51:39:

    1. icomment:
      Logged In: YES 
      user_id=95086
      
      As I see, the core-8-4-branch does not track the debugging info
      about objects created in a thread, hence there is nothing to backport.
      
      Yes, it seems that this table is never garbage collected and this will
      result in memory leaks with debugging turned on. It is therefore
      correct to garbage-collect this table on thread exit. I do not think that
      we should ask ourselves about this being the "right thing". If the table
      is allocated, it must be garbage collected, regardless how or from whom
      it got created and/or under which circumstances. 
      
      I will have to study this in some more detail because this is the first
      time I'm looking at that code, It must have beed added lately and I 
      have obviously missed that.
      
      Do you see any particular hidden danger here. I do not at the first 
      glance.
      
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  10. Ticket change [898e0dfd0a] (rid 127249) by mistachkin on 2007-06-19 12:58:59:

    1. icomment:
      
      
      File Deleted - 93877: 
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  11. Ticket change [ad198d5f7f] (rid 101416) by mistachkin on 2007-06-19 13:33:19:

    1. assignee changed to: "hobbs"
    2. foundin changed to: "obsolete: 8.5a7"
    3. icomment:
      
      
      File Added - 233642: objThreadMap3.diff
      
      Logged In: YES 
      user_id=113501
      Originator: YES
      
      
      Here is the updated and tested patch against HEAD.  It corrects the leak(s) and enhances the objThreadMap to track file and line information per object when TCL_THREADS and TCL_MEM_DEBUG are enabled.  With this patch, the threaded debug build (on Windows) now leaks zero bytes.
      
      File Added: objThreadMap3.diff
      
      
    4. login: "mistachkin"
    5. mimetype: "text/plain"
    6. username: "mistachkin"
  12. Ticket change [465894d377] (rid 99502) by mistachkin on 2009-03-15 12:12:31:

    1. icomment:
      
      
      File Added - 317876: TclDbInitNewObj.zip
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  13. Add attachment "TclDbInitNewObj.zip" [0463af27d1] (rid 119994) by mistachkin on 2009-03-15 12:12:31.

  14. Ticket change [7ae659f233] (rid 90420) by mistachkin on 2009-03-15 12:12:33:

    1. assignee changed to: "mistachkin"
    2. icomment:
      
      
      File Deleted - 233642: 
      
      
      Updated patch to HEAD, cleaned up, and added the ability to dump the active
      objects.  The patch cannot be committed "as is" without a TIP because it
      adds an "objs" sub-command to [memory].  This functionality is extremely
      useful for debugging Tcl_Obj leaks; therefore, I'm willing to entertain
      alternative approaches on exposing it that could make it into 8.6.
      
      File Added: TclDbInitNewObj.zip
      
      
    3. login: "mistachkin"
    4. mimetype: "text/plain"
    5. username: "mistachkin"
  15. Ticket change [6bad32175b] (rid 128366) by mistachkin on 2009-03-15 12:36:14:

    1. foundin changed to: "obsolete: 8.6b1.1"
  16. Ticket change [ef0ed651b1] (rid 108925) by dkf on 2009-03-15 15:37:23:

    1. icomment:
      I could survive changing [memory] without a TIP; it's not a tool that production code will be using (too much of a performance penalty). Indeed, if we were doing it now I bet it would go in tcl::unsupported
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  17. Ticket change [e8dff8ce08] (rid 104719) by dkf on 2009-06-18 15:42:51:

    1. priority changed to: "8"
  18. Ticket change [5a89e0a410] (rid 118157) by dkf on 2009-06-18 16:15:35:

    1. icomment:
      There are a few spots where the patch doesn't brace arms of an 'if', but otherwise looks good.
      
      Don't forget to write a bit of documentation. Feel free to do that by writing a short paragraph in here; I'm happy to patch it into docs/memory.n for you.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "dkf"
  19. Ticket change [c1aaec2de5] (rid 111360) by dkf on 2009-06-18 16:15:51:

    1. resolution changed to: "Accepted"
  20. Ticket change [9e6cef8144] (rid 96470) by dkf on 2009-06-18 16:44:08:

    1. closedate changed to: "2009-06-18T09:44:08"
    2. closer changed to: "dkf"
    3. icomment:
      
      
      allow_comments - 1
      
      Committed; not bothering to backport.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"
  21. Ticket change [50f4b28d81] (rid 126060) by mistachkin on 2009-10-18 18:22:36:

    1. icomment:
      Now backported to core-8-5-branch.
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"