Skip to content
Tcl Source Code Artifact [97aca1b73d]
Login

Artifact [97aca1b73d]

Artifact 97aca1b73dc42a1076cc61d7675ffca1338455d7:

Ticket change [97aca1b73d] - New ticket [1710825fffffffff|1710825fff] <i>&quot;Still reachable&quot; memory leaks in Tcl I/O subsystem</i>. by kennykb on 2007-05-01 21:18:02.
D 2007-05-01T21:18:02
J assignee andreas_kupries
J cmimetype text/plain
J comment I'm\stracking\sdown\splaces\swhere\sTcl\sleaves\smemory\s"still\sreachable"\son\sexit.\s\sFor\sreference,\sI'm\sadding\n\nproc\sexit\sargs\s{}\n\nat\sthe\send\sof\stests/all.tcl,\sso\sthat\sthe\smain\sinterp\swill\sbe\sproperly\sdestroyed.\n\nI\sfind\stwo\smajor\ssources\sof\sleakage:\n\n(1)\sIn\sa\snon-threaded\sbuild,\sTSD\sblocks\sare\snever\n\s\s\s\sfreed.\s\sThis\sproblem\shappens\ssimply\sbecause\sthe\n\s\s\s\s#ifdef's\sin\sTclFinalizeSynchronization\sare\n\s\s\s\smisplaced.\n(2)\sTclFinalizeIOSubsystem\snever\sgets\spast\sclosing\sthe\n\s\s\s\sfirst\sstill-open\schannel,\sbecause\sby\sthe\stime\n\s\s\s\scontrol\sreturns\sfrom\sTcl_Close,\sthe\n\s\s\s\s'nextCSPtr'\sfield\sin\sthe\schannel\sstate\shas\n\s\s\s\sbeen\scleared.\n\nThe\sattach\spatch,\sfor\syour\sreview,\sappears\sto\sclose\nboth\sleaks\sand\sintroduces\sno\snew\sfailures\sin\s'make\stest'.\nSorry\sthat\sit's\sso\shard\sto\sread;\sthe\sindentation\schanges\nget\sin\sthe\sway\sa\sbit.
J foundin obsolete:\s8.5a6
J is_private 0
J priority 7\sHigh
J resolution None
J status Open
J submitter kennykb
J subsystem 25.\sChannel\sSystem
J title "Still\sreachable"\smemory\sleaks\sin\sTcl\sI/O\ssubsystem
J type Bug
K 1710825fffffffffffffffffffffffffffffffff
U kennykb
Z a84a7a6f5d8fdbb867b7f1299f6c9f74