Artifacts Associated With Ticket f9764cd7a9
Ticket change [2e0b723819] (rid 218585) by anonymous on 2023-09-21 15:08:44:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
# Steps to reproduce the problem: Current date:Thu Sep 21 02:55:28 PM UTC 2023 Step1: cat << EOF > test.sh #!/usr/bin/expect sleep 10 EOF Step2: date -s "Thu Sep 14 20:13:49 CST 2138" ; expect -d test.sh & Step3: date -s "Thu Sep 14 20:13:49 CST 2023" # Expected behaviour 'expect -d test.sh' will be executed after 10 seconds. # Real outcome 'expect -d test.sh' not executed until 7 days later (Sep 14 to Sep 21) # Possible fix I think this is becuase expect software uses Tcl_CreateTimerHandler()function, which use absolutetime to measure how many seconds to wait before invoking function. And the amoung of seconds to wait can be changed by modifying current date of OS system. Question is: is this an expected behavior of TCL? And change the Tcl_GetTime() function to retrieve relative time by using CLOCK_MONOTONIC
- foundin initialized to: "TCL 8.6.8"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "7eb5a4a5a930a2650d5e6092d9ecc69e6a0101fd"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "55. Other Tools"
- title initialized to:
tcl Tcl_CreateTimerHandler has flaws which may never invoker input function
- type initialized to: "Bug"