Skip to content
Tcl Source Code History Of Ticket bbc304f61a
Login

History Of Ticket bbc304f61a

Artifacts Associated With Ticket bbc304f61a

  1. Ticket change [7bc972ba5f] (rid 145151) by dgp on 2016-03-02 15:28:32:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Very occasionally when running the test suite I will
      see ioCmd.test report an error:
      
        tried to post events channel "rc0" is not interested in
      
      I looked into this and it is due to the multi-thread
      ReflectWatch() breaking up its function into parts,
      and having the possibility of servicing an event
      in between the parts, when the channel has changed
      its interest mask, but the Watch command has not
      yet been invoked.
      
      I believe the proper fix is to tie the two changes
      together so that from the perspective of event
      servicing, the watch operation is atomic.
      
      Unfortunately since the issue is timing specific and
      hard to control in a testable way, this is somewhat
      a matter of speculation.  A careful review is in order
      at least.
      
    5. foundin initialized to: "trunk"
    6. is_private initialized to: "0"
    7. login: "dgp"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Important"
    11. status initialized to: "Open"
    12. submitter initialized to: "dgp"
    13. subsystem initialized to: "27. Channel Types"
    14. title initialized to: "reflected watch race condition"
    15. type initialized to: "Bug"
  2. Ticket change [afa0f1b8f2] (rid 145152) by dgp on 2016-03-02 15:28:51:

    1. assignee changed to: "aku"
    2. login: "dgp"
    3. mimetype: "text/plain"
  3. Ticket change [3f05ebc71b] (rid 145153) by dgp on 2016-03-02 15:30:21:

    1. icomment:
      
      Proposed fix committed to a branch.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  4. Ticket change [ae7706cd11] (rid 145232) by aku on 2016-03-08 07:24:10:

    1. icomment:
      Having read the ticket description, and the looked at the proposed fix I 
      believe that this change is ok.
      
      In essence you are moving the update of the interest mask to the last possible 
      point before the script callback is invoked, and for the multi-threaded case 
      this means that the update is changed to always happen in the handler thread. 
      Making the servicing of events between mask update and use of the callback 
      impossible.
      
      That looks to be a sensible solution to me.
      
      The only thing I would change is the // used to disable the old location. That 
      I would simply remove completely.
      
    2. login: "aku"
    3. mimetype: "text/plain"
  5. Ticket change [69bc0626e2] (rid 145354) by dgp on 2016-03-08 17:02:36:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2457456.2101475"
    3. closer changed to: "dgp"
    4. icomment: "fixed on all branches"
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"