Artifacts Associated With Ticket 1705778fffffffffffffffffffffffffffffffff
Ticket change [bb4b432128] (rid 129460) by msofer on 2007-04-23 11:07:29:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
This ticket created temporarily as a holding place for the valgrind reports, until the different problems re assigned to the correct maintainer. Attached the error and leak reports. There are 14 different leaks and 18 different errors, where "different" means that they do not coincide in a stack trace of depth 10.
- foundin initialized to: "obsolete: 8.5a6"
- is_private initialized to: "0"
- priority initialized to: "9 Immediate"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "None"
- title initialized to: "valgrind error reports"
- type initialized to: "Bug"
Ticket change [9e921d25e5] (rid 96493) by msofer on 2007-04-23 18:07:29:
- icomment:
File Added - 226208: results.leaks
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "results.leaks" [7025c1104b] (rid 100429) by msofer on 2007-04-23 18:07:29.
Add attachment "results.errors" [3b5ae2479a] (rid 112729) by msofer on 2007-04-23 18:08:04.
Ticket change [137e91b177] (rid 124230) by msofer on 2007-04-23 18:08:06:
- icomment:
File Added - 226209: results.errors Logged In: YES user_id=148712 Originator: YES File Added: results.errors
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "results.full.gz" [2e38f5ce53] (rid 119189) by msofer on 2007-04-23 18:24:25.
Ticket change [f4357ebdcc] (rid 129870) by msofer on 2007-04-23 18:24:25:
- icomment:
File Added - 226210: results.full.gz
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [baf55ed152] (rid 129401) by msofer on 2007-04-23 18:24:26:
- icomment:
Logged In: YES user_id=148712 Originator: YES File Added: results.full.gz
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "valgrindScripts.tar.gz" [f338b86463] (rid 129665) by msofer on 2007-04-23 22:46:22.
Ticket change [dd62ee1d96] (rid 114659) by msofer on 2007-04-23 22:46:23:
- icomment:
File Added - 226248: valgrindScripts.tar.gz Logged In: YES user_id=148712 Originator: YES Attaching the scripts used to produce those files. File Added: valgrindScripts.tar.gz
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [f09a672b6d] (rid 109216) by msofer on 2007-04-24 00:52:56:
- icomment:
Logged In: YES user_id=148712 Originator: YES * generic/tclCompile.c (TclFreeCompileEnv): Tip 280's new fieldextCmdMapPtr was not being freed [Bug 1705778, leak #1].
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [5131df2770] (rid 126092) by kennykb on 2007-04-24 01:05:14:
- icomment:
Logged In: YES user_id=99768 Originator: NO I've committed HEAD fixes that resolve issues 15, 18, 20, 21, 22, 23, 25, 29, 30, 31, 32 in results.errors. I cannot reproduce issues 16, 17, 19, 24, 26, 27, 28 - all of which appear to be occurring inside ld.so.
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment:
Ticket change [a7edba0b72] (rid 98885) by andreas_kupries on 2007-04-24 01:23:45:
- icomment:
Logged In: YES user_id=75003 Originator: NO Miguel, the extCmdMapPtr leak is troublesome. The pointer is allocated in line 883, and while there was no code releasing it in "TclFreeCompileEnv" your change to it (line 997) should have no effect, this code should never be executed. Because in line 2200 the pointer is transfered to a different structure, the "lineBCPtr"-Tcl_HashTable in the Interp* structure. The pointer in the compile environment is set to NULL at that point. The lineBCPtr hash is allocated in line 390 of "tclBasic.c". Release of elements happens in either lines 1310ff of the same file, or in "TclCleanupByteCode", in file "tclCompile.c", line 785ff. These are the two places where extCmdMapPtr should be released, as part of the hash entry. The only way I can see extCmdMapPtr leaking is if the ByteCode of some Tcl code itself is not released.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [d3071e17a5] (rid 113623) by msofer on 2007-04-24 01:33:55:
- icomment:
Logged In: YES user_id=148712 Originator: YES Andreas: it was being leaked on error exit from Tcl_ExprObj (at line 824, before the transfer atline 844). The leak is really fixed now - at least as far as valgrind is concerned.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [d1d92fc547] (rid 113423) by andreas_kupries on 2007-04-24 01:53:03:
- icomment:
Logged In: YES user_id=75003 Originator: NO Ah. Reading over the code (tclExecute.c) I have to confirm. That is a path I had not seen. Thank you for finding and fixing it. The change you made definitely fixes that problem. Accepted.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [f509db30c1] (rid 130033) by kennykb on 2007-04-24 02:18:51:
- icomment:
Logged In: YES user_id=99768 Originator: NO Putative fixes for leaks #2, #4, and #13 committed.
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment:
Ticket change [a0ac01685a] (rid 96858) by kennykb on 2007-04-24 09:08:30:
- icomment:
Logged In: YES user_id=99768 Originator: NO One leak relates to the 'args' argument to a variadic procedure. The argument is not leaked consistently. In testing ioCmd.test, I discovered that the first test case leaking 'args' is ioCmd-21.8. The direct leak does not appear to be 'args', however; it's ==30055== 26 (24 direct, 2 indirect) bytes in 1 blocks are definitely lost in loss record 2 of 5 ==30055== at 0x401B6FE: malloc (vg_replace_malloc.c:149) ==30055== by 0x4042029: TclpAlloc (tclAlloc.c:710) ==30055== by 0x404C3D1: Tcl_Alloc (tclCkalloc.c:1019) ==30055== by 0x40BF8D4: TclRegisterLiteral (tclLiteral.c:348) ==30055== by 0x407F890: TclCompileTokens (tclCompile.c:1840) ==30055== by 0x406DB4B: TclCompileReturnCmd (tclCompCmds.c:3149) ==30055== by 0x407E1B3: TclCompileScript (tclCompile.c:1525) ==30055== by 0x407C669: TclSetByteCodeFromAny (tclCompile.c:493) ==30055== by 0x407C858: SetByteCodeFromAny (tclCompile.c:588) ==30055== by 0x40DCCAE: ProcCompileProc (tclProc.c:1781) ==30055== by 0x40DC117: ObjInterpProcEx (tclProc.c:1237) ==30055== by 0x40DC015: TclObjInterpProc (tclProc.c:1199) which is rather a different spot than what we've seen up to now. I suspect that there is a more subtle memory mismanagement issue that causes the apparent leak to be a Heisenbug.
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment:
Add attachment "results2.leaks" [59ca470b94] (rid 118029) by msofer on 2007-04-24 17:12:09.
Ticket change [381912c7e9] (rid 112149) by msofer on 2007-04-24 17:12:11:
- icomment:
File Added - 226364: results2.leaks Logged In: YES user_id=148712 Originator: YES Attached result2 from last night's run (missing kevin's overnight fixes, not all reports current I guess). All errors seem to be at the os level, and related to the way I am running the tests. I did mark the old leak numbers next to the new for reference. File Added: results2.leaks
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "results2.errors" [53a3e003d6] (rid 93793) by msofer on 2007-04-24 17:13:50.
Ticket change [0d5ad4fed0] (rid 114342) by msofer on 2007-04-24 17:13:50:
- icomment:
File Added - 226365: results2.errors Logged In: YES user_id=148712 Originator: YES File Added: results2.errors
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [fefa201db3] (rid 108681) by msofer on 2007-04-24 17:14:29:
- icomment:
File Added - 226366: results2.gz Logged In: YES user_id=148712 Originator: YES File Added: results2.gz
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "results2.gz" [59e80fc804] (rid 118048) by msofer on 2007-04-24 17:14:29.
Ticket change [d0832622c3] (rid 113197) by kennykb on 2007-04-24 22:42:06:
- icomment:
Logged In: YES user_id=99768 Originator: NO The test, 'namespace-7.7' reports the following leak: ==3773== 268 (264 direct, 4 indirect) bytes in 1 blocks are definitely lost in loss record 1,560 of 1,841 ==3773== at 0x401A846: malloc (vg_replace_malloc.c:149) ==3773== by 0x8134795: TclpAlloc (tclAlloc.c:710) ==3773== by 0x806BCF5: Tcl_Alloc (tclCkalloc.c:1019) ==3773== by 0x80E1DA1: Tcl_CreateNamespace (tclNamesp.c:813) ==3773== by 0x80621B0: Tcl_CreateInterp (tclBasic.c:443) ==3773== by 0x80C52D6: SlaveCreate (tclInterp.c:2146) ==3773== by 0x80C335D: Tcl_InterpObjCmd (tclInterp.c:700) ==3773== by 0x80659C6: TclEvalObjvInternal (tclBasic.c:3617) ==3773== by 0x8066947: TclEvalEx (tclBasic.c:4221) ==3773== by 0x8065DFC: Tcl_EvalEx (tclBasic.c:3892)
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment:
Add attachment "kevinleaks1.txt" [10de3115bc] (rid 95034) by kennykb on 2007-04-25 01:23:54.
Ticket change [24aef5e0b1] (rid 131150) by kennykb on 2007-04-25 01:23:54:
- icomment:
File Added - 226428: kevinleaks1.txt
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment:
Ticket change [412d6d2dfe] (rid 116146) by kennykb on 2007-04-25 01:23:55:
- icomment:
Logged In: YES user_id=99768 Originator: NO Uploaded another catalog of leaks, kevinleaks1.txt File Added: kevinleaks1.txt
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment:
Ticket change [d9646364d0] (rid 107604) by kennykb on 2007-04-25 01:30:05:
- icomment:
Logged In: YES user_id=99768 Originator: NO The latest changes to tclNamesp.c appear to fix K03 and K03a in kevinleaks1.tcl
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment:
Add attachment "kevinleaks3.txt" [1f74d091b3] (rid 91151) by kennykb on 2007-04-25 10:09:50.
Ticket change [ff54c19808] (rid 108737) by kennykb on 2007-04-25 10:09:50:
- icomment:
File Added - 226503: kevinleaks3.txt Logged In: YES user_id=99768 Originator: NO The 'kevinleaks3.txt' file is the latest round. It adds leaks detected in subprocesses of exec.test and tcltest.test. It also reflects that K03, K04, K05, K06, K07, K13, K14, and K17 have all been corrected. File Added: kevinleaks3.txt
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment:
Ticket change [d830a0c272] (rid 107395) by msofer on 2007-04-25 20:47:02:
- icomment:
Logged In: YES user_id=148712 Originator: YES (kevinleaks3.txt seems to repeat itself) [K15], [K15a] and [K21] (tclProc.c:1439) seem to point to Tcl_WrongNumArgs: the only place those objs are going before being decrRefCounted at line 1463.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "kevinleaks4.txt" [70a5a82f47] (rid 100523) by kennykb on 2007-04-26 06:03:27.
Ticket change [d9ccb53b86] (rid 107673) by kennykb on 2007-04-26 06:03:27:
- icomment:
File Added - 226656: kevinleaks4.txt Logged In: YES user_id=99768 Originator: NO List of leaks updated again. kevinleaks4.txt File Added: kevinleaks4.txt
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment:
Ticket change [c65eef1826] (rid 121751) by kennykb on 2007-05-02 00:03:28:
- closedate changed to: "2007-05-01T17:03:28"
- closer changed to: "kennykb"
- icomment:
Logged In: YES user_id=99768 Originator: NO Now that we are down to no errors and a manageable number of leaks, I'm closing this report and opening separate bugs to track the individual leaks that remain. Refer to Bugs 1710707, 1710709 and 1710710.
- login: "kennykb"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "kennykb"