Artifacts Associated With Ticket 005871622748c6be
Ticket change [299439517d] (rid 154664) by dgp on 2017-06-19 17:42:32:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
==== 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 - foundin initialized to: "novem"
- is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "29. http Package"
- title initialized to: "http-4.16 fails on novem on OSX sierra"
- type initialized to: "Bug"
Ticket change [a0a2a5f8dc] (rid 154665) by dgp on 2017-06-19 17:45:32:
- icomment:
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.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [fcac2a1eda] (rid 154666) by dgp on 2017-06-19 17:52:34:
- icomment:
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. - login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [7f6287c776] (rid 154672) by dgp on 2017-06-19 18:19:32:
- icomment:
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.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [a35d48d1a6] (rid 154674) by dgp on 2017-06-19 19:35:40:
- icomment:
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.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [9442d62b2f] (rid 155233) by dkf on 2017-08-02 23:34:49:
- icomment:
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. <p> In other words, changing the test to this makes it pass (and produces far more comprehensible results too): <pre> 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 {} </pre> - login: "dkf"
- mimetype: "text/html"
- username: "dkf"
- icomment:
Ticket change [2501860182] (rid 185214) by kjnash on 2020-07-24 19:47:53:
- icomment:
I can see that Donal's revisions have been added to the test. Did this fix the problem?
- login: "kjnash"
- mimetype: "text/plain"
- icomment:
Ticket change [e84a755810] (rid 187467) by jan.nijtmans on 2020-10-08 10:57:27:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2459130.95657152"
- closer changed to: "jan.nijtmans"
- icomment:
Since I don't see test failures any more, and dkf's changes are - indeed - in the code now, closing this.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Out of Date"
- status changed to: "Closed"