Overview
| Artifact ID: | 8a180d37e5aac4c7e32ef6115ddd05cdd62ecd56 |
|---|---|
| Ticket: | 1157298fffffffffffffffffffffffffffffffff
script demonstrates tk memory leak |
| User & Date: | kylebateman on 2005-03-05 15:18:38 |
Changes
- assignee changed to: "hobbs"
- cmimetype changed to: "text/plain"
- 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?
- foundin changed to: "obsolete: 8.4.7"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "kylebateman"
- subsystem changed to: "41. Memory Allocation"
- title changed to: "script demonstrates tk memory leak"
- type changed to: "Bug"