|
2006-06-27
| ||
| 09:20 | • Closed ticket [1504500fff]: slave interp evaluation leaks memory plus 6 othe... artifact: abb76f7758 user: sf-robot | |
|
2006-06-12
| ||
| 16:59 | • Pending ticket [1504500fff]. artifact: 4d7d1382f5 user: msofer | |
| 16:47 | • Open ticket [1504500fff]. artifact: 6c987017c7 user: eriklns | |
| 16:47 | • Ticket [1504500fff]: 4 changes artifact: 1a2314c4bc user: eriklns | |
| 16:39 | • Ticket [1504500fff]: 4 changes artifact: 506c48714c user: nobody | |
| 05:53 | • Pending ticket [1504500fff]. artifact: 51e94bb1eb user: msofer | |
| 04:58 | • Ticket [1504500fff]: 4 changes artifact: c2589afc56 user: eriklns | |
| 04:58 | • Add attachment valgrind.out to ticket [1504500fff] artifact: d4d038a6d1 user: eriklns | |
| 04:57 | • Add attachment memtest.tcl to ticket [1504500fff] artifact: fb52cb5288 user: eriklns | |
| 04:57 | • Ticket [1504500fff] slave interp evaluation leaks memory status still Open w... artifact: a5d4719495 user: eriklns | |
| 04:57 | • Add attachment memtest to ticket [1504500fff] artifact: 71c7dfac73 user: eriklns | |
| 04:57 | • Ticket [1504500fff] slave interp evaluation leaks memory status still Open w... artifact: 0c030ae695 user: eriklns | |
|
2006-06-11
| ||
| 21:57 | • New ticket [1504500fff]. artifact: 68a71204f6 user: eriklns | |
slave interp evaluation leaks memory
Closed / Invalid1504500fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-06-11 21:57:07
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
eriklnsplain2006-06-12 04:57:08
File Added - 181334: memtest
eriklnsplain2006-06-12 04:57:37
File Added - 181335: memtest.tcl
eriklnsplain2006-06-12 04:58:24
File Added - 181336: valgrind.out
msoferplain2006-06-12 05:53:40
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.
nobodyplain2006-06-12 16:39:56
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.
eriklnsplain2006-06-12 16:47:35
Logged In: YES user_id=113903 Last comment was by Erik Leunissen not being logged in.
eriklns Open ticket [1504500fff].
[History diff]2006-06-12 16:47:36
msofer Pending ticket [1504500fff].
[History diff]2006-06-12 16:59:29
sf-robotplain2006-06-27 09:20:29
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).
Log in (anonymous is fine) to add a comment.
Attachments:
- valgrind.out [download] added by eriklns on 2006-06-12 04:58:24. [details]
- memtest.tcl [download] added by eriklns on 2006-06-12 04:57:37. [details]
- memtest [download] added by eriklns on 2006-06-12 04:57:08. [details]