Skip to content
Tcl Source Code History Of Ticket 1157298fffffffff
Login

History Of Ticket 1157298fffffffff

Artifacts Associated With Ticket 1157298fffffffff

  1. Ticket change [8a180d37e5] (rid 127335) by kylebateman on 2005-03-05 15:18:38:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.4.7"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "kylebateman"
    9. subsystem initialized to: "41. Memory Allocation"
    10. title initialized to: "script demonstrates tk memory leak"
    11. type initialized to: "Bug"
  2. Add attachment "membug" [d7c58636ea] (rid 107320) by kylebateman on 2005-03-05 22:18:39.

  3. Ticket change [4f86327f55] (rid 125843) by kylebateman on 2005-03-05 22:18:39:

    1. icomment:
      
      
      File Added - 124276: membug
      
      
      
    2. login: "kylebateman"
    3. mimetype: "text/plain"
    4. username: "kylebateman"
  4. Ticket change [eee4cf1351] (rid 108897) by hobbs on 2005-03-09 01:56:57:

    1. assignee changed to: "jenglish"
  5. Ticket change [f4d1c52ade] (rid 129990) by hobbs on 2005-03-09 01:56:58:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      Didn't something similar come up before related to a
      specific XFree version?
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  6. Ticket change [64af5030d1] (rid 92808) by jenglish on 2005-03-09 02:17:50:

    1. closedate changed to: "2005-03-08T19:17:50"
    2. closer changed to: "jenglish"
    3. icomment:
      Logged In: YES 
      user_id=68433
      
      This is a duplicate of #918052 "Memory leak connected to
      X11, Tk and an XCursor theme".
      
      The leak is in the X server, not in Tk, although Tk CVS HEAD
      still triggers the leak.  It only shows up if certain
      "cursor themes" are in use.
      
      
    4. login: "jenglish"
    5. mimetype: "text/plain"
    6. resolution changed to: "Duplicate"
    7. status changed to: "Closed"
    8. username: "jenglish"
  7. Ticket change [5d3806038b] (rid 115419) by kylebateman on 2005-03-09 20:28:51:

    1. icomment:
      Logged In: YES 
      user_id=316877
      
      Hmm.  I don't really know what a "cursor theme" is (yet). 
      But I'm using stock Fedora 3.  Anyone know some cursor
      themes that are "safe"?
      
      Maybe people could work around this bug by installing the
      right theme for now.
      
      
    2. login: "kylebateman"
    3. mimetype: "text/plain"
    4. username: "kylebateman"
  8. Ticket change [9c96c01da2] (rid 96168) by kylebateman on 2005-03-10 11:30:32:

    1. icomment:
      Logged In: YES 
      user_id=316877
      
      OK, it looks like fedora 3 uses a cursor theme that is part
      of Redhat's overall Bluecurve theme.  It would be nice to
      disable that and test native X11 cursors, but I haven't
      figured out how to do that yet.  Anyone know how?
      
      I also tested the leak.c program provided in #918052.  This
      does produce a leak, but once the application dies, the X
      server goes back to its previous size.  With the test
      application I provided, the X server never shrinks--even
      after the app finishes or is killed.
      
      I also made a simple TK app as suggested in #918052
      consisting only of iterations of setting the cursor.  This
      program does indeed leak too and it leaves the X server big
      when it terminates.  The difference is:  If you then run it
      again with a smaller number of iterations, and let it
      terminate naturally, it will shrink the X server back down
      again.  Strange!
      
      I'll post this example here as membug2.
      
      
      
    2. login: "kylebateman"
    3. mimetype: "text/plain"
    4. username: "kylebateman"
  9. Ticket change [78360542c0] (rid 89916) by kylebateman on 2005-03-10 11:30:33:

    1. icomment:
      
      
      File Added - 124950: membug2
      
      
      
    2. login: "kylebateman"
    3. mimetype: "text/plain"
    4. username: "kylebateman"
  10. Add attachment "membug2" [6a8f6418b2] (rid 128178) by kylebateman on 2005-03-10 11:30:33.

  11. Ticket change [a78b0badaa] (rid 98820) by kylebateman on 2005-03-15 11:59:32:

    1. icomment:
      Logged In: YES 
      user_id=316877
      
      OK, here's a workaround that will stop the leak:
      
      cd /usr/share/icons/default
      mv index.theme index.theme.save
      
      This seems to disable the Xcursors extension, reverting X
      back to its native cursors.  
      
      I tried a number of other alternate cursor themes.  All I
      tried still showed nearly identical leak characteristics. 
      Disabling the extension altogether is the only way I have
      found to stop the leak.
      
      
      
    2. login: "kylebateman"
    3. mimetype: "text/plain"
    4. username: "kylebateman"