Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a2d814ebea3bf2a71d8da0e394c7919603caf117
Ticket: 104f2885bb302d7bf43819e6086f49c3cb59263e
channel TAINT flag is wrong tool
User & Date: dgp on 2016-07-14 16:35:40
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Here's a test I put together to demo that the
    CHANNEL_TAINT flag is improperly cleared:
    
    test io-74.1 {improper clear of CHANNEL_TAINT} -setup {
        set fn [makeFile {} io-74.1]
        set rfd [open $fn r]
        testobj freeallvars
        interp create slave
    } -constraints testobj -body {
        teststringobj set 1 [string range $rfd 0 end]
        read [teststringobj get 1]		
        testobj duplicate 1 2
        interp transfer {} $rfd slave
        catch {read [teststringobj get 1]}
        read [teststringobj get 2]		
    } -cleanup {
        interp delete slave
        testobj freeallvars
        removeFile io-74.1
    } -returnCodes error -match glob -result {can not find channel named "*"}
    
    Now it is clear to me that the answer is not a matter
    of getting treatment of the flag corrected. A flag is simply
    the wrong tool.
    
    To cache the resolution of a channel name in a particular
    context, we need to use the same epoch scheme we use
    for other things that are records of resolutions in a context
    that may vary over time.
    
  5. foundin changed to: "8.5+"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "dgp"
  13. subsystem changed to: "25. Channel System"
  14. title changed to: "channel TAINT flag is wrong tool"
  15. type changed to: "Bug"