Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2011-06-07
19:59 • Ticket [3160902fff] socket_inet6 tests failing status still Open with 4 othe... artifact: 7a9141df92 user: rmax
2011-01-18
23:20 • Ticket [3160902fff]: 2 changes artifact: 9c09a03947 user: dkf
15:36 • New ticket [3160902fff]. artifact: fd9f36e009 user: lvirden

socket_inet6 tests failing

Open3160902fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 15 years ago
Descriptionplain2011-01-18 15:36:40
Platform is SPARC Solaris 2.9, using Sun's C compiler and the latest Tcl cvs head.

This appears to be the first time in 2 months that I've compiled and built Tcl 8.6 cvs head... sigh.

Anyways, a significant number of socket_inet6 test cases are failing on sparc solaris 2.9:

==== socket_inet6-2.1 tcp connection FAILED
==== Contents of test case:

    # $x == "ready" at this point
    set sock [socket $localhost $listen]
    lappend x [gets $f]
    close $sock
    lappend x [gets $f]

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: host is unreachable (host/servname not kno
wn)
    while executing
"socket $localhost $listen"
    ("uplevel" body line 3)
    invoked from within
"uplevel 1 $script"
---- errorCode: POSIX EHOSTUNREACH {host is unreachable}
---- Test cleanup failed:
error writing "stdout": broken pipe
    while executing
"puts $x"
    (file "/vol/tclsrcsol/tcl86/tcl/unix/script" line 14)
---- errorInfo(cleanup): error writing "stdout": broken pipe
    while executing
"puts $x"
    (file "/vol/tclsrcsol/tcl86/tcl/unix/script" line 14)
    while executing
"close $f"
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $cleanup"
---- errorCode(cleanup): CHILDSTATUS 28288 1
==== socket_inet6-2.1 FAILED
 

There many additional errors, but as I briefly scanned across them, they all seemed to hinge around a failure to reach a host.
dkf Ticket [3160902fff]: 2 changes [History diff]2011-01-18 23:20:30
rmaxplain2011-06-07 19:59:52
Hmm - it looks like Solaris 2.9 does support IPv6, but it is not enabled on the loopback interface of that particular machine. Maybe I need to refine the code in socket.test that sets the constraints for the address families.
Log in (anonymous is fine) to add a comment.