Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-07-23
22:24 • Closed ticket [2024938fff]: OO memleak in test suite plus 8 other changes artifact: cd93d3ef86 user: dgp
14:59 • Ticket [2024938fff]: 4 changes artifact: 5d976c4e49 user: dkf
05:51 • Ticket [2024938fff]: 4 changes artifact: ae6ad617ee user: andreas_kupries
04:56 • Ticket [2024938fff]: 5 changes artifact: 4726aff80f user: dkf
2008-07-22
18:37 • New ticket [2024938fff]. artifact: c605f5b11e user: dgp

OO memleak in test suite

Closed / Duplicate2024938fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-07-22 18:37:38
On Tcl HEAD, not 8.6a1:

==== oo-0.5 testing literal leak on interp delete FAILED
==== Contents of test case:

    leaktest {
        interp create foo
        foo eval {oo::object new}
        interp delete foo
    }

---- Result was:
64
---- Result should have been (exact matching):
0
==== oo-0.5 FAILED

This may be a duplicate of 2024937.
dkfplain2008-07-23 04:56:56
Logged In: YES 
user_id=79902
Originator: NO

I suspect you're right there; will not attempt to diagnose this bug further until that one is confirmed closed. Reassign this bug back to me if it is still an issue.
andreas_kupriesplain2008-07-23 05:51:38
Logged In: YES 
user_id=75003
Originator: NO

I believe my latest changes to #230 fix the leak.
This is not the Tcl testsuite we are talking about, right ?
But a separate TclOO testsuite ?
Now how do I run the TclOO testsuite ?
I just did a quick build against Tcl 8.5 (head), and get

---- errorInfo: invalid command name "oo::object"
    while executing
"oo::object new"
    invoked from within
"foo eval {oo::object new}"
    ("uplevel" body line 3)
dkfplain2008-07-23 14:59:42
Logged In: YES 
user_id=79902
Originator: NO

oo.test is run as part of Tcl's test suite.
dgpplain2008-07-23 22:24:31
Logged In: YES 
user_id=80530
Originator: YES


This little buggy went away.
Log in (anonymous is fine) to add a comment.