|
2020-10-08
| ||
| 10:57 | • Closed ticket [0058716227]: http-4.16 fails on novem on OSX sierra plus 7 ot... artifact: e84a755810 user: jan.nijtmans | |
|
2020-07-24
| ||
| 19:47 | • Ticket [0058716227]: 3 changes artifact: 2501860182 user: kjnash | |
|
2017-08-02
| ||
| 23:34 | • Ticket [0058716227]: 4 changes artifact: 9442d62b2f user: dkf | |
|
2017-06-19
| ||
| 19:35 | • Ticket [0058716227]: 3 changes artifact: a35d48d1a6 user: dgp | |
| 18:19 | • Ticket [0058716227]: 3 changes artifact: 7f6287c776 user: dgp | |
| 17:52 | • Ticket [0058716227]: 3 changes artifact: fcac2a1eda user: dgp | |
| 17:45 | • Ticket [0058716227]: 3 changes artifact: a0a2a5f8dc user: dgp | |
| 17:42 | • New ticket [0058716227]. artifact: 299439517d user: dgp | |
http-4.16 fails on novem on OSX sierra
Closed / Out of Date005871622748c6be3d1c7b4f743af7d772fa070fCreated 9 years agoUpdated 6 years ago
Descriptionplain2017-06-19 17:42:32
==== http-4.16 Leak with Close vs Keepalive (bug [6ca52aec14] FAILED
==== Contents of test case:
set before [chan names]
set token [http::geturl $url -headers {X-Connection keep-alive}]
http::cleanup $token
update
set after [chan names]
expr {$before eq $after}
---- Result was:
0
---- Result should have been (exact matching):
1
==== http-4.16 FAILED
dgpplain2017-06-19 17:45:32
Drilling down, here's the precise combo of tests that fail: make test-tcl TESTFLAGS="-file http.test -match http-4.1[36]" This runs just 2 tests, http-4.13 and http-4.16 in order.
dgpplain2017-06-19 17:52:34
Hacking the test to get more meaningful results:
==== http-4.16 Leak with Close vs Keepalive (bug [6ca52aec14] FAILED
==== Contents of test case:
set before [chan names]
set token [http::geturl $url -headers {X-Connection keep-alive}]
http::cleanup $token
update
set after [chan names]
expr {$before eq $after ? "ok" : "{$before} is not {$after}"}
---- Result was:
{sock7f8157801d10 stdin stdout stderr sock7f81568ff910} is not {stdin stdout stderr sock7f81568ff910}
---- Result should have been (exact matching):
ok
==== http-4.16 FAILED
I'm surprised this test ever passes with no [lsort] on the
lists getting string-compared. Even with that robustness
improvement though, the failure here is real. There is one
more channel that the test expects.
What more info can I provide to help reproduce and repair?
Note this is on novem only. Trunk never fails.
dgpplain2017-06-19 18:19:32
Another curious fact is this test also does not fail on the dgp-refactor branch, even though that is a branch off novem. Whatever novem has broken, dgp-refactor has apparently inadvertantly repaired.
dgpplain2017-06-19 19:35:40
Here's another variation. As reported before a normal `make test` from the tcl8.6.7/unix directory on the trunk does not fail. However, following the macosx/README instructions, `make -C tcl8.6.7/macosx test` does lead to http-4.16 failure.
dkfhtml2017-08-02 23:34:49
This is a rotten test since it isn't well isolated. Just running the test case itself produces no failures, but also running the other http-4.1? tests produces failures. However, if we introduce a bit of processing (a one-way set difference) then we exclude all the problems due to the preceding state and just look for if there is state leaking from the operations actually done in this test.
In other words, changing the test to this makes it pass (and produces far more comprehensible results too):
test http-4.16 {Leak with Close vs Keepalive (bug [6ca52aec14]} -setup {
proc list-difference {l1 l2} {
lmap item $l2 {if {$item in $l1} continue; set item}
}
} -body {
set before [chan names]
set token [http::geturl $url -headers {X-Connection keep-alive}]
http::cleanup $token
update
# Compute what channels have been unexpectedly leaked past cleanup
list-difference $before [chan names]
} -cleanup {
rename list-difference {}
} -result {}
kjnashplain2020-07-24 19:47:53
I can see that Donal's revisions have been added to the test. Did this fix the problem?
jan.nijtmanswiki2020-10-08 10:57:27
Since I don't see test failures any more, and dkf's changes are - indeed - in the code now, closing this.
Log in (anonymous is fine) to add a comment.