Tcl Source Code

View Ticket
Login
Ticket UUID: 3160902
Title: socket_inet6 tests failing
Type: Bug Created on: 2011-01-18 15:36:40
Submitter: lvirden Assigned to: rmax
Subsystem: 24. Channel Commands Severity:
Priority: 5 Medium Last modified: 2011-06-07 19:59:52
Status: Open Closed by:
Resolution: None Closed on:
Version: obsolete: 8.6b1.1
Description:
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.
User Comments:
rmax added on 2011-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.