Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ae0e73366cf8915c7aa41a18352fdad4449de949
Ticket: 2004654fffffffffffffffffffffffffffffffff
head: package require foo leaks
User & Date: pointsman on 2008-06-28 00:39:15
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    With tcl head of 2008-06-28, the script 
    
    while 1 {
        interp create moo
        moo eval {catch {package require moo}}
        interp delete moo
    }
    
    constantly leak memory. The process grows slowly. There's  almost no danger to lock at it with top or any memory usage monitoring tool. Look at it a few seconds, to see it grow.
    
    That's not a problem of the package manager. The package manager just is implemented in such tcl code, that the leak is triggered. Unfortunately, it's not futher tracked down.
    
    Appended is the relevant part of the valgrind output after running the script
    
    package require foo
    
    (which is the core of the leaking script above).
    
    Requiring a package in scope, e.g. 
    
    package require tcltest
    
    does leak too.
    
    
  4. foundin changed to: "obsolete: 8.6a1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "pointsman"
  10. subsystem changed to: "39. Package Manager"
  11. title changed to: "head: package require foo leaks"
  12. type changed to: "Bug"