Skip to content
Tcl Source Code History Of Ticket e484a8407c
Login

History Of Ticket e484a8407c

Artifacts Associated With Ticket e484a8407c

  1. Ticket change [1e4e1f6bdb] (rid 173998) by sebres on 2019-08-04 22:38:51:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      Trying to fix all windows/mingw tests in travis, I found some sporadic hangs (io-27.6, io-29.32 etc), which are pretty reproducible if sleep times becomes reduced (<code>after 20</code> will be replaced with <code>after 1</code>).
      
      As one can see [https://travis-ci.org/sebres/tcl/builds/567003451|build # 567003451] is passed, and after some small changes the heisenbug is reproduced in all build jobs [https://travis-ci.org/sebres/tcl/builds/567076288|build # 567076288].
      
      The shorter the sleep intervals, the better it is reproducible.
      
      Here is the code to reproduce it in shell:
      <code><pre>
      package require tcltest
      namespace import -force ::tcltest::*
      tcltest::configure -match io-29.32
       
      proc ::tcltest::cleanupTestsHook {} {
        if {$::tcltest::numTests(Failed)} {error failed}
      }
      timerate {source tests/io.test} 10000
      </pre></code>
      
    5. foundin initialized to: ">= 8.5"
    6. is_private initialized to: "0"
    7. login: "sebres"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "sebres"
    13. subsystem initialized to: "25. Channel System"
    14. title initialized to:
      pipe: time-related sporadic hangs in io/chan-io tests
      
    15. type initialized to: "Bug"
  2. Ticket change [5f1d931f39] (rid 173999) by sebres on 2019-08-04 22:39:52:

    1. assignee changed to: "sebres"
    2. login: "sebres"
    3. mimetype: "text/plain"
  3. Ticket change [dd960fffd5] (rid 174000) by fvogel on 2019-08-05 07:19:56:

    1. icomment:
      I'm seeing a repeatable hang for (unmodified) chanio-29.34 on Windows, see [1adeb65446].
      
    2. login: "fvogel"
    3. mimetype: "text/x-fossil-wiki"
  4. Ticket change [f4c510ae9d] (rid 174017) by jan.nijtmans on 2019-08-12 07:32:46:

    1. icomment:
      Those test-case are marked knownMsvcBug now. That doesn't mean it's solved, but at least Travis builds don't fail any more for those test-cases, if they are the only ones failing: It should not block a release, since it's likely a long-time problem not a regression.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  5. Ticket change [618aa576db] (rid 174246) by sebres on 2019-08-22 10:02:23:

    1. icomment:
      just as an interim info: this is not reproducible at all with RFE [fdfbd5e10] (together with fix for [815e246806], but I think it is not really affected here), seems to be fixed in RFE using ChannelScheduledEvent (previously timer-event) with new prolongation handling (retarding).
      
    2. login: "sebres"
    3. mimetype: "text/x-fossil-wiki"
  6. Ticket change [2c197bbc56] (rid 174300) by sebres on 2019-08-23 12:27:15:

    1. icomment:
      Nope, reproduced the hang also (with RFE [fdfbd5e10]) testing that in VM...<br/>
      Just needed some more time (1h), possibly because the event-handling is several times faster there, so 1ms is "too" long (quasi same as not reduced "after 20" in original tcl-core).
      
    2. login: "sebres"
    3. mimetype: "text/x-fossil-wiki"
  7. Ticket change [f5b56011d7] (rid 174301) by sebres on 2019-08-23 15:17:58:

    1. icomment:
      Found it, branch [/timeline?r=core-8-5-branch-fix-1997007|core-8-5-branch-fix-1997007] with few small changes fixed it for win & mingw, so after fix (without RFE) got applied, I see no hangs anymore approximately within 1 hour testing (where it hung in at the latest in 10 seconds previously), so I'll rebase it to fossil and provide the fix soon.
      
    2. login: "sebres"
    3. mimetype: "text/x-fossil-wiki"
  8. Ticket change [11c8f2de61] (rid 257988) by serhiy.storchaka on 2026-10-14 10:29:15:

    1. icomment:
      The hangs do not reproduce on Windows 11 with 9.1 and 8.6, even with <code>after 1</code> in the child scripts (over 1400 runs of io-27.6, io-29.32, chan-io-27.6 and chan-io-29.32).
      
      With the shortened sleep the tests failed sporadically for another reason: they returned before the child closed the output file, so <code>file delete $path(output)</code> in the next test failed with "permission denied". The chan-io tests never ran at all: their constraint asyncPipeClose was mangled into "asyncPipeChan Close" when chanio.test was created.
      
      Proposed fix in branch [/timeline?r=tests-async-pipe-close|tests-async-pipe-close]: the tests wait for a marker file the child creates after closing the output file, and the chan-io constraint is fixed. 1200 runs on Windows without failures.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"