Artifacts Associated With Ticket 1157298fffffffffffffffffffffffffffffffff
Ticket change [8a180d37e5] (rid 127335) by kylebateman on 2005-03-05 15:18:38:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- 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?
- foundin initialized to: "obsolete: 8.4.7"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "kylebateman"
- subsystem initialized to: "41. Memory Allocation"
- title initialized to: "script demonstrates tk memory leak"
- type initialized to: "Bug"
Add attachment "membug" [d7c58636ea] (rid 107320) by kylebateman on 2005-03-05 22:18:39.
Ticket change [4f86327f55] (rid 125843) by kylebateman on 2005-03-05 22:18:39:
- icomment:
File Added - 124276: membug
- login: "kylebateman"
- mimetype: "text/plain"
- username: "kylebateman"
- icomment:
Ticket change [eee4cf1351] (rid 108897) by hobbs on 2005-03-09 01:56:57:
- assignee changed to: "jenglish"
Ticket change [f4d1c52ade] (rid 129990) by hobbs on 2005-03-09 01:56:58:
- icomment:
Logged In: YES user_id=72656 Didn't something similar come up before related to a specific XFree version?
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [64af5030d1] (rid 92808) by jenglish on 2005-03-09 02:17:50:
- closedate changed to: "2005-03-08T19:17:50"
- closer changed to: "jenglish"
- 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.
- login: "jenglish"
- mimetype: "text/plain"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
- username: "jenglish"
Ticket change [5d3806038b] (rid 115419) by kylebateman on 2005-03-09 20:28:51:
- 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.
- login: "kylebateman"
- mimetype: "text/plain"
- username: "kylebateman"
- icomment:
Ticket change [9c96c01da2] (rid 96168) by kylebateman on 2005-03-10 11:30:32:
- 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.
- login: "kylebateman"
- mimetype: "text/plain"
- username: "kylebateman"
- icomment:
Ticket change [78360542c0] (rid 89916) by kylebateman on 2005-03-10 11:30:33:
- icomment:
File Added - 124950: membug2
- login: "kylebateman"
- mimetype: "text/plain"
- username: "kylebateman"
- icomment:
Add attachment "membug2" [6a8f6418b2] (rid 128178) by kylebateman on 2005-03-10 11:30:33.
Ticket change [a78b0badaa] (rid 98820) by kylebateman on 2005-03-15 11:59:32:
- 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.
- login: "kylebateman"
- mimetype: "text/plain"
- username: "kylebateman"
- icomment: