Artifacts Associated With Ticket 3385024fffffffffffffffffffffffffffffffff
Ticket change [99f722b0e0] (rid 110879) by dgp on 2011-08-02 20:02:25:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Lo priority matter, but if you try to run the test suite on a system with no real networking functioning. several tests fail and test files error out, notably the http*.test, socket.test, unixInit.test and zlib.test files. The error message encountered is: "host is unreachable (Name or service not known)" This might really be a system problem, or it might be an environment which the test suite ought to tolerate with some constraint usage.
- foundin initialized to: "obsolete: 8.6b2"
- is_private initialized to: "0"
- priority initialized to: "2"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "27. Channel Types"
- title initialized to: "test suite no like socket-less environment"
- type initialized to: "Bug"
Ticket change [9efc4f2edf] (rid 96566) by ferrieux on 2011-08-03 05:23:09:
- icomment:
Could is just be the absence of 'localhost' resolution ? (I'm saying this because it appears many times in those files, and I have seen localhost-less machines in real life, despite a fully working loopback interface). If that's so, using 127.0.0.1 in its stead could help (easy check if you have access to one of those machines).
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [6f44171d3f] (rid 100286) by dgp on 2011-08-03 20:35:25:
- icomment:
The problem does appear to be resolution of the "localhost" name, yes. I know that used to work on this system. I suspect a regressions related to IPv6 support addition. I suspect this may have common cause with 3382419 and 3382431 which appear on a system that actually still matters.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [0293426fe0] (rid 119675) by dgp on 2011-08-03 21:23:08:
- icomment:
I happen to have the Tcl 8.5.0 sources on the same system, and they resolve "localhost" just fine.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [ebdb8fccab] (rid 103602) by dgp on 2011-08-03 21:23:23:
- priority changed to: "5 Medium"
Ticket change [a55e4c56ac] (rid 110365) by ferrieux on 2011-08-03 22:33:37:
- icomment:
Two questions: (1) why not just use 127.0.0.1 throughout the test suite ? (2) what does your /etc/hosts look like regarding localhost/localhost6 entries ?
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [4c9a515d02] (rid 126920) by dgp on 2011-08-03 23:17:18:
- icomment:
I mostly like to have tests that resemble code. I expect many more programmers will naturally use "localhost" when they mean that, rather than 127.0.0.1. My /etc/hosts file on the test system has the line: 127.0.0.1 localhost.localdomain localhost Test system is also not connected to any network.
- login: "dgp"
- mimetype: "text/plain"
- title changed to: ""localhost" resolution regression"
- username: "dgp"
- icomment:
Ticket change [6fb556e51f] (rid 100360) by dgp on 2011-08-04 00:48:37:
- icomment:
If I disable the setting of the AI_ADDRCONFIG flag in hints.ai_flags, then things work again. Whatever is missing on OpenBSD, NetBSD as reported in the comment is also missing in my test system. Solution is apparently some improved autogoo and conditional coding directives.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [e9bf6b7323] (rid 104862) by dgp on 2011-08-04 00:49:51:
- assignee changed to: "rmax"
Ticket change [667b95a9dc] (rid 102720) by dgp on 2011-08-04 00:51:12:
- icomment:
judging by the #if line, things are also missing on AIX and HPUX systems.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [164a745ecc] (rid 124692) by ferrieux on 2011-08-04 17:13:16:
- icomment:
What OS is your test system ? Also, what does the getaddrinfo manpage say regarding the AI_ADDRCONFIG semantics ? On linux it says: If hints.ai_flags includes the AI_ADDRCONFIG flag, then IPv4 addresses are returned in the list pointed to by result only if the local system has at least one IPv4 address configured, and IPv6 addresses are only returned if the local system has at least one IPv6 address configured. - login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [6fda95c9ab] (rid 100382) by dgp on 2011-08-04 20:07:54:
- icomment:
This is an alpha PC with Red Hat Linux 6.2 (Zoot) running on it, dating from around 2000. The foundation is version 2.2.23 of the Linux kernel. Near as I can tell it has no getaddrinfo man page on it. Comments in the system header file agree with the man page quote you report on what the purpose of the AI_ADDRCONFIG flag is. My aim is not to make this system work; it is retired. My aim is to use testing on this system to find and fix any weaknesses in Tcl such testing may expose that will benefit it on actual systems in use.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [bf6319f408] (rid 102245) by rmax on 2011-08-04 20:37:38:
- closedate changed to: "2011-08-04T13:37:38"
- closer changed to: "rmax"
- icomment:
allow_comments - 1 I've commented out the use of AI_ADDRINFO for now. Let's see if that causes any problems in b3.
- login: "rmax"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "rmax"
Ticket change [37278ac31f] (rid 107228) by dgp on 2011-08-05 03:07:45:
- icomment:
Back on my desktop system, the change causes problems, at least is the test suite is any measure: ==== socket_any-2.9 socket conflict FAILED ==== Contents of test case: set s [socket -server accept 0] file delete $path(script) set f [open $path(script) w] puts $f [list set ::tcl::unsupported::socketAF $::tcl::unsupported::socketAF] puts $f "socket -server accept [lindex [fconfigure $s -sockname] 2]" close $f set f [open "|[list [interpreter] $path(script)]" r] gets $f after 100 close $f ---- Result was: couldn't open socket: address family not supported by protocol while executing "socket -server accept 56387" (file "/local/tmp/dgp/fossil/tcl-only/unix/script" line 2) ---- Result should have been (glob matching): couldn't open socket: address already in use* ==== socket_any-2.9 FAILED - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment: