Artifacts Associated With Ticket 6a2d339e50
Ticket change [290444aa3c] (rid 138765) by dgp on 2014-07-15 15:59:53:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
==31159== 213 (48 direct, 165 indirect) bytes in 1 blocks are definitely lost in loss record 6 of 8 ==31159== at 0x4A0610C: malloc (vg_replace_malloc.c:195) ==31159== by 0x5D1532: TclpAlloc (tclAlloc.c:699) ==31159== by 0x43D1AE: Tcl_Alloc (tclCkalloc.c:1059) ==31159== by 0x548586: TclCreateLiteral (tclLiteral.c:236) ==31159== by 0x54898F: TclRegisterLiteral (tclLiteral.c:434) ==31159== by 0x4DA4FA: TclCompileInvocation (tclCompile.c:1838) ==31159== by 0x4DB701: CompileCommandTokens (tclCompile.c:2083) ==31159== by 0x4DBB03: TclCompileScript (tclCompile.c:2202)
- foundin initialized to: "trunk"
- is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "33. Safe Base"
- title initialized to: "memleaks in safe-13.2, safe-13.4"
- type initialized to: "Bug"
Ticket change [95f4f7041a] (rid 138787) by dgp on 2014-07-16 15:08:45:
- icomment:
After spinning my wheel for far too long trying to locate the leak, I decided to bisect, looking for the origins. The leak in test safe-13.2 begins happening with checkin http://core.tcl.tk/tcl/info/4492d3b64521aaeedca4b92712248dc19a5b3c40 Was not expecting that.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [7e644c8de8] (rid 138789) by dgp on 2014-07-16 15:36:21:
- icomment:
Shifting the search onto the dkf-bytecode-8.6 branch, I track down the leak origin to checkin http://core.tcl.tk/tcl/info/abb9522f549a8304020c2e149fd7f934bfa54478 "Improved general case of [string replace] implementation." Now to look where the light is good....
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [a717b0d076] (rid 138790) by dgp on 2014-07-16 15:47:10:
- icomment:
Lines 5220-5273 of tclExecute.c in that checkin lack any decr ref count on the value3Ptr to account for its removal from the stack. Checking to see if any other test covers that code...
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [c8e0eae389] (rid 138791) by dgp on 2014-07-16 15:54:47:
- icomment:
Yes, stringObj-6.9. And as expected valgrind see the leak there too.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [68aebfef3d] (rid 138794) by dgp on 2014-07-16 15:59:34:
- assignee changed to: "dgp"
- closedate changed to: "2456855.16636863"
- closer changed to: "dgp"
- icomment: "fixed on trunk."
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- subsystem changed to: "47. Bytecode Compiler"