Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8a180d37e5aac4c7e32ef6115ddd05cdd62ecd56
Ticket: 1157298fffffffffffffffffffffffffffffffff
script demonstrates tk memory leak
User & Date: kylebateman on 2005-03-05 15:18:38
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    This demonstration script shows that if you clear a
    listbox, change its cursor, reload it with new
    contents, and then change the cursor back, you can
    produce a memory leak.  
    
    This leak manifests itself not in the program space
    itself but in the size of the X server the program is
    running under.  In the simplest case, the program can
    be exited and, although the X server does not shrink,
    it does seem to use the memory again on the next run of
    the script.  (You need to press the Reload button more
    times than last time to see the server start growing
    again.)
    
    However in the case of a remote X server (X -query
    host), the problem is even worse:  The server never
    seems to get the memory back at all: i.e. each new run
    of the program will start the X server growing ever larger.
    
    I've tested this on:
    
    OS (Linux): Fedora 1 and Fedora 3
    X: XFree86 4.3.0 and xorg 6.8.1
    TCL/TK: 8.3.5 and 8.4.7
    
    Anyone willing/able to test this on current rev and see
    if it is still a problem?
    
    
  4. foundin changed to: "obsolete: 8.4.7"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "kylebateman"
  9. subsystem changed to: "41. Memory Allocation"
  10. title changed to: "script demonstrates tk memory leak"
  11. type changed to: "Bug"