Skip to content
Tcl Source Code View Ticket
Login

View Ticket

memleaks in test suite

Closed / Fixed2024937fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-07-22 18:36:20
Really this is on HEAD, not 8.6a1.

==== compExpr-7.1 Memory Leak FAILED
==== Contents of test case:

    set end [getbytes]
    for {set i 0} {$i < 5} {incr i} {
        interp create slave
        slave eval expr 1+2+3+4+5+6+7+8+9+10+11+12+13
        interp delete slave
        set tmp $end
        set end [getbytes]
    }
    set leakedBytes [expr {$end - $tmp}]

---- Result was:
64
---- Result should have been (exact matching):
0
==== compExpr-7.1 FAILED

compile.test


==== compile-12.1 testing literal leak on interp delete FAILED
==== Contents of test case:

    set end [getbytes]
    for {set i 0} {$i < 5} {incr i} {
        interp create foo
        foo eval {
            namespace eval bar {}
        }
        interp delete foo
        set tmp $end
        set end [getbytes]
    }
    set leakedBytes [expr {$end - $tmp}]

---- Result was:
64
---- Result should have been (exact matching):
0
==== compile-12.1 FAILED


Both failures in one report since
I suspect they both trace to a common
root cause.
msoferplain2008-07-23 01:54:49
Logged In: YES 
user_id=148712
Originator: NO

Verified that the leaks were introduced by the TIP #280 commit of 2008-07-21
andreas_kupriesplain2008-07-23 05:52:16
Logged In: YES 
user_id=75003
Originator: NO

Fixed as part of the performance rewrite for deep recursion.
Log in (anonymous is fine) to add a comment.