Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-02-18
09:31 • Closed ticket [684756ffff]: compile-12.1 fails plus 7 other changes artifact: bdb0ae0904 user: msofer
2003-02-13
03:03 • Ticket [684756ffff]: 5 changes artifact: 3c26a857ff user: hobbs
2003-02-12
02:14 • Ticket [684756ffff]: 4 changes artifact: 88c100c2ef user: msofer
2003-02-11
17:30 • New ticket [684756ffff]. artifact: 7b0577d51e user: dgp

compile-12.1 fails

Closed / Fixed684756ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2003-02-11 17:30:12
During a `make test` with a
--enable-symbols=all build of Tcl:

==== compile-12.1 testing literal leak on interp delete
FAILED
---- Result was:
99
---- Result should have been (exact matching):
0
==== compile-12.1 FAILED

FWIW, this is on a Linux/Alpha system.
msoferplain2003-02-12 02:14:13
Logged In: YES 
user_id=148712

Confirmed on linux/i386: a 57 byte leak.

It is not the earlier literal-sharing bug; the leak seems to
be in interp creation/deletion, it appears in the simplified
test

     proc getbytes {} {
set lines [split [memory info] "\n"]
lindex [lindex $lines 3] 3
    }
    
    set end [getbytes]
    for {set i 0} {$i < 5} {incr i} {
interp create foo 
interp delete foo
set tmp $end
set end [getbytes]
    }    
    rename getbytes {}
    set leak [expr {$end - $tmp}]

(i.e., compile-12.1 minus the creation of a namespace in the
new interp prior to deletion).
hobbsplain2003-02-13 03:03:22
Logged In: YES 
user_id=72656

possible mem leak ... hi prio.
msoferplain2003-02-18 09:31:31
Logged In: YES 
user_id=148712

Fixed in HEAD: 
       * generic/tclBasic.c (TclRenameCommand):
'oldFullName' object was
not being freed on all function exits, causing a memory leak 
[Bug 684756]
Log in (anonymous is fine) to add a comment.