|
2006-05-05
| ||
| 09:20 | • Closed ticket [1473164fff]: 8.4.13 tcl test suite: 127.0.0.0 vs 0.0.0.0 plus... artifact: 071cdf9038 user: sf-robot | |
|
2006-04-20
| ||
| 12:08 | • Pending ticket [1473164fff]. artifact: 319ef88891 user: dgp | |
| 11:55 | • Ticket [1473164fff]: 5 changes artifact: 1b13f0c48c user: dgp | |
|
2006-04-19
| ||
| 18:30 | • New ticket [1473164fff]. artifact: 147af4df66 user: nobody | |
8.4.13 tcl test suite: 127.0.0.0 vs 0.0.0.0
Closed / Duplicate1473164fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2006-04-19 18:30:00
platform: sparc sun c compiler, solaris 2.8
Tcl 8.4.13 - release version, not really development
I've been away for a couple of weeks. However, these
failures are, I believe relatively new - I don't recall
seeing them when testing 8.4.12 .
These errors all seem related ; tests expecting to get
the IP of 127.* are getting 0.* instead.
socket.test
==== socket-2.3 tcp connection with client interface
specified FAILED
==== Contents of test case:
file delete $path(script)
set f [open $path(script) w]
puts $f {
set timer [after 2000 "set x done"]
set f [socket -server accept 2830]
proc accept {file addr port} {
global x
puts "[gets $file] $addr"
close $file
set x done
}
puts ready
vwait x
after cancel $timer
close $f
}
close $f
set f [open "|[list [interpreter] $path(script)]" r]
gets $f x
if {[catch {socket -myaddr 127.0.0.1 127.0.0.1
2830} sock]} {
set x $sock
} else {
puts $sock hello
flush $sock
lappend x [gets $f]
close $sock
}
close $f
set x
---- Result was:
ready {hello 0.0.0.0}
---- Result should have been (exact matching):
ready {hello 127.0.0.1}
==== socket-2.3 FAILED
==== socket-7.1 testing socket specific options FAILED
==== Contents of test case:
file delete $path(script)
set f [open $path(script) w]
puts $f {
set ss [socket -server accept 0]
proc accept args {
global x
set x done
}
puts ready
puts [lindex [fconfigure $ss -sockname] 2]
set timer [after 10000 "set x timed_out"]
vwait x
after cancel $timer
}
close $f
set f [open "|[list [interpreter] $path(script)]" r]
gets $f
gets $f listen
set s [socket 127.0.0.1 $listen]
set p [fconfigure $s -peername]
close $s
close $f
set l ""
lappend l [string compare [lindex $p 0] 127.0.0.1]
lappend l [string compare [lindex $p 2] $listen]
lappend l [llength $p]
---- Result was:
-1 0 3
---- Result should have been (exact matching):
0 0 3
==== socket-7.1 FAILED
==== socket-7.5 testing socket specific options FAILED
==== Contents of test case:
set s [socket -server accept 0]
proc accept {s a p} {
global x
set x [fconfigure $s -sockname]
close $s
}
set listen [lindex [fconfigure $s -sockname] 2]
set s1 [socket 127.0.0.1 $listen]
set timer [after 10000 "set x timed_out"]
vwait x
after cancel $timer
close $s
close $s1
set l ""
lappend l [lindex $x 0] [expr {[lindex $x 2] ==
$listen}] [llength $x]
---- Result was:
0.0.0.0 1 3
---- Result should have been (exact matching):
127.0.0.1 1 3
==== socket-7.5 FAILED
unixInit.test
==== unixInit-1.2 initialisation: standard channel type
deduction FAILED
==== Contents of test case:
# pipe1 is a connection to a server that reports
what port it
# starts on, and delivers a constant string to the
first client to
# connect to that port before exiting.
set pipe1 [open "|[list [interpreter]]" r+]
puts $pipe1 {
proc accept {channel host port} {
puts $channel {puts [fconfigure stdin
-peername]; exit}
close $channel
exit
}
puts [fconfigure [socket -server accept 0]
-sockname]
vwait forever }
# Note the backslash above; this is important to
make sure that the
# whole string is read before an [exit] can happen...
flush $pipe1
set port [lindex [gets $pipe1] 2]
set sock [socket localhost $port]
# pipe2 is a connection to a Tcl interpreter that
takes its orders
# from the socket we hand it (i.e. the server we
create above.)
# These orders will tell it to print out the
details about the
# socket it is taking instructions from, hopefully
identifying it
# as a socket. Which is what this test is all about.
set pipe2 [open "|[list [interpreter] <@$sock]" r]
set result [gets $pipe2]
# Clear any pending data; stops certain kinds of
(non-important) errors
fconfigure $pipe1 -blocking 0; gets $pipe1
fconfigure $pipe2 -blocking 0; gets $pipe2
# Close the pipes and the socket.
close $pipe2
close $pipe1
catch {close $sock}
# Can't use normal comparison, as hostname varies
due to some
# installations having a messed up /etc/hosts file.
if {
[string equal 127.0.0.1 [lindex $result 0]] &&
[string equal $port [lindex $result 2]]
} then {
subst "OK"
} else {
subst "Expected: `[list 127.0.0.1 localhost
$port]', Got `$result'"
}
---- Result was:
Expected: `127.0.0.1 localhost 54016', Got `0.0.0.0
localhost 54016'
---- Result should have been (exact matching):
OK
==== unixInit-1.2 FAILED
dgpplain2006-04-20 11:55:28
Logged In: YES user_id=80530 On the exact same system, can you reproduce these failures with the 8.4.12 release?
dgpplain2006-04-20 12:08:05
Logged In: YES user_id=80530 This is a dup of 14464861?
sf-robotplain2006-05-05 09:20:06
Logged In: YES user_id=1312539 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.