Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4a31c3c7b91ff4ea776eba77ef05510ab58e7dbe
Ticket: 1356071fffffffffffffffffffffffffffffffff
Race condition in reflected channels?
User & Date: dkf on 2005-11-13 21:15:05
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I've seen iocmd.tf-27.6 fail once using a threaded
    build of the HEAD (on a moderately loaded machine). It
    did not fail when I reran 'make test' with a restricted
    scope of tests (to try to duplicate the fault). This
    means it looks like there is a race condition somewhere
    in there (manifested as a different line number in the
    error dict) which can be difficult to hunt down I know.
    Segment of 'make test' output follows:
    
    io.test
    ioCmd.test
    
    ==== iocmd.tf-27.6 chan configure, get option, level is
    ignored FAILED
    ==== Contents of test case:
    
        set res {}
        proc foo {args} {
            oninit cget cgetall; onfinal; track
            return -level 77 -code 333 BANG
        }
        set c [chan create {r w} foo]
        notes [inthread $c {
            note [catch {fconfigure $c -rc-foo} msg opt]
            note $msg
            note $opt
            close $c
            notes
        } c]
        rename foo {}
        set res
    
    ---- Result was:
    {cget rc161 -rc-foo} 1 BANG {-code 1 -level 0
    -errorcode NONE -errorline 11 -errorinfo BANG}
    ---- Result should have been (glob matching):
    {cget rc* -rc-foo} 1 BANG {-code 1 -level 0 -errorcode
    NONE -errorline 1 -errorinfo BANG}
    ==== iocmd.tf-27.6 FAILED
    
    ioUtil.test
    iogt.test
    
    
  4. foundin changed to: "obsolete: 8.5a4"
  5. priority changed to: "8"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dkf"
  9. subsystem changed to: "27. Channel Types"
  10. title changed to: "Race condition in reflected channels?"
  11. type changed to: "Bug"