Skip to content
Tcl Source Code Artifact [8a180d37e5]
Login

Artifact [8a180d37e5]

Artifact 8a180d37e5aac4c7e32ef6115ddd05cdd62ecd56:

Ticket change [8a180d37e5] - New ticket [1157298fffffffff|1157298fff] <i>script demonstrates tk memory leak</i>. by kylebateman on 2005-03-05 15:18:38.
D 2005-03-05T15:18:38
J assignee hobbs
J cmimetype text/plain
J comment This\sdemonstration\sscript\sshows\sthat\sif\syou\sclear\sa\nlistbox,\schange\sits\scursor,\sreload\sit\swith\snew\ncontents,\sand\sthen\schange\sthe\scursor\sback,\syou\scan\nproduce\sa\smemory\sleak.\s\s\n\nThis\sleak\smanifests\sitself\snot\sin\sthe\sprogram\sspace\nitself\sbut\sin\sthe\ssize\sof\sthe\sX\sserver\sthe\sprogram\sis\nrunning\sunder.\s\sIn\sthe\ssimplest\scase,\sthe\sprogram\scan\nbe\sexited\sand,\salthough\sthe\sX\sserver\sdoes\snot\sshrink,\nit\sdoes\sseem\sto\suse\sthe\smemory\sagain\son\sthe\snext\srun\sof\nthe\sscript.\s\s(You\sneed\sto\spress\sthe\sReload\sbutton\smore\ntimes\sthan\slast\stime\sto\ssee\sthe\sserver\sstart\sgrowing\nagain.)\n\nHowever\sin\sthe\scase\sof\sa\sremote\sX\sserver\s(X\s-query\nhost),\sthe\sproblem\sis\seven\sworse:\s\sThe\sserver\snever\nseems\sto\sget\sthe\smemory\sback\sat\sall:\si.e.\seach\snew\srun\nof\sthe\sprogram\swill\sstart\sthe\sX\sserver\sgrowing\sever\slarger.\n\nI've\stested\sthis\son:\n\nOS\s(Linux):\sFedora\s1\sand\sFedora\s3\nX:\sXFree86\s4.3.0\sand\sxorg\s6.8.1\nTCL/TK:\s8.3.5\sand\s8.4.7\n\nAnyone\swilling/able\sto\stest\sthis\son\scurrent\srev\sand\ssee\nif\sit\sis\sstill\sa\sproblem?\n
J foundin obsolete:\s8.4.7
J priority 5\sMedium
J resolution None
J status Open
J submitter kylebateman
J subsystem 41.\sMemory\sAllocation
J title script\sdemonstrates\stk\smemory\sleak
J type Bug
K 1157298fffffffffffffffffffffffffffffffff
U kylebateman
Z 10275790a77096eb0657f2f0c6c98116