Skip to content
Tcl Source Code Artifact [2e0b723819]
Login

Artifact [2e0b723819]

Artifact 2e0b723819a8c0e21c6f8b7674daaea5ce74890a39449c7be5aa28910c91aaa2:

Ticket change [2e0b723819] - New ticket [f9764cd7a938fca3|f9764cd7a9] <i>tcl Tcl_CreateTimerHandler has flaws which may never invoker input function</i>. by anonymous on 2023-09-21 15:08:44.
D 2023-09-21T15:08:44.199
J assignee nobody
J closer nobody
J cmimetype text/x-markdown
J comment #\sSteps\sto\sreproduce\sthe\sproblem:\r\n\r\n\sCurrent\sdate:Thu\sSep\s21\s02:55:28\sPM\sUTC\s2023\r\n\sStep1:\scat\s<<\sEOF\s>\stest.sh\s\s\s#!/usr/bin/expect\r\n\r\n\s\ssleep\s10\r\n\r\n\s\sEOF\r\n\r\n\sStep2:\sdate\s-s\s"Thu\sSep\s14\s20:13:49\sCST\s2138"\s;\sexpect\s-d\stest.sh\s&\r\n\r\n\sStep3:\sdate\s-s\s"Thu\sSep\s14\s20:13:49\sCST\s2023"\r\n\r\n#\sExpected\sbehaviour\r\n\r\n'expect\s-d\stest.sh'\swill\sbe\sexecuted\safter\s10\sseconds.\r\n\r\n#\sReal\soutcome\r\n\r\n'expect\s-d\stest.sh'\snot\sexecuted\suntil\s7\sdays\slater\s(Sep\s14\sto\sSep\s21)\r\n\r\n#\sPossible\sfix\r\n\r\nI\sthink\sthis\sis\sbecuase\sexpect\ssoftware\suses\sTcl_CreateTimerHandler()function,\swhich\suse\sabsolutetime\sto\smeasure\show\smany\sseconds\sto\swait\sbefore\sinvoking\sfunction.\sAnd\sthe\samoung\sof\sseconds\sto\swait\scan\sbe\schanged\sby\smodifying\scurrent\sdate\sof\sOS\ssystem.\r\n\r\nQuestion\sis:\sis\sthis\san\sexpected\sbehavior\sof\sTCL?\sAnd\schange\sthe\sTcl_GetTime()\sfunction\sto\sretrieve\srelative\stime\sby\susing\sCLOCK_MONOTONIC
J foundin TCL\s8.6.8
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 7eb5a4a5a930a2650d5e6092d9ecc69e6a0101fd
J resolution None
J severity Important
J status Open
J submitter anonymous
J subsystem 55.\sOther\sTools
J title tcl\sTcl_CreateTimerHandler\shas\sflaws\swhich\smay\snever\sinvoker\sinput\sfunction
J type Bug
K f9764cd7a938fca3a91b087a6a5bd635cea1a216
U anonymous
Z be4c67ad6cf0745eec2584332a4c5be4