Skip to content
Tcl Source Code View Ticket
Login

View Ticket

chan-io-70.1 leaks

Closed / Fixed3389733fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2011-08-10 17:50:16
$ valgrind --leak-check=yes --num-callers=10 ./tcltest ../tests/chanio.test -match chan-io-70.1
...
==14387== 230,855 (40 direct, 230,815 indirect) bytes in 1 blocks are definitely lost in loss record 901 of 901
==14387==    at 0x4A05E1C: malloc (vg_replace_malloc.c:195)
==14387==    by 0x4986C4: Tcl_Alloc (in /local/tmp/dgp/fossil/tcl-only/unix/tcltest)
==14387==    by 0x4F3263: AllocStringEntry (in /local/tmp/dgp/fossil/tcl-only/unix/tcltest)
==14387==    by 0x4F37C6: CreateHashEntry (in /local/tmp/dgp/fossil/tcl-only/unix/tcltest)
==14387==    by 0x43C657: Tcl_CreateNamespace (in /local/tmp/dgp/fossil/tcl-only/unix/tcltest)
==14387==    by 0x43C97C: NRNamespaceEvalCmd (in /local/tmp/dgp/fossil/tcl-only/unix/tcltest)
==14387==    by 0x48E3B5: TclNRRunCallbacks (in /local/tmp/dgp/fossil/tcl-only/unix/tcltest)
==14387==    by 0x493E73: TclEvalEx (in /local/tmp/dgp/fossil/tcl-only/unix/tcltest)
==14387==    by 0x4941A5: Tcl_EvalEx (in /local/tmp/dgp/fossil/tcl-only/unix/tcltest)
==14387==    by 0x494CFC: Tcl_Eval (in /local/tmp/dgp/fossil/tcl-only/unix/tcltest)
dgpplain2011-08-31 00:23:50
Test io-70.1 appears to suffer exactly the same leaks.
dgpplain2011-08-31 02:10:13
These matters are clouded by [threadReap]/[testthread exit]
leaks (see 3400944)
dgpplain2011-09-09 21:43:28
allow_comments - 1

Stopped using the leaky [testthread]/[threadReap]
in the test.  Started using commands of bundled
Thread package instead.  That's also leaky in the
trunk of Thread, but the finalize branch can be used
for valgrinding.
Log in (anonymous is fine) to add a comment.