Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2012-06-23
02:43 • Ticket [3537043fff] Failure of -myaddr localhost status still Closed with 4 ... artifact: 5f0634ee9c user: dgp
2012-06-22
21:30 • Closed ticket [3537043fff]. artifact: 266344f762 user: rmax
19:55 • Ticket [3537043fff]: 5 changes artifact: a753135f60 user: dgp
08:21 • Ticket [3537043fff]: 5 changes artifact: e1d528f5f7 user: dgp
01:00 • New ticket [3537043fff]. artifact: a8d643e481 user: dgp

Failure of -myaddr localhost

Closed / Works For Me3537043fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 14 years ago
Descriptionplain2012-06-22 01:00:55
On my MacBook Pro running OSX 10.6.8, I get this failure:

% socket -server foo -myaddr localhost 0
couldn't open socket: host is unreachable (nodename nor servname provided, or not known)

Several tests in http11.test, socket.test and zlib.test expect this to work, so the test suite
is not what it needs to be for this platform.
dgpplain2012-06-22 08:21:39
Bisecting reveals this failure started with checkin

3f8b48b6b6761db092f2a7c0193fc4b71349640f 2010-09-28 15:13:54 UTC
dgpplain2012-06-22 19:55:51
And testing again the next day the problem has vanished, so there's
at least an element of transient system failure contributing.
rmaxplain2012-06-22 21:30:56
allow_comments - 1

As discussed on the chat, it looks like that machine temporarily loses its ability to resolve localhost.
Nothing that Tcl can do anything about.
dgpplain2012-06-23 02:43:42
Please note that Tcl does play some role in this failure as well.
Even during that extended time period where my system wasn't
able to resolve "-myaddr localhost" using the trunk of Tcl, it was able
to do so using builds of Tcl prior to checkin 3f8b48b6.

So Tcl has evolved in a way that makes it vulnerable to this mystery
system trouble where it did not used to be.
Log in (anonymous is fine) to add a comment.