Skip to content
Tcl Source Code History Of Ticket ef34dd2457472b08
Login

History Of Ticket ef34dd2457472b08

Artifacts Associated With Ticket ef34dd2457472b08

  1. Ticket change [94619b51a8] (rid 135589) by pooryorick on 2013-11-14 15:41:51:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      In the code below, both the readeble and writable event scripts are executed, but bgerror never runs because the queue is dominated by the fileevent events.
      
      ----
      
      #! /bin/env tclsh
      
      proc handler {arg} {
          return -code error "an error!"
      }
      
      lassign [chan pipe] pipeout pipein
      set stdout [open |[list echo hello]]
      fileevent $pipein writable {apply {{} {}}}
      fileevent $stdout readable [list handler $stdout]
      
      vwait exit
      
    5. foundin initialized to: "8.6.1"
    6. is_private initialized to: "0"
    7. login: "pooryorick"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "de8592b799aee41baa90d5ffa003528d4b606ea0"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "pooryorick"
    14. subsystem initialized to: "04. Async Events"
    15. title initialized to: "fileevent writable starves bgerror"
    16. type initialized to: "Bug"
  2. Ticket change [595ee94dbc] (rid 135590) by pooryorick on 2013-11-14 20:58:19:

    1. comment changed to:
      In the code below, both the readable and writable event scripts are executed, but bgerror never runs because the queue is dominated by the fileevent events.
      
      ----
      
      #! /bin/env tclsh
      
      proc handler {arg} {
          return -code error "an error!"
      }
      
      lassign [chan pipe] pipeout pipein
      set stdout [open |[list echo hello]]
      fileevent $pipein writable {apply {{} {}}}
      fileevent $stdout readable [list handler $stdout]
      
      vwait exit
      
    2. login: "pooryorick"
    3. mimetype: "text/plain"
  3. Ticket change [a2a084e371] (rid 135592) by dgp on 2013-11-15 12:58:09:

    1. login: "dgp"
    2. mimetype: "text/plain"
    3. subsystem changed to: "02. Event Loops"
  4. Ticket change [f80db57b1a] (rid 138587) by anonymous on 2014-07-06 20:42:21:

    1. closedate changed to: "2456845.36275289"
    2. closer changed to: "anonymous"
    3. icomment:
      Not a bug, works just like it should.
      
      from the manpage of bgerror(n):
      "When Tcl detects a background error, it  saves  information  about  the error  and invokes a handler command registered by interp bgerror later as an 
      idle event handler."
      ^^^^^^^^^^^^^^^^^^^
      
      ...and Tcl_DoOneEvent(3) states that idle callbacks are processed only once there are no other events to process.
      
      In the example, the event loop never gets a chance to do idle callbacks (and bgerror _is_ an idle callback) because there's always a [fileevent readable] event.
      
    4. login: "anonymous"
    5. mimetype: "text/plain"
    6. resolution changed to: "Rejected"
    7. status changed to: "Closed"
  5. Ticket change [791a013856] (rid 138588) by ferrieux on 2014-07-06 23:26:37:

    1. closedate changed to: "2456845.47682434"
    2. closer changed to: "ferrieux"
    3. icomment:
      Right, but ... any hope to put a name behind "anonymous" ?
      
    4. login: "ferrieux"
    5. mimetype: "text/plain"
  6. Ticket change [6c8d59475f] (rid 138639) by anonymous on 2014-07-10 19:19:17:

    1. closedate changed to: "2456849.30506701"
    2. closer changed to: "anonymous"
    3. icomment:
      "anonymous" is Simon Bachmann...
      I tried to register but I keep getting "Connection was reset" errors...
      
    4. login: "anonymous"
    5. mimetype: "text/plain"