Skip to content
Tcl Source Code History Of Ticket 67a5eabbd3
Login

History Of Ticket 67a5eabbd3

Artifacts Associated With Ticket 67a5eabbd3

  1. Ticket change [c68462dbc9] (rid 148320) by pooryorick on 2016-08-15 10:31:45:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      The following script results in an error to the effect that the coroutine is
      already running.
      
      <code><verbatim>
      #! /bin/env tclsh
      
      interp bgerror {} [list apply {{res opts} {
          puts stderr [dict get $opts -errorinfo]
          exit 1
      }}]
      
      namespace eval schan {
          namespace ensemble create
          namespace export *
          proc open {} {
              variable chans
              set chan [chan create read [namespace current]]
      
          }
          proc initialize {chan mode} {
              return [list initialize finalize read watch]
          }
      
          proc read {chan count} {
          }
      
          proc watch {chan eventspec} {
              chan postevent $chan $eventspec
          }
      }
      
      coroutine c1 apply [list {} {
          set chan [schan::open]
          chan event $chan readable [list [info coroutine]]
          yield
          puts thiswillnotappear
      }] 
      vwait ::forever
      </verbatim></code>
      
    5. foundin initialized to: "8.6.6"
    6. is_private initialized to: "0"
    7. login: "pooryorick"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "e476148cded301ffff84bcdc432536dc0c949e88"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "pooryorick"
    14. subsystem initialized to: "60. NRE and coroutines"
    15. title initialized to:
      refchan, coroutine, and postevent from the "watch" proc
      
    16. type initialized to: "Bug"
  2. Ticket change [69ab5e522b] (rid 148321) by aspect on 2016-08-15 11:53:46:

    1. icomment:
      The stack trace of the error is:
       c1
        chan event
         schan::watch
          c1 (boom!)
      
      ie, yield is not even reached.
      
      schan::watch should not immediately call [chan postevent].  Wrapping that in [after 0] removes the crash, but I'm not sure this is correct behaviour for postevent either.
      
      See tcllib or http://chiselapp.com/user/aspect/repository/tcl-hacks/artifact/6cb89e9c9ebb6800 for other strategies (but I now see potentially a similar bug in the chiselapp link ..)
      
    2. login: "aspect"
    3. mimetype: "text/plain"
  3. Ticket change [68f70483aa] (rid 148322) by ferrieux on 2016-08-15 11:58:39:

    1. icomment:
      Interesting: it's not even a vanilla error, it's uncatchable !
      It sorta reaches the default "spit out errorInfo and exit(1)", regardless of any [catch] range.
      Digging...
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
  4. Ticket change [3b3d6f403f] (rid 148323) by ferrieux on 2016-08-15 12:03:52:

    1. icomment:
      Hum, never mind, simple interp bgerror playing its role, sorry.
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
  5. Ticket change [ea38695639] (rid 148631) by pooryorick on 2016-09-06 20:36:03:

    1. icomment:
      This happens because <code>chan postevent</code> calls <code>Tcl_NotifyChannel()</code> instead of scheduling an event, as explained in [http://core.tcl.tk/tcl/tktview/ef28eb1f15167156c898|ef28eb1f15167156c898].
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "pooryorick"
  6. Ticket change [fd3dd8909f] (rid 148632) by ferrieux on 2016-09-06 23:43:17:

    1. icomment:
      FWIW, some time ago, async fcopy suffered from a similar "premature callback" issue: in some circumstances, where the copy was provably complete, the completion callback fired from within fcopy instead of from the event loop  (despite the async flag).
      
      It was Obviously Wrong, and fixed. I'm tempted to follow your suggestion and propose the same here, though I don't know the details of the refchan enough to be sure of the analogy.
      
      Maybe Andreas could chime in.
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
  7. Ticket change [fefa233cb0] (rid 149135) by dkf on 2016-10-09 15:47:36:

    1. assignee changed to: "aku"
    2. login: "dkf"
    3. mimetype: "text/plain"
  8. Ticket change [ade7a3766c] (rid 171145) by pooryorick on 2019-04-23 13:02:56:

    1. icomment:
      Fixed in [e066e24f36f67a8d] by using <code>Tcl_CreateTimerHandler()</code> to
      schedule the call to <code>Tcl_NotifyChannel()</code>.
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  9. Ticket change [9c1e691b06] (rid 171172) by pooryorick on 2019-04-24 04:53:03:

    1. login: "pooryorick"
    2. mimetype: "text/plain"
    3. status changed to: "Pending"
  10. Ticket change [bd098f6728] (rid 171179) by pooryorick on 2019-04-26 20:42:29:

    1. closedate changed to: "2458600.3628462"
    2. closer changed to: "pooryorick"
    3. login: "pooryorick"
    4. mimetype: "text/plain"
    5. status changed to: "Closed"
  11. Ticket change [c19eb03a7a] (rid 171203) by pooryorick on 2019-04-29 09:07:06:

    1. closedate changed to: "2458602.87993721"
    2. login: "pooryorick"
    3. mimetype: "text/plain"
    4. resolution changed to: "Fixed"
  12. Ticket change [f2c6446ced] (rid 194787) by jan.nijtmans on 2021-06-15 14:58:25:

    1. assignee changed to: "pooryorick"
    2. closer changed to: "nobody"
    3. icomment:
      Backed out because of [18f4a94d03]. Therefore re-opening this one.
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "None"
    7. status changed to: "Pending"
  13. Ticket change [46c4cc07ea] (rid 194807) by dgp on 2021-06-16 17:15:04:

    1. icomment:
      
      Can the patch be described accurately as changing to operations
      of the [chan postevent] command from synchronous to asynchronous?
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  14. Ticket change [472da83a75] (rid 194809) by pooryorick on 2021-06-16 21:24:47:

    1. icomment:
      Yes, that's an accurate summary, as the call to Tcl_NotifyChannel is moved into a timer event handler.
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  15. Ticket change [1804967dd5] (rid 194914) by pooryorick on 2021-06-20 05:14:43:

    1. login: "pooryorick"
    2. mimetype: "text/plain"
    3. resolution changed to: "Fixed"
  16. Ticket change [71eea3d9e2] (rid 194915) by pooryorick on 2021-06-20 05:15:04:

    1. closedate changed to: "2459385.7188058"
    2. closer changed to: "pooryorick"
    3. login: "pooryorick"
    4. mimetype: "text/plain"
    5. status changed to: "Closed"
  17. Ticket change [8fe838e082] (rid 226959) by jan.nijtmans on 2024-05-29 09:49:25:

    1. closedate changed to: "2460459.90932538"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      This 'bug-fix' is backed-out, see [https://core.tcl-lang.org/tcl/wiki?name=Rationale+for+rollback+of+refchan+event+generation+in+core|here] for the full motivation. Backout approved by the TCT.
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Invalid"
  18. Ticket change [8d1f0ac60b] (rid 227057) by pooryorick on 2024-05-31 10:13:38:

    1. closedate changed to: "2460461.92613561"
    2. closer changed to: "pooryorick"
    3. login: "pooryorick"
    4. mimetype: "text/plain"
    5. resolution changed to: "None"
  19. Ticket change [9a8c853af8] (rid 227058) by pooryorick on 2024-05-31 10:25:33:

    1. closer changed to: "nobody"
    2. login: "pooryorick"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
  20. Ticket change [209cf68729] (rid 227072) by jan.nijtmans on 2024-05-31 11:10:36:

    1. assignee changed to: "apnadkarni"
    2. closedate changed to: "2460461.96570495"
    3. closer changed to: "jan.nijtmans"
    4. icomment: "Dup of [de232b49f2]"
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Duplicate"
    8. status changed to: "Closed"
  21. Ticket change [d63d420ceb] (rid 227074) by pooryorick on 2024-05-31 11:20:36:

    1. closer changed to: "nobody"
    2. icomment:
      It is not clear to me that this is a duplicate of [d3232b49f2], so I'm reopening it.
      
    3. login: "pooryorick"
    4. mimetype: "text/x-fossil-wiki"
    5. resolution changed to: "None"
    6. status changed to: "Open"
  22. Ticket change [33d15a5c58] (rid 227109) by oehhar on 2024-06-02 17:04:37:

    1. closedate changed to: "2460464.21154088"
    2. closer changed to: "oehhar"
    3. icomment:
      Sorry Nathan !
      As informed on the core list:
      
         *   This is a RFE, not a bug. It will not work with the current design.
         *   The only way to change this is a TIP
      
      In consequence, it is changed to a RFE and closed with the state "wont fix".
      
      Thank you for your comprehension,
      Harald
      
    4. login: "oehhar"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Wont Fix"
    7. status changed to: "Closed"
    8. type changed to: "RFE"
    9. username: "oehhar"
  23. Ticket change [5a521c00e2] (rid 227112) by pooryorick on 2024-06-02 21:01:04:

    1. closer changed to: "nobody"
    2. icomment:
      No, the documentation for [chan postevent] does not indicate that this is expected behaviour, so this report should remain open.
      
    3. login: "pooryorick"
    4. mimetype: "text/x-fossil-wiki"
    5. resolution changed to: "None"
    6. status changed to: "Open"
  24. Ticket change [f61d4fc92f] (rid 227113) by oehhar on 2024-06-03 05:56:39:

    1. closedate changed to: "2460464.74768465"
    2. closer changed to: "oehhar"
    3. login: "oehhar"
    4. mimetype: "text/plain"
    5. resolution changed to: "Wont Fix"
    6. status changed to: "Closed"
  25. Ticket change [df21f570b1] (rid 227116) by pooryorick on 2024-06-03 06:49:13:

    1. closer changed to: "nobody"
    2. login: "pooryorick"
    3. mimetype: "text/plain"
    4. resolution changed to: "None"
    5. status changed to: "Open"
  26. Ticket change [8b933955e5] (rid 227118) by oehhar on 2024-06-03 07:35:34:

    1. closedate changed to: "2460464.8163666"
    2. closer changed to: "oehhar"
    3. login: "oehhar"
    4. mimetype: "text/plain"
    5. resolution changed to: "Wont Fix"
    6. status changed to: "Closed"
  27. Ticket change [8523c45ef1] (rid 227120) by pooryorick on 2024-06-03 07:52:52:

    1. closer changed to: "nobody"
    2. login: "pooryorick"
    3. mimetype: "text/plain"
    4. resolution changed to: "None"
    5. status changed to: "Open"
  28. Ticket change [f9cb7c51c6] (rid 227121) by pooryorick on 2024-06-03 07:53:00:

    1. login: "pooryorick"
    2. mimetype: "text/plain"
    3. type changed to: "Bug"
  29. Ticket change [b7888c22c3] (rid 227124) by oehhar on 2024-06-03 08:09:34:

    1. closedate changed to: "2460464.83998278"
    2. closer changed to: "oehhar"
    3. icomment:
      Dear Nathan,
      
      thank you for reporting this documentation issue. Please report it in a different ticket.
      
      Thank you for your comprehension,
      Harald
      
    4. login: "oehhar"
    5. mimetype: "text/plain"
    6. resolution changed to: "Wont Fix"
    7. status changed to: "Closed"
  30. Ticket change [ea20a216c3] (rid 227126) by pooryorick on 2024-06-03 08:15:48:

    1. closer changed to: "nobody"
    2. icomment:
      This issue should remain open until [67a5eabbd3d19591] is resolved.
      
    3. login: "pooryorick"
    4. mimetype: "text/x-fossil-wiki"
    5. resolution changed to: "None"
    6. status changed to: "Open"
  31. Ticket change [9e420b8c0b] (rid 227128) by jan.nijtmans on 2024-06-03 08:33:02:

    1. closedate changed to: "2460464.85627881"
    2. closer changed to: "jan.nijtmans"
    3. login: "jan.nijtmans"
    4. mimetype: "text/plain"
    5. resolution changed to: "Wont Fix"
    6. status changed to: "Closed"
  32. Ticket change [e86f08bd0c] (rid 227131) by pooryorick on 2024-06-03 08:47:08:

    1. closer changed to: "nobody"
    2. login: "pooryorick"
    3. mimetype: "text/plain"
    4. resolution changed to: "None"
    5. status changed to: "Open"
  33. Ticket change [a4a0907176] (rid 227133) by oehhar on 2024-06-03 09:03:48:

    1. closedate changed to: "2460464.8776419"
    2. closer changed to: "oehhar"
    3. login: "oehhar"
    4. mimetype: "text/plain"
    5. resolution changed to: "Wont Fix"
    6. status changed to: "Closed"
  34. Ticket change [3a77951e3b] (rid 227135) by pooryorick on 2024-06-03 09:25:18:

    1. closer changed to: "nobody"
    2. login: "pooryorick"
    3. mimetype: "text/plain"
    4. resolution changed to: "None"
    5. status changed to: "Open"
  35. Ticket change [8a6977f069] (rid 227137) by oehhar on 2024-06-03 09:31:12:

    1. closedate changed to: "2460464.89667734"
    2. closer changed to: "oehhar"
    3. login: "oehhar"
    4. mimetype: "text/plain"
    5. resolution changed to: "Wont Fix"
    6. status changed to: "Closed"
  36. Ticket change [1a55793c5f] (rid 227139) by pooryorick on 2024-06-03 09:32:09:

    1. closer changed to: "nobody"
    2. login: "pooryorick"
    3. mimetype: "text/plain"
    4. resolution changed to: "None"
    5. status changed to: "Open"
  37. Ticket change [53260183db] (rid 227141) by oehhar on 2024-06-03 09:35:06:

    1. closedate changed to: "2460464.8993828"
    2. closer changed to: "oehhar"
    3. icomment:
      We had a meeting today. Today, it is my duty to close the tickets.
      Sorry, the others are not available today. We have to share resources...
      
      Thank you for your comprehension,
      Harald
      
    4. login: "oehhar"
    5. mimetype: "text/plain"
    6. resolution changed to: "Wont Fix"
    7. status changed to: "Closed"
  38. Ticket change [0e254036f2] (rid 227143) by pooryorick on 2024-06-03 09:43:57:

    1. closer changed to: "nobody"
    2. login: "pooryorick"
    3. mimetype: "text/plain"
    4. resolution changed to: "None"
    5. status changed to: "Open"
  39. Ticket change [55a38fdfc2] (rid 227170) by oehhar on 2024-06-03 13:22:08:

    1. closedate changed to: "2460465.05704213"
    2. closer changed to: "oehhar"
    3. login: "oehhar"
    4. mimetype: "text/plain"
    5. resolution changed to: "Wont Fix"
    6. status changed to: "Closed"
  40. Ticket change [f00ef55e9a] (rid 227184) by pooryorick on 2024-06-04 06:20:08:

    1. closer changed to: "nobody"
    2. login: "pooryorick"
    3. mimetype: "text/plain"
    4. resolution changed to: "None"
    5. status changed to: "Open"
  41. Ticket change [c03c344bb7] (rid 227447) by jan.nijtmans on 2024-06-11 07:14:31:

    1. closedate changed to: "2460472.80175641"
    2. closer changed to: "jan.nijtmans"
    3. login: "jan.nijtmans"
    4. mimetype: "text/plain"
    5. resolution changed to: "Wont Fix"
    6. status changed to: "Closed"
  42. Ticket change [e83c953e75] (rid 234839) by pooryorick on 2024-11-04 21:50:00:

    1. icomment:
      This issue remains fixed on the "unchained" branch.  The stated rationale for rolling back the fix for this issue, "completely nullifies the purpose of event-driven i/o", is not only false on that branch since event-driven i/o operates as expected, with write events being generated only when the underlying device is writable, but is orthogonal to the issue raised here.
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  43. Ticket change [8660235308] (rid 235127) by pooryorick on 2024-11-15 12:58:34:

    1. icomment:
      On the "unchained" branch test iocmd-31.9 tests this issue.
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"