Artifacts Associated With Ticket 80304238ac5310b2
Ticket change [931b6b9106] (rid 144993) by dgp on 2016-02-25 20:18:21:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
This script leaks 48 bytes: proc doit script { eval $script set index xx } doit {foreach index foo {}} This leak is what prevents me getting a clean valgrind of our release candidates because my system has an install of "nsf 2.0.0" and it has code like this in its pkgIndex.tcl file. This solves the mystery of why others see clean valgrind runs and I do not. - foundin initialized to: "trunk"
- is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "foreach memleak"
- type initialized to: "Bug"
Ticket change [b0d5786ded] (rid 144994) by dgp on 2016-02-26 04:10:37:
- icomment:
It appears that this code is a nasty way to create a circular reference, where each of 2 Tcl_Obj values holds a reference to the other as part of its intrep. This defeats the refCounting system, and the objects leak. The cross referencing comes between a "list" value with a single element which is a "localVarName" value with a cached localName (twoPtrValue.ptr1) which is the original list value.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [e5ae66fe9d] (rid 145008) by dgp on 2016-02-26 15:44:22:
- icomment:
See bug-80304238ac branch for candidate fix.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [dbe4b49b04] (rid 145030) by dgp on 2016-03-01 16:56:18:
- assignee changed to: "dgp"
- closedate changed to: "2457449.20576939"
- closer changed to: "dgp"
- icomment:
Fix merged to trunk. Same demo script does not leak in 8.5.19. Either no leak there, or no reliabale way to demo it (yet). Either way, doing nothing on 8.5 branch.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"