Artifacts Associated With Ticket 1504500fffffffffffffffffffffffffffffffff
Ticket change [68a71204f6] (rid 103107) by eriklns on 2006-06-11 21:57:07:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
When an arbitrary script is evaluated by a slave interpreter, memory leaks according to valgrind. Attached you find two files used to reproduce this leak: - memtest This executable shell script drives the test. It runs tclsh (under valgrind) with a scriptfile argument, redirecting stderr to valgrind.out - memtest.tcl The Tcl script evaluating an arbitrary script in a slave interp The file valgrind.out holds the findings of valgrind run on my computer, using Linux, Tcl8.4.13
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "eriklns"
- subsystem initialized to: "None"
- title initialized to: "slave interp evaluation leaks memory"
- type initialized to: "Bug"
Add attachment "memtest" [71c7dfac73] (rid 100742) by eriklns on 2006-06-12 04:57:08.
Ticket change [0c030ae695] (rid 114102) by eriklns on 2006-06-12 04:57:08:
- icomment:
File Added - 181334: memtest
- login: "eriklns"
- mimetype: "text/plain"
- username: "eriklns"
- icomment:
Add attachment "memtest.tcl" [fb52cb5288] (rid 92041) by eriklns on 2006-06-12 04:57:37.
Ticket change [a5d4719495] (rid 110440) by eriklns on 2006-06-12 04:57:37:
- icomment:
File Added - 181335: memtest.tcl
- login: "eriklns"
- mimetype: "text/plain"
- username: "eriklns"
- icomment:
Ticket change [c2589afc56] (rid 111468) by eriklns on 2006-06-12 04:58:24:
- icomment:
File Added - 181336: valgrind.out
- login: "eriklns"
- mimetype: "text/plain"
- username: "eriklns"
- icomment:
Add attachment "valgrind.out" [d4d038a6d1] (rid 123506) by eriklns on 2006-06-12 04:58:24.
Ticket change [51e94bb1eb] (rid 126213) by msofer on 2006-06-12 05:53:40:
- assignee changed to: "hobbs"
- closedate changed to: "2006-06-11T22:53:40"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 I do not see any *real* leak there. Tcl does leave some memory to be cleaned by the os on exit, and that is what you are seeing. In this case, the main interp's execution environment and the stdout channel. In order to test real leaks in slave interps, you may try to run the following in a shell, checking the memory reqs with top in a different shell: while 1 { interp create slave slave eval { # whatever you want here; note that writing # to the console will increase the corresponding # memory reqs until the scrollback buffer is full } interp delete slave } If there is a leak, the memory should keep increasing. It doesn't here. Assigning to hobbs for a second opinion. - login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Pending"
- subsystem changed to: "41. Memory Allocation"
- username: "msofer"
Ticket change [506c48714c] (rid 125960) by nobody on 2006-06-12 16:39:56:
- icomment:
Logged In: NO I was only focused on the leak which was categorized as "definitely lost" in valgrinds output (you attributed that one to the stdout channel). I tested it again under valgrind with some 10 cycles (as you indicated), and you are right: valgrind reports the same leak with the same size as in the case of a single cycle. So indeed, this must be a one time memory leak. I understand that this leak is purposely left for the OS to clean up ... OK, no more questions for me.
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [1a2314c4bc] (rid 122920) by eriklns on 2006-06-12 16:47:35:
- icomment:
Logged In: YES user_id=113903 Last comment was by Erik Leunissen not being logged in.
- login: "eriklns"
- mimetype: "text/plain"
- username: "eriklns"
- icomment:
Ticket change [6c987017c7] (rid 128539) by eriklns on 2006-06-12 16:47:36:
- status changed to: "Open"
Ticket change [4d7d1382f5] (rid 127058) by msofer on 2006-06-12 16:59:29:
- closedate changed to: "2006-06-12T09:59:29"
- closer changed to: "msofer"
- status changed to: "Pending"
Ticket change [abb76f7758] (rid 101164) by sf-robot on 2006-06-27 09:20:29:
- closedate changed to: "2006-06-27T02:20:29"
- closer changed to: "sf-robot"
- icomment:
Logged In: YES user_id=1312539 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
- login: "sf-robot"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "sf-robot"