Skip to content
Tcl Source Code History Of Ticket 3081008fffffffff
Login

History Of Ticket 3081008fffffffff

Artifacts Associated With Ticket 3081008fffffffff

  1. Ticket change [3a36626d7f] (rid 112526) by dgp on 2010-10-04 16:54:53:

    1. assignee initialized to: "patthoyts"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      In a debug build of Tcl (--enable-symbols=all),
      a complete `make test` run reliably reports
      these failing tests:
      
      ==== http11-2.0 -channel FAILED
      ==== Contents of test case:
      
          set tok [http::geturl http://localhost:$httpd_port/testdoc.html  -timeout 5000 -channel $chan]
          http::wait $tok
          seek $chan 0
          set data [read $chan]
          list [http::status $tok] [http::code $tok] [check_crc $tok $data] [meta $tok connection] [meta $tok transfer-encoding]
      
      ---- Result was:
      ok {HTTP/1.1 200 OK} {crc32 mismatch: c554bc27 ne b946628e} close chunked
      ---- Result should have been (exact matching):
      ok {HTTP/1.1 200 OK} ok close chunked
      ==== http11-2.0 FAILED
      
      
      
      ==== http11-2.1 -channel, encoding gzip FAILED
      ==== Contents of test case:
      
          set tok [http::geturl http://localhost:$httpd_port/testdoc.html  -timeout 5000 -channel $chan -headers {accept-encoding gzip}]
          http::wait $tok
          seek $chan 0
          set data [read $chan]
          list [http::status $tok] [http::code $tok] [check_crc $tok $data] [meta $tok connection] [meta $tok content-encoding] [meta $tok transfer-encoding]
      
      ---- Result was:
      ok {HTTP/1.1 200 OK} {crc32 mismatch: c554bc27 ne 6d52cc3} close gzip chunked
      ---- Result should have been (exact matching):
      ok {HTTP/1.1 200 OK} ok close gzip chunked
      ==== http11-2.1 FAILED
      
      
      
      ==== http11-2.2 -channel, encoding deflate FAILED
      ==== Contents of test case:
      
          set tok [http::geturl http://localhost:$httpd_port/testdoc.html  -timeout 5000 -channel $chan -headers {accept-encoding deflate}]
          http::wait $tok
          seek $chan 0
          set data [read $chan]
          list [http::status $tok] [http::code $tok] [check_crc $tok $data] [meta $tok connection] [meta $tok content-encoding] [meta $tok transfer-encoding]
      
      ---- Result was:
      ok {HTTP/1.1 200 OK} {crc32 mismatch: c554bc27 ne b946628e} close deflate chunked
      ---- Result should have been (exact matching):
      ok {HTTP/1.1 200 OK} ok close deflate chunked
      ==== http11-2.2 FAILED
      
      
      
      ==== http11-2.3 -channel,encoding compress FAILED
      ==== Contents of test case:
      
          set tok [http::geturl http://localhost:$httpd_port/testdoc.html  -timeout 5000 -channel $chan  -headers {accept-encoding compress}]
          http::wait $tok
          seek $chan 0
          set data [read $chan]
          list [http::status $tok] [http::code $tok] [check_crc $tok $data] [meta $tok connection] [meta $tok content-encoding] [meta $tok transfer-encoding]
      
      ---- Result was:
      ok {HTTP/1.1 200 OK} {crc32 mismatch: c554bc27 ne ffff1d4} close compress chunked
      ---- Result should have been (exact matching):
      ok {HTTP/1.1 200 OK} ok close compress chunked
      ==== http11-2.3 FAILED
      
      
      
      ==== http11-2.10 -channel,deflate,keepalive FAILED
      ==== Contents of test case:
      
          set tok [http::geturl http://localhost:$httpd_port/testdoc.html  -timeout 5000 -channel $chan -keepalive 1]
          http::wait $tok
          seek $chan 0
          set data [read $chan]
          list [http::status $tok] [http::code $tok] [check_crc $tok $data] [meta $tok connection] [meta $tok content-encoding] [meta $tok transfer-encoding] [expr {[file size testdoc.html]-[file size testfile.tmp]}]
      
      ---- Result was:
      ok {HTTP/1.1 200 OK} {crc32 mismatch: c554bc27 ne b946628e} {} deflate chunked 20203
      ---- Result should have been (exact matching):
      ok {HTTP/1.1 200 OK} ok {} deflate chunked 0
      ==== http11-2.10 FAILED
      
      
      When "-file http.test" is used to limit the testing to only
      that file, the tests pass.
      
      
    4. foundin initialized to: "obsolete: 8.6b1.1"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "29. http Package"
    11. title initialized to: "debug test failures"
    12. type initialized to: "Bug"
  2. Ticket change [4ea4cad8d0] (rid 125677) by dgp on 2010-10-05 00:24:18:

    1. icomment:
      
      Oops!  The failing tests are in http11.test !
      
      Single file testing is enough to see the problem.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [a2c160c923] (rid 109947) by dgp on 2010-10-18 22:42:51:

    1. icomment:
      
      same failures in a --enable-symbols=mem build.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [14b1961fa2] (rid 124438) by dgp on 2010-10-18 23:22:20:

    1. icomment:
      
      When the tests fail, the writes to testfile.tmp
      are incomplete.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [cf560f0ab0] (rid 112959) by dgp on 2010-10-18 23:37:40:

    1. icomment:
      
      The http::wait commands in these tests
      appear pointless since all [geturl] calls
      are synchronous (no -command option).
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [c127fbcbe6] (rid 111278) by ferrieux on 2010-10-19 00:50:37:

    1. icomment:
      Funnily, the missing part in the write seems to be at the beginning. That is, the written file is a suffix of the original.
      I would hypothesize that the part of the body that is read along with the headers  gets lost.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  7. Ticket change [7a2a05724e] (rid 90258) by dgp on 2010-10-19 00:57:50:

    1. icomment:
      
      [$stream add -finalize {}] have different
      returns in the FAIL/SUCCEED scenarios.
      When the tests fail, the empty string is returned.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [56e34a097f] (rid 94402) by dgp on 2010-10-19 01:00:22:

    1. icomment:
      
      Failing $stream is the command returned
      by [zlib stream gunzip].
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. subsystem changed to: "57. zlib"
    6. username: "dgp"
  9. Ticket change [a63f572c35] (rid 98565) by dgp on 2010-10-19 01:17:15:

    1. icomment:
      
      When the tests fail, it is not always
      an empty string returned, but it is always
      short of the full correct amount.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Ticket change [e104a429b3] (rid 87374) by dgp on 2010-10-19 01:30:30:

    1. icomment:
      
      I see that ZlibStreamCmd uses
      the anti-recommended pattern of
      
      Tcl_Obj *obj = Tcl_GetObjResult(interp);
      
      ...
      write to obj
      ....
      return
      
      where many other Tcl library calls happen
      in the ...
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [e886db2057] (rid 104661) by dgp on 2010-10-19 01:33:17:

    1. icomment:
      Yes, that's pervasive in the file
      tclZlib.c and must be changed.
      
      May or may not be the sources of
      the trouble reported here.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  12. Ticket change [d07bc24d48] (rid 113194) by dgp on 2010-10-19 01:34:54:

    1. assignee changed to: "dkf"
    2. icomment:
      TIP 24 tells me these things get
      dumped on dkf.  Sorry.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  13. Ticket change [375cc0c52c] (rid 107259) by dgp on 2010-10-20 02:58:49:

    1. icomment:
      In the failing tests, there are two calls
      to the command $stream.
      
          $stream add $chunk
      
      and later
      
          $stream add -finalize $excess
      
      Between the two calls, the memory pointed
      to by zshPtr->stream.next_in gets overwritten
      in the failing mem-debug case.  This is a memory
      corruption bug.  Possible suspect is just botched
      lifetime management of the intreps of bytearray
      values.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  14. Ticket change [c41d38ff7b] (rid 111786) by dgp on 2010-10-20 03:09:13:

    1. icomment:
      
      The overwritten memory is filled with
      bytes holding the decimal value 97,
      ASCII character 'a'.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  15. Ticket change [3fe23683b0] (rid 121535) by dgp on 2010-10-20 03:12:07:

    1. icomment:
      ...which is the GUARD_VALUE which 
      Tcl's debugging free fills freed memory
      with.  Suggests the second [$stream]
      call is reading from freed memory, and
      might well be doing this in the "working"
      version as well.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  16. Ticket change [9351f972cc] (rid 105793) by dgp on 2010-10-20 03:24:35:

    1. icomment:
      
      Confirmed, the $stream command is
      reading from freed memory.  In all builds.
      ByteArray lifetime management is botched.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  17. Ticket change [277011595e] (rid 88518) by dkf on 2010-10-20 04:19:48:

    1. icomment:
      Was not due to Tcl_GetObjResult problems; purging that didn't clear things. Will commit that change anyway and then continue to probe...
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  18. Ticket change [9d5d01a978] (rid 96293) by dkf on 2010-10-20 05:28:26:

    1. icomment:
      Problem was shimmering of bytearray representation when zlib still had its claws in it. Nasty.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  19. Ticket change [09587f968b] (rid 89707) by dkf on 2010-10-20 05:35:18:

    1. icomment:
      Many thanks to your bughunting skills, Don. Cut my time-to-solution heavily.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  20. Ticket change [13696b5b2d] (rid 124213) by dkf on 2010-10-20 05:50:59:

    1. closedate changed to: "2010-10-19T22:50:59"
    2. closer changed to: "dkf"
    3. icomment:
      
      
      allow_comments - 1
      
      Fixed.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"