Artifacts Associated With Ticket 6f8bbbb34bf84bf0
Ticket change [18a8316dfb] (rid 254707) by stu on 2026-07-04 16:50:39:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
If the kqueue notifier is configured on OpenBSD, tests will hang. First test to hang is basic-26.1, if skipped then chan-16.9. checking for advanced notifier support... kqueue(2) : tests hang checking for advanced notifier support... none : tests pass, all the way through to the end
- foundin initialized to: "9.1b0"
- is_private initialized to: "0"
- login: "stu"
- priority initialized to: "5 Medium"
- private_contact initialized to: "702b65e835b7b4b4720d6e9d37fc582f82909394"
- resolution initialized to: "None"
- severity initialized to: "Critical"
- status initialized to: "Open"
- submitter initialized to: "stu"
- subsystem initialized to: "01. Notifier"
- title initialized to: "kqueue notifier hangs on OpenBSD"
- type initialized to: "Bug"
Ticket change [81880a1a7a] (rid 254708) by sebres on 2026-07-04 17:48:49:
- comment changed to:
If the kqueue notifier is configured on OpenBSD, tests will hang. First test to hang is basic-26.1, if skipped then chan-16.9. checking for advanced notifier support... kqueue(2) : tests hang checking for advanced notifier support... none : tests pass, all the way through to the end UPD: 9.1a1 looks good.
- icomment:
I could bet that it'd be the change of unix/tclKqueueNotfy.c from [def988e9cd676b5b]: <pre><code> - if (timePtr != NULL) { + timeout.tv_sec = timePtr->sec; + timeout.tv_usec = timePtr->usec; - if (time > 0) { + timeout.tv_sec = time / 1000000; + timeout.tv_usec = time % 1000000; </code></pre> because if time is negative for some reasons, it'd wait infinitely instead of leave waiting proc immediately. But <a href="http://paste.tclers.tk/6221">oldlaptop tested it</a> and it seems to hang further. However, I'm still sure it shall be rewritten anyway for backwards compatibility reasons (e. g. some extension may call Tcl_WaitForEvent with some negative value and behavior gets changed completely). - login: "sebres"
- mimetype: "text/x-fossil-wiki"
- comment changed to:
Ticket change [db9fcbf0d8] (rid 254711) by sebres on 2026-07-04 18:18:33:
- closedate changed to: "2461226.2628881251"
- closer changed to: "sebres"
- icomment:
Fixed in [6f8bbbb34bf84bf0]. Thx stu and oldlaptop!
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [04a4db48fc] (rid 254712) by stu on 2026-07-04 18:20:17:
- closer changed to: "nobody"
- icomment:
Tests pass with this patch, inspired by unix/tclEpollNotfy.c. Index: unix/tclKqueueNotfy.c --- unix/tclKqueueNotfy.c.orig +++ unix/tclKqueueNotfy.c @@ -640,7 +640,7 @@ TclpWaitForEvent( * for, we return with a negative result rather than blocking forever. */ - if (time > 0) { + if (time >= 0) { timeout.tv_sec = time / 1000000; timeout.tv_usec = time % 1000000; timeoutPtr = &timeout; - login: "stu"
- mimetype: "text/plain"
- resolution changed to: "None"
- status changed to: "Open"
Ticket change [2957848267] (rid 254713) by sebres on 2026-07-04 18:26:40:
- closedate changed to: "2461226.2685204861"
- closer changed to: "sebres"
- login: "sebres"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [4a19f74b1f] (rid 254768) by jan.nijtmans on 2026-07-07 15:57:10:
- closedate changed to: "2461229.1647007293"
- closer changed to: "jan.nijtmans"
- icomment: "Many thanks for this fix!"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"