Skip to content
Tcl Source Code History Of Ticket 8584043146
Login

History Of Ticket 8584043146

Artifacts Associated With Ticket 8584043146

  1. Ticket change [708f935835] (rid 258336) by serhiy.storchaka on 2026-10-16 22:01:31:

    1. cmimetype initialized to: "text/x-fossil-wiki"
    2. comment initialized to:
      In the retry loop of Tcl_Sleep() (win/tclWinNotify.c), vdelay.usec = desired.usec - now.usec is negative when the remaining time crosses a second boundary, and <nowiki>(unsigned long)vdelay.usec / 1000</nowiki> turns it into about 4294967 ms, so SleepEx() waits about 71.6 minutes. The loop runs when SleepEx() wakes before Tcl's clock reaches the target, which happens easily on virtual machines: a 9.0.5 tclsh and its children all hung in <nowiki>[after 8000]</nowiki> for more than 10 minutes on a Windows 11 VM.
      
      The cast came with [837dbec7cc]. 8.6 (signed arithmetic) and 9.1 (TIP 723) are not affected.
      
    3. foundin initialized to: "9.0.5"
    4. login: "serhiy.storchaka"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. severity initialized to: "Minor"
    8. status initialized to: "Open"
    9. submitter initialized to: "serhiy.storchaka"
    10. subsystem initialized to: "03. Timer Events"
    11. title initialized to:
      Windows: after and Tcl_Sleep can sleep about 72 minutes
      
    12. type initialized to: "Bug"
  2. Ticket change [1d50db5b31] (rid 258340) by serhiy.storchaka on 2026-10-16 22:03:36:

    1. icomment:
      Proposed fix in branch [/timeline?r=win-sleep-negative-usec|win-sleep-negative-usec] (from core-9-0-branch): compute the delay before casting it to DWORD. Tested on Windows 11 with a slowed-down Tcl clock: 9.0.5 hung in 4 of 8 runs, the fixed build in none.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [4a9052bba4] (rid 258382) by jan.nijtmans on 2026-10-17 06:51:49:

    1. assignee changed to: "aku"
    2. closer changed to: "nobody"
    3. comment changed to:
      In the retry loop of Tcl_Sleep() (win/tclWinNotify.c), vdelay.usec = desired.usec - now.usec is negative when the remaining time crosses a second boundary, and <nowiki>(unsigned long)vdelay.usec / 1000</nowiki> turns it into about 4294967 ms, so SleepEx() waits about 71.6 minutes. The loop runs when SleepEx() wakes before Tcl's clock reaches the target, which happens easily on virtual machines: a 9.0.5 tclsh and its children all hung in <nowiki>[after 8000]</nowiki> for more than 10 minutes on a Windows 11 VM.
      
      The cast came with [837dbec7cc]. 8.6 (signed arithmetic) and 9.1 (TIP 723) are not affected.
      
    4. icomment:
      +1
      
      Please go ahead
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
  4. Ticket change [2cfe80b848] (rid 258445) by serhiy.storchaka on 2026-10-17 07:25:45:

    1. icomment:
      Merged into 9.0 in [19fc013bb1]. Main is not affected (TIP 723).
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  5. Ticket change [ac9480d51d] (rid 259957) by serhiy.storchaka on 2026-10-22 17:19:27:

    1. closedate changed to: "2461330.8095555324"
    2. closer changed to: "serhiy.storchaka"
    3. login: "serhiy.storchaka"