Artifacts Associated With Ticket ef34dd2457472b08
Ticket change [94619b51a8] (rid 135589) by pooryorick on 2013-11-14 15:41:51:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "8.6.1"
- is_private initialized to: "0"
- login: "pooryorick"
- priority initialized to: "5 Medium"
- private_contact initialized to: "de8592b799aee41baa90d5ffa003528d4b606ea0"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "pooryorick"
- subsystem initialized to: "04. Async Events"
- title initialized to: "fileevent writable starves bgerror"
- type initialized to: "Bug"
Ticket change [595ee94dbc] (rid 135590) by pooryorick on 2013-11-14 20:58:19:
- 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 - login: "pooryorick"
- mimetype: "text/plain"
- comment changed to:
Ticket change [a2a084e371] (rid 135592) by dgp on 2013-11-15 12:58:09:
- login: "dgp"
- mimetype: "text/plain"
- subsystem changed to: "02. Event Loops"
Ticket change [f80db57b1a] (rid 138587) by anonymous on 2014-07-06 20:42:21:
- closedate changed to: "2456845.36275289"
- closer changed to: "anonymous"
- 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.
- login: "anonymous"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- status changed to: "Closed"
Ticket change [791a013856] (rid 138588) by ferrieux on 2014-07-06 23:26:37:
- closedate changed to: "2456845.47682434"
- closer changed to: "ferrieux"
- icomment:
Right, but ... any hope to put a name behind "anonymous" ?
- login: "ferrieux"
- mimetype: "text/plain"
Ticket change [6c8d59475f] (rid 138639) by anonymous on 2014-07-10 19:19:17:
- closedate changed to: "2456849.30506701"
- closer changed to: "anonymous"
- icomment:
"anonymous" is Simon Bachmann... I tried to register but I keep getting "Connection was reset" errors...
- login: "anonymous"
- mimetype: "text/plain"