Artifacts Associated With Ticket e484a8407cb9ec45
Ticket change [1e4e1f6bdb] (rid 173998) by sebres on 2019-08-04 22:38:51:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- 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> - foundin initialized to: ">= 8.5"
- is_private initialized to: "0"
- login: "sebres"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "sebres"
- subsystem initialized to: "25. Channel System"
- title initialized to:
pipe: time-related sporadic hangs in io/chan-io tests
- type initialized to: "Bug"
Ticket change [5f1d931f39] (rid 173999) by sebres on 2019-08-04 22:39:52:
- assignee changed to: "sebres"
- login: "sebres"
- mimetype: "text/plain"
Ticket change [dd960fffd5] (rid 174000) by fvogel on 2019-08-05 07:19:56:
- icomment:
I'm seeing a repeatable hang for (unmodified) chanio-29.34 on Windows, see [1adeb65446].
- login: "fvogel"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [f4c510ae9d] (rid 174017) by jan.nijtmans on 2019-08-12 07:32:46:
- 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.
- login: "jan.nijtmans"
- mimetype: "text/plain"
- icomment:
Ticket change [618aa576db] (rid 174246) by sebres on 2019-08-22 10:02:23:
- 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).
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [2c197bbc56] (rid 174300) by sebres on 2019-08-23 12:27:15:
- 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).
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [f5b56011d7] (rid 174301) by sebres on 2019-08-23 15:17:58:
- 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.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [11c8f2de61] (rid 257988) by serhiy.storchaka on 2026-10-14 10:29:15:
- 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.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- icomment: