Skip to content
Tcl Source Code History Of Ticket 7aa8fd34c4e8ed00
Login

History Of Ticket 7aa8fd34c4e8ed00

Artifacts Associated With Ticket 7aa8fd34c4e8ed00

  1. Ticket change [8c833ee4e9] (rid 258317) by serhiy.storchaka on 2026-10-16 21:46:10:

    1. cmimetype initialized to: "text/x-fossil-wiki"
    2. comment initialized to:
      On Linux (epoll notifier, 8.7 and later), a writable handler on a pipe whose reader has exited never fires: EPOLLERR is translated only to TCL_EXCEPTION, and the level-triggered event wakes epoll_wait() again at once, so the process spins at 100% CPU. A background flush to such a pipe never ends, and <nowiki>[close]</nowiki> reports no error although the data was lost.
      
      <verbatim>
      set f [open |[list [info nameofexecutable] exit.tcl] w]   ;# child exits at once
      fconfigure $f -blocking 0
      puts -nonewline $f [string repeat x 300000]
      catch {flush $f}
      chan event $f writable {set w writable}
      after 3000 {set w timeout}
      vwait w   ;# 8.6: writable at once, close gives "broken pipe"; 9.x: timeout, close gives no error
      </verbatim>
      
      select() reports such a descriptor as writable. The code is from [858569fb04].
      
    3. foundin initialized to: "9.0.5, 9.1.0"
    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: "01. Notifier"
    11. title initialized to:
      epoll notifier spins and never reports writable after EPOLLERR
      
    12. type initialized to: "Bug"
  2. Ticket change [7ce8553e5e] (rid 258323) by serhiy.storchaka on 2026-10-16 21:49:57:

    1. icomment:
      Proposed fix in branch [/timeline?r=epoll-error-writable|epoll-error-writable]: report EPOLLERR as readable and writable, like select() does. Test io-78.1.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [d2c4d294fe] (rid 260849) by jan.nijtmans on 2026-10-30 09:40:46:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2461343.9033190627"
    3. closer changed to: "jan.nijtmans"
    4. comment changed to:
      On Linux (epoll notifier, 8.7 and later), a writable handler on a pipe whose reader has exited never fires: EPOLLERR is translated only to TCL_EXCEPTION, and the level-triggered event wakes epoll_wait() again at once, so the process spins at 100% CPU. A background flush to such a pipe never ends, and <nowiki>[close]</nowiki> reports no error although the data was lost.
      
      <verbatim>
      set f [open |[list [info nameofexecutable] exit.tcl] w]   ;# child exits at once
      fconfigure $f -blocking 0
      puts -nonewline $f [string repeat x 300000]
      catch {flush $f}
      chan event $f writable {set w writable}
      after 3000 {set w timeout}
      vwait w   ;# 8.6: writable at once, close gives "broken pipe"; 9.x: timeout, close gives no error
      </verbatim>
      
      select() reports such a descriptor as writable. The code is from [858569fb04].
      
    5. icomment:
      Fixed in [6d788a0eb3|trunk], and core-9-0-branch
      
      Many thanks!
      
    6. login: "jan.nijtmans"
    7. mimetype: "text/x-fossil-wiki"
    8. resolution changed to: "Fixed"
    9. status changed to: "Closed"
  4. Ticket change [481b38765a] (rid 261645) by serhiy.storchaka on 2026-11-14 12:20:38:

    1. icomment:
      io-78.1 failed intermittently on Windows (about 1 run in 10): a non-blocking close with a background flush still scheduled completes in the background and does not report "broken pipe". The test now switches the channel to blocking before closing it: [4fb793ca8f] on trunk, also cherry-picked to core-9-0-branch.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"