Artifacts Associated With Ticket 988703ffffffffffffffffffffffffffffffffff
Ticket change [c9f1f0a5dc] (rid 122376) by mistachkin on 2004-07-11 00:07:24:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- 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?
- foundin initialized to: "obsolete: 8.5a2"
- priority initialized to: "9 Immediate"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "mistachkin"
- subsystem initialized to: "10. Objects"
- title initialized to:
tsdPtr->objThreadMap and data never freed in tclObj.c
- type initialized to: "Bug"
Ticket change [c0729a60ff] (rid 102407) by mistachkin on 2004-07-11 07:07:24:
- icomment:
File Added - 93512: bugfix.diff
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [f0ebb0de41] (rid 109279) by msofer on 2004-07-14 04:41:43:
- assignee changed to: "hobbs"
- icomment:
Logged In: YES user_id=148712 Dropping the ball: I don't know about these issues.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
Ticket change [519090eecc] (rid 126153) by mistachkin on 2004-07-14 06:41:53:
- 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.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [61835e4080] (rid 92253) by mistachkin on 2004-07-14 09:07:09:
- icomment:
File Deleted - 93512:
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [76ce16d899] (rid 105644) by mistachkin on 2004-07-14 09:09:19:
- 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"?
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [31c4f8e54e] (rid 93490) by hobbs on 2004-11-18 01:11:24:
- priority changed to: "7 High"
Ticket change [052cef0aa0] (rid 89010) by hobbs on 2005-05-31 09:17:28:
- assignee changed to: "vasiljevic"
Ticket change [5a983e4620] (rid 118169) by vasiljevic on 2005-05-31 19:51:39:
- 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.
- login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"
- icomment:
Ticket change [898e0dfd0a] (rid 127249) by mistachkin on 2007-06-19 12:58:59:
- icomment:
File Deleted - 93877:
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [ad198d5f7f] (rid 101416) by mistachkin on 2007-06-19 13:33:19:
- assignee changed to: "hobbs"
- foundin changed to: "obsolete: 8.5a7"
- 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
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
Ticket change [465894d377] (rid 99502) by mistachkin on 2009-03-15 12:12:31:
- icomment:
File Added - 317876: TclDbInitNewObj.zip
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Add attachment "TclDbInitNewObj.zip" [0463af27d1] (rid 119994) by mistachkin on 2009-03-15 12:12:31.
Ticket change [7ae659f233] (rid 90420) by mistachkin on 2009-03-15 12:12:33:
- assignee changed to: "mistachkin"
- 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
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
Ticket change [6bad32175b] (rid 128366) by mistachkin on 2009-03-15 12:36:14:
- foundin changed to: "obsolete: 8.6b1.1"
Ticket change [ef0ed651b1] (rid 108925) by dkf on 2009-03-15 15:37:23:
- 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
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [e8dff8ce08] (rid 104719) by dkf on 2009-06-18 15:42:51:
- priority changed to: "8"
Ticket change [5a89e0a410] (rid 118157) by dkf on 2009-06-18 16:15:35:
- 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.
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "dkf"
- icomment:
Ticket change [c1aaec2de5] (rid 111360) by dkf on 2009-06-18 16:15:51:
- resolution changed to: "Accepted"
Ticket change [9e6cef8144] (rid 96470) by dkf on 2009-06-18 16:44:08:
- closedate changed to: "2009-06-18T09:44:08"
- closer changed to: "dkf"
- icomment:
allow_comments - 1 Committed; not bothering to backport.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"
Ticket change [50f4b28d81] (rid 126060) by mistachkin on 2009-10-18 18:22:36:
- icomment:
Now backported to core-8-5-branch.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment: