|
2026-10-22
| ||
| 17:19 | • Ticket [c015c90c92] fcopy leaks file channels? status still Closed with 3 ... artifact: 9febfc1158 user: serhiy.storchaka | |
|
2026-10-14
| ||
| 07:31 | • Closed ticket [c015c90c92]. artifact: 7422d3e627 user: serhiy.storchaka | |
|
2023-04-21
| ||
| 16:07 | • Ticket [c015c90c92]: 4 changes artifact: 08f2db71c2 user: dgp | |
| 13:31 | • New ticket [c015c90c92]. artifact: 4a0a0969aa user: dgp | |
[fcopy] leaks file channels?
Closed / Fixedc015c90c928d04de115adcd7c98da742868c0f4eCreated 4 years agoUpdated 42 days ago
Descriptionplain2023-04-21 13:31:04
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.
dgpplain2023-04-21 16:07:50
This first shows up in checkin [b66d50b4d45f6f36] which is part of fixing bug [fa3d9fd818fa0072].
serhiy.storchakawiki2026-10-14 07:31:46
Fixed by [e99d523a7d]: the channels were left open by io-52.10 itself, which
closed them after the [fcopy] that now fails with
an encoding error. The command in the description passes now.
serhiy.storchaka Ticket [c015c90c92]: 3 changes
[History diff]2026-10-22 17:19:25
Log in (anonymous is fine) to add a comment.