Tcl Source Code

View Ticket
Login
Ticket UUID: 587495
Title: memory leak in TEBC
Type: Bug Created on: 2002-07-27 19:27:53
Submitter: msofer Assigned to: msofer
Subsystem: 47. Bytecode Compiler Severity:
Priority: 9 Immediate Last modified: 2002-08-09 01:41:46
Status: Closed Closed by: msofer
Resolution: Fixed Closed on: 2002-08-08 18:41:46
Version: None
Description:
In today's head the proc 
  proc a num {while {[incr num -1]} {}}
leaks massively, while
  proc a num {for {set i $num} {$i} {incr i -1} {}}
doesn't. This is something new since 8.4b1
User Comments:
hobbs added on 2002-07-28 03:17:27:
Logged In: YES 
user_id=72656

please make sure that such tests are somewhere in the tcl 
test suite, even if they otherwise don't test anything.  It is the 
test suite I run over with purify to identify leaks.

msofer added on 2002-07-28 04:30:51:
Logged In: YES 
user_id=148712

Leak fixed in HEAD. Tests forthcoming (leaving open as
reminder).

msofer added on 2002-08-09 01:41:46:
Logged In: YES 
user_id=148712

This case is actually covered by entries in for.test,
if.test and while.test: purify shoud detect such leaks already.