Skip to content
Tcl Source Code History Of Ticket 6f8bbbb34bf84bf0
Login

History Of Ticket 6f8bbbb34bf84bf0

Artifacts Associated With Ticket 6f8bbbb34bf84bf0

  1. Ticket change [18a8316dfb] (rid 254707) by stu on 2026-07-04 16:50:39:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. 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
      
    5. foundin initialized to: "9.1b0"
    6. is_private initialized to: "0"
    7. login: "stu"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "702b65e835b7b4b4720d6e9d37fc582f82909394"
    10. resolution initialized to: "None"
    11. severity initialized to: "Critical"
    12. status initialized to: "Open"
    13. submitter initialized to: "stu"
    14. subsystem initialized to: "01. Notifier"
    15. title initialized to: "kqueue notifier hangs on OpenBSD"
    16. type initialized to: "Bug"
  2. Ticket change [81880a1a7a] (rid 254708) by sebres on 2026-07-04 17:48:49:

    1. 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.
      
    2. 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).
      
    3. login: "sebres"
    4. mimetype: "text/x-fossil-wiki"
  3. Ticket change [db9fcbf0d8] (rid 254711) by sebres on 2026-07-04 18:18:33:

    1. closedate changed to: "2461226.2628881251"
    2. closer changed to: "sebres"
    3. icomment:
      Fixed in [6f8bbbb34bf84bf0]. Thx stu and oldlaptop!
      
    4. login: "sebres"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
  4. Ticket change [04a4db48fc] (rid 254712) by stu on 2026-07-04 18:20:17:

    1. closer changed to: "nobody"
    2. 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;
      
    3. login: "stu"
    4. mimetype: "text/plain"
    5. resolution changed to: "None"
    6. status changed to: "Open"
  5. Ticket change [2957848267] (rid 254713) by sebres on 2026-07-04 18:26:40:

    1. closedate changed to: "2461226.2685204861"
    2. closer changed to: "sebres"
    3. login: "sebres"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"
  6. Ticket change [4a19f74b1f] (rid 254768) by jan.nijtmans on 2026-07-07 15:57:10:

    1. closedate changed to: "2461229.1647007293"
    2. closer changed to: "jan.nijtmans"
    3. icomment: "Many thanks for this fix!"
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"