Overview
| Artifact ID: | fa7e5a1886a40ff07df6d7c6efb9a7ddb29d96ba |
|---|---|
| Ticket: | 3389764fffffffffffffffffffffffffffffffff
fCmd-4.5 leaks |
| User & Date: | ferrieux on 2011-08-11 17:57:37 |
Changes
- icomment:
Continuing on this vein. Apparently the leak occurs when the "" shimmers from bytecode to path: package require tcltest proc bad s { puts [tcl::unsupported::representation $s] catch {file mkdir $s} puts [tcl::unsupported::representation $s] } set z "" tcltest::test blah Blah -setup { } -constraints { } -returnCodes error -body { #bad $::z bad "" } -result {can't create directory "": no such file or directory} Leaking case (bad ""): value is a bytecode with a refcount of 58, object pointer at 0x424bfb8, internal representation 0x43547c0:(nil), string representation "". value is a path with a refcount of 60, object pointer at 0x424bfb8, internal representation 0x52a1910:(nil), string representation "". Non-leaking case (bad $::z): value is a pure string with a refcount of 4, object pointer at 0x45918d0, string representation "". value is a path with a refcount of 6, object pointer at 0x45918d0, internal representation 0x52a0e88:(nil), string representation "". (note the +2 on refcount here is in both cases and is a red herring, due to errorstack conservation. can be avoided by sprinkling [catch {error foo}] in the code) - login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"