Skip to content
Tcl Source Code History Of Ticket 3175754
Login

History Of Ticket 3175754

Artifacts Associated With Ticket 3175754

  1. Ticket change [c89f0b2eef] (rid 122138) by anonymous on 2011-02-08 16:34:55:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Using the Memchan fifo command, the read events are not being consistent, not triggered at all, triggered only after reading at least one character first. 
      
      Example: 
      % package req Memchan 
      2.3 
      % set c [fifo] 
      fifo0 
      % chan event $c readable r 
      % proc r {} {puts "read -- [read $::c]"} 
      % puts $c "testing read" 
      % flush $c 
      % update 
      % read $c 1 
      t 
      % update 
      read -- esting read 
      ##########################
      
      It can also 
      generate false positives: 
        % package require Memchan 
        2.3 
        % set c [fifo] 
        fifo0 
        % fileevent $c readable {puts stderr READ:; puts stderr "([read $::c 
      1])"} 
        % update 
        READ: 
        () 
        % update 
        READ: 
        () 
      
      #############################
      
      Even stranger, fileevents stop when data are ready ! 
        % fconfigure $c -buffering line 
        % puts $c aa 
        % update 
        % update 
        % update 
        % read $c 1 
        a 
        % update 
        READ: 
        (a) 
        READ: 
        ( 
        ) 
        % update 
        READ: 
        () 
        % update 
        READ: 
        () 
      ########################
      
      I tried it Tcl 8.5 and 8.6. Same issue on both. 
      
    4. foundin initialized to: "obsolete: 8.5.9"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. subsystem initialized to: "27. Channel Types"
    10. title initialized to: "memchan fifo events "
    11. type initialized to: "Bug"
  2. Ticket change [da0e8fc824] (rid 107707) by andreas_kupries on 2011-02-15 03:46:37:

    1. icomment:
      Fixed. Indeed, an inverted condition dropping readable events when actually needed.
      
      Side note: This bug was found in Memchan, and should have been reported to the Memchan project @ SF, and not the Tcl core. It was fixed in Memchan too. I accepted the misfile this time because I would have been the person to fix it anyway, regardless of filing location.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  3. Ticket change [fd637eb811] (rid 108405) by andreas_kupries on 2011-02-15 03:46:47:

    1. closedate changed to: "2011-02-14T20:46:47"
    2. closer changed to: "andreas_kupries"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "andreas_kupries"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "andreas_kupries"