Skip to content
Tcl Source Code View Ticket
Login

View Ticket

zlib-9.3 hangs

Closed / Fixed2860923fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 15 years ago
Descriptionplain2009-09-17 20:15:29
Testing on an old IRIX box...

$ uname -a
IRIX64 xanadu 6.5 10070055 IP30

I see test zlib-9.3 hang.
dkfplain2009-10-11 18:34:40
Cannot duplicate (threaded build). Pat's had more luck tracking down these sorts of problems, so assigning to him.
dkfplain2009-10-11 18:35:13
Also works fine with an unthreaded build (this is all on OSX).
dgpplain2010-08-26 20:23:30
See the same problem now on a Solaris 10 box.

uname -a
SunOS entity.cam.nist.gov 5.10 Generic_142900-13 sun4u sparc SUNW,Sun-Blade-1000
patthoytsplain2010-08-26 21:00:48
zlib-9.3 does not actually test the zlib transforms. It is supposed to be a check that the test structure used for  zlib-9.x tests is valid. It sets up a socket with no transform added (ie: an identity transfer) and pushes some data across. In the other tests we do the same thing but add various zlib transforms on top.
There is a timeout in here too - so presumably this is jamming in the asynchronous fcopy and jamming up the event loop.
dgp Ticket [2860923fff]: 2 changes [History diff]2010-08-26 21:04:29
dgpplain2010-08-26 21:16:03
dgpsize 49153 hangs
dgpsize 49152 does not
dgpplain2010-08-26 21:45:31
when it hangs, it hangs in [update]
before [fcopy] is ever called.
dgpplain2010-08-26 22:30:42
49152 = 12 * 4096
dgpplain2010-08-26 22:45:44
Hangs in the 13th call to send() in
TcpOutputProc()
dgpplain2010-08-27 00:59:57
can't find docs for send() on Solaris 10, but
the docs on Linux say:

"When the message does not fit into  the  send  buffer  of  the  socket,
       send() normally blocks, unless the socket has been placed in non-block-
       ing I/O mode."

Apparently we're stuck blocking until the reader (which is us!)
can suck up some of the blockage?
dgpplain2010-08-27 01:12:21
and that means this is a general problem, not just
on Solaris, just that different systems have different
limits.  A bit of experimenting finds that the max
working value on my Linux system is
172032 = 42 * 4096.

That is, a test with 172032 bytes written
to the socket passes, while a test with
172033 bytes hangs.

I'm not sure whether this test is the right
place to deal with this particular issue.
The test may just be testing other things
and the right answer is to just pick a value
small enough to not hang on all tested platforms.

We may need another test or tests to deal with
this, and maybe even more depending on how
much we want blocking [close] problems to be
solved by Tcl vs. making them the application's
problem to deal with.
dgpplain2010-10-28 23:28:58
was testing on Solaris again for other
reasons and this is still broken.
dgp Ticket [2860923fff]: 1 change [History diff]2011-02-02 02:12:02
dkfplain2012-05-29 16:11:09
There have been changes in this area (notably the fix to Bug #3525907); retesting would be appreciated.
dgpplain2012-05-29 20:42:14
allow_comments - 1


The hanging test no longer hangs on either
old test system.

There are other tests failing.  I'll report separately.
Log in (anonymous is fine) to add a comment.