Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4a0a0969aad48afec3d055a0310408355abd77eff113c121fb5e76305fc9e8f2
Ticket: c015c90c928d04de115adcd7c98da742868c0f4e
[fcopy] leaks file channels?
User & Date: dgp on 2023-04-21 13:31:04
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    Run the test suite like so...
    
    $ make test-tcl TESTFLAGS='-singleproc 1 -file "io.test ioTrans.test" -match "io-52.10 iortrans-3.1"'
    ...
    io.test
    ioTrans.test
    
    
    ==== iortrans-3.1 chan finalize, handler destruction has no effect on channel FAILED
    ==== Contents of test case:
    
        proc foo {args} {
            lappend ::res $args
            handle.initialize
            return
        }
        lappend res [set c [chan push [tempchan] foo]]
        rename foo {}
        lappend res [file channels file*]
        lappend res [file channels rt*]
        lappend res [catch {close $c} msg] $msg
        lappend res [file channels file*]
        lappend res [file channels rt*]
    
    ---- Result was:
    {initialize rt0 {read write}} file7 {file5 file6 file7} {} 1 {invalid command name "foo"} {file5 file6} {}
    ---- Result should have been (glob matching):
    {initialize rt* {read write}} file* file* {} 1 {invalid command name "foo"} {} {}
    ==== iortrans-3.1 FAILED
    
    Test iortrans-3.1 is unhappy apparently because there are channels file5 and file6 lurking about that it does not expect.
    
    It appears that the [fcopy] command in test io-52.10 has created them and the test has not cleaned up after that creation.
    
    Hoping someone recognizes what the symptoms mean.
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "8e2300e85be5dd1445b9666eb9429055951e33be"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "dgp"
  14. subsystem changed to: "25. Channel System"
  15. title changed to: "[fcopy] leaks file channels?"
  16. type changed to: "Bug"