Tcl Source Code

View Ticket
Login
Ticket UUID: 989093
Title: memory/Tcl_Obj leaks in HEAD
Type: Bug Version: obsolete: 8.5a3
Submitter: mistachkin Created on: 2004-07-11 22:47:54
Subsystem: None Assigned To: msofer
Priority: 6 Severity:
Status: Closed Last Modified: 2005-10-22 09:25:01
Resolution: Out of Date Closed By: msofer
    Closed on: 2005-10-22 02:25:01
Description:
Tracked down quite a few memory/Tcl_Obj leaks in the
latest HEAD.

List of leaks is attached.
User Comments: msofer added on 2005-10-22 09:25:01:
Logged In: YES 
user_id=148712

HEAD has changed a lot since this report; leak-hunting will
have to be redone before release.

msofer added on 2005-04-21 20:42:56:
Logged In: YES 
user_id=148712

Should re-valgrind HEAD soon ...

msofer added on 2004-07-12 17:20:15:

File Added - 93631: fullResults1.result

msofer added on 2004-07-12 17:19:20:

File Added - 93630: fullResults1.gz

msofer added on 2004-07-12 17:19:19:
Logged In: YES 
user_id=148712

Appending the full report of a valgrind run of the testsuite
(fullResults1), and an extract containing just the "real leaks".

msofer added on 2004-07-12 07:43:46:
Logged In: YES 
user_id=148712

FWIW (non-threaded, linux):

 valgrind --leak-check=yes --num-callers=10  
--show-reachable=yes ./tclsh  
 <valgrind output clipped>
 % rename exit ""
 % close stdin
 <valgrind output clipped>

shows no real leaks, and two "still reachable" allocs

mistachkin added on 2004-07-12 06:02:33:
Logged In: YES 
user_id=113501

Tests were performed on FreeBSD with a threaded debug build
using the following steps:

1. start tclsh via make shell
2. rename exit ""
3. memory onexit "path/to/memory.leaks"
4. close stdin

mistachkin added on 2004-07-12 05:48:19:

File Added - 93581: Tcl_Obj.leaks

mistachkin added on 2004-07-12 05:47:55:

File Added - 93580: memory.leaks

Attachments: