Skip to content
Tcl Source Code History Of Ticket 3428756
Login

History Of Ticket 3428756

Artifacts Associated With Ticket 3428756

  1. Ticket change [f2a2a761a6] (rid 109586) by lvirden on 2011-10-26 12:54:51:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      platform: sparc solaris 10, sun c compiler, tcl source code head from Oct 25, 2011 on the activestate ftp site.
      
      when compiling then running the make test, the makefile makes it to the zlib.test file, then hangs without producing any output or completing the tests.
      
    4. foundin initialized to: "obsolete: 8.6b2"
    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: "lvirden"
    10. subsystem initialized to: "57. zlib"
    11. title initialized to: "zlib test suite hangs"
    12. type initialized to: "Bug"
  2. Ticket change [e5b3f688c0] (rid 104172) by dgp on 2011-10-26 20:02:58:

    1. closedate changed to: "2011-10-26T13:02:58"
    2. closer changed to: "dgp"
    3. icomment:
      Use -skip zlib-10.2 to confirm this
      is a Dup of 3392701
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Duplicate"
    7. status changed to: "Pending"
    8. username: "dgp"
  3. Ticket change [ebdcdcaa41] (rid 103603) by lvirden on 2011-10-26 20:44:21:

    1. icomment:
      I am uncertain how to use the "-skip zlib-10.2" to confirm.
      
      
    2. login: "lvirden"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "lvirden"
  4. Ticket change [e38c15a65a] (rid 87817) by dkf on 2011-10-26 21:08:49:

    1. icomment:
      make test TESTFLAGS="-skip zlib-10.2"
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  5. Ticket change [37bdcddb3e] (rid 112081) by lvirden on 2011-10-26 21:36:33:

    1. icomment:
      when I run gmake test  TESTFLAGS="-skip zlib-10.2" the test still hangs.
      
      
    2. login: "lvirden"
    3. mimetype: "text/plain"
    4. username: "lvirden"
  6. Ticket change [2eca502f06] (rid 92949) by lvirden on 2011-10-27 01:53:28:

    1. icomment:
      So, I tried to run this next: gmail test TESTFLAGS="-verbose bps -file zlib.test" to see if I could get some verbose info.  I see this:
      
      LD_LIBRARY_PATH=`pwd`:/usr/sfw/lib:/usr/dt/lib:/usr/dt/lib/sdtimage:/usr/openwin/lib:/usr/lib:/usr/ucblib:/cas/lib/sun4 TCLLIBPATH="/vol/tclsrcsol/tcl86/tcl-8.6b-2011-10-20/unix/pkgs" TCL_LIBRARY="/vol/tclsrcsol/tcl86/tcl-8.6b-2011-10-20/library" ./tcltest /vol/tclsrcsol/tcl86/tcl-8.6b-2011-10-20/tests/all.tcl -verbose bps -file zlib.test
      Tests running in interp:  /vol/tclsrcsol/tcl86/tcl-8.6b-2011-10-20/unix/tcltest
      Tests located in:  /vol/tclsrcsol/tcl86/tcl-8.6b-2011-10-20/tests
      Tests running in:  /vol/tclsrcsol/tcl86/tcl-8.6b-2011-10-20/unix
      Temporary files stored in /vol/tclsrcsol/tcl86/tcl-8.6b-2011-10-20/unix
      Test files run in separate interpreters
      Running tests that match:  *
      Skipping test files that match:  l.*.test
      Only running test files that match:  zlib.test
      Tests began at Wed Oct 26 14:49:14 EDT 2011
      zlib.test
      ++++ zlib-1.1 PASSED
      ++++ zlib-1.2 PASSED
      ++++ zlib-2.1 PASSED
      ++++ zlib-3.1 PASSED
      ++++ zlib-4.1 PASSED
      ++++ zlib-4.2 PASSED
      ++++ zlib-5.1 PASSED
      ++++ zlib-5.2 PASSED
      ++++ zlib-5.3 PASSED
      ++++ zlib-6.1 PASSED
      ++++ zlib-6.2 PASSED
      ++++ zlib-6.3 PASSED
      ++++ zlib-6.4 PASSED
      ++++ zlib-7.0 PASSED
      ++++ zlib-7.1 PASSED
      ++++ zlib-7.2 PASSED
      ++++ zlib-7.3 PASSED
      ++++ zlib-7.4 PASSED
      ++++ zlib-8.1 PASSED
      ++++ zlib-8.2 PASSED
      ++++ zlib-8.3 PASSED
      ++++ zlib-9.1 PASSED
      ++++ zlib-9.2 PASSED
      
      At this point, nothing else appears to occur.
      I then took a look at what is next, and it is zlib-9.3 - socket fcopy gb (identify).  As I mentioned in a previous bug report, this version o ftcl is failing a number of the socket tests, so the hanging here could be related to that.  I don't know that is the case - just a guess.
      
      The date on the ChangeLog for this tcl is Oct 20th, 2011...
      
      
    2. login: "lvirden"
    3. mimetype: "text/plain"
    4. username: "lvirden"
  7. Ticket change [1c1675943d] (rid 90545) by lvirden on 2011-11-11 03:26:24:

    1. icomment:
      I just wanted to update this ticket to indicate that I continue to see this problem. However, when I skip test 9.3, the test suite runs to completion. The code gets 
      into
      
      
      puts "connection from $a:$p on $c"
              chan configure $c -encoding binary -translation binary
              set longa [string repeat a 81920]
              puts "longa created"
              puts -nonewline $c $longa
              puts "puts complete"
              close $c
      and as output, I see longa created, but I do not see puts complete.
      
      
    2. login: "lvirden"
    3. mimetype: "text/plain"
    4. username: "lvirden"
  8. Ticket change [2b2d50f2e8] (rid 118697) by dkf on 2011-11-11 04:34:09:

    1. icomment:
      Bizarre! zlib-9.3 doesn't use zlib; it's just checking that the system used in the rest of the 9.* tests afterwards works. I'm guessing that it's some kind of problem related to having both sides of the socket in the same thread, but I leave that to someone else to advise.
      
      Since it's actually a generic IO problem, with no zlib specialness in this test, I'm assigning to someone who can advise.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  9. Ticket change [2724649ba4] (rid 88471) by dkf on 2011-11-11 04:34:10:

    1. assignee changed to: "andreas_kupries"
  10. Ticket change [83b97ab31a] (rid 117429) by ferrieux on 2011-11-11 17:01:19:

    1. icomment:
      Indeed, looks like a deadlock in async fcopy. Larry, can you please use truss with all timing and follow-children flags and attach the output ?
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  11. Ticket change [ee97d29ab1] (rid 104103) by ferrieux on 2011-11-11 17:16:35:

    1. icomment:
      Uh, the [puts] in the server callback is blocking... of course that can work in a single-threaded "self-socket" setup only if the OS's buffers are large enough; looks like Solaris's ones are smaller.
      
      Fix: add "-blocking 0" to the [chan configure] line in the server.
      Also, "-buffering none" seems reasonable.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  12. Ticket change [80531bbae7] (rid 116851) by ferrieux on 2011-11-11 17:34:49:

    1. assignee changed to: "ferrieux"
    2. closedate changed to: "2011-11-11T10:34:49"
    3. closer changed to: "ferrieux"
    4. icomment:
      Confirmed the analysis by pushing up the buffer stress (multiply the size by 10), which makes the problem reproducible cross-OS. Fixed by the proposed change (just -blocking 0).
      
      Fix committed to trunk.
      
      
      
    5. login: "ferrieux"
    6. mimetype: "text/plain"
    7. status changed to: "Closed"
    8. username: "ferrieux"
  13. Ticket change [c8ff628608] (rid 122207) by ferrieux on 2011-11-11 18:04:39:

    1. icomment:
      Generalized the fix to all similar situations, which were less likely to deadlock since the data were mostly deflated ;-)
      Also tidied up the fconfigure flags:
      1. -encoding binary is implied by -translation binary
      2. -buffering none, along with -blocking 0, in all writing situations, after verifying that all the tests were vwait-based
      3. -buffering none removed for all reading situtations (buffering is an output notion)
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  14. Ticket change [035fb874a6] (rid 119817) by dkf on 2011-11-11 18:09:26:

    1. icomment:
      
      
      allow_comments - 1
      
      Thanks for spotting this.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  15. Ticket change [b9dbb30a7f] (rid 129221) by ferrieux on 2011-11-11 20:33:02:

    1. resolution changed to: "Fixed"
  16. Ticket change [d3392b71d8] (rid 123254) by ferrieux on 2011-11-11 20:33:11:

    1. icomment:
      
      
      allow_comments - 0
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"