Skip to content
Tcl Source Code Artifact [9a6ec0f167]
Login

Artifact [9a6ec0f167]

Artifact 9a6ec0f1679e2d5e6d795ebacd84a255cbb0ad4b:

Ticket change [9a6ec0f167] - New ticket [2001201fffffffff|2001201fff] <i>Tcl_Exit() shouldn&#39;t call the full Tcl_Finalize() path</i>. by georgeps on 2008-06-23 20:53:24.
D 2008-06-23T20:53:24
J assignee andreas_kupries
J cmimetype text/plain
J comment Tcl_Exit()\soften\sresults\sin\ssegfaults\son\sexit,\swhen\smore\sthan\s1\sthread\sis\sbusy\sat\sthe\stime\sof\sa\sTcl_Exit().\s\sThe\sproblem\sis\sthat\sTcl_Finalize\scleans\sup\sthe\sstate\sused\sby\sactive\sthreads.\s\sThis\sproblem\shas\sexisted\sfor\sa\slong\stime.\s\sThe\scomments\sin\sTcl_Finalize\sindicate\sthe\sexpectation\sof\s1\sthread\s"there\sreally\sshould\sonly\sbe\sone\sthread\salive\sat\sthis\smoment."\n\nI\spropose\sthis\spossible\ssolution:\n1.\smove\sthe\sinvoking\sin\sTcl_Finalize\sof\sTcl\sexit\shandlers\sinto\sTclInvokeExitHandlers();\s\s\n\n2.\sTcl_Finalize\scan\scall\sTclInvokeExitHandlers()\s\s\n\n3.\sTcl_Exit\scalls\sTclInvokeExitHandlers()\sinstead\sof\sTcl_Finalize().\n\n\nTcl_Finalize\swill\sstill\swork\sfor\sthose\sthat\swish\sto\suse\sit,\sand\sTcl_Exit\swill\swork\sin\sthe\smultiple\sactive\sthreads\scase.
J foundin obsolete:\s8.6a0
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter georgeps
J subsystem 49.\sThreading
J title Tcl_Exit()\sshouldn't\scall\sthe\sfull\sTcl_Finalize()\spath
J type Bug
K 2001201fffffffffffffffffffffffffffffffff
U georgeps
Z c35eaf21aa34b13a01c0541919aff566