Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: go tip fails on some timeout tests #4638

Closed
gopherbot opened this issue Jan 9, 2013 · 3 comments
Closed

net: go tip fails on some timeout tests #4638

gopherbot opened this issue Jan 9, 2013 · 3 comments
Milestone

Comments

@gopherbot
Copy link

by qeed.quan:

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. build golang on tip on x86_64 port, 6g etc.
2. run all.bash
3.

What is the expected output?
all test is supposed to pass


What do you see instead?
# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, linux/amd64.
lib9
libbio
libmach
misc/pprof
cmd/addr2line
cmd/cov
cmd/nm
cmd/objdump
cmd/pack
cmd/prof
cmd/cc
cmd/gc
cmd/6l
cmd/6a
cmd/6c
cmd/6g
pkg/runtime
pkg/errors
pkg/sync/atomic
pkg/sync
pkg/io
pkg/unicode
pkg/unicode/utf8
pkg/unicode/utf16
pkg/bytes
pkg/math
pkg/strings
pkg/strconv
pkg/bufio
pkg/sort
pkg/container/heap
pkg/encoding/base64
pkg/syscall
pkg/time
pkg/os
pkg/reflect
pkg/fmt
pkg/encoding/json
pkg/flag
pkg/path/filepath
pkg/path
pkg/io/ioutil
pkg/log
pkg/regexp/syntax
pkg/regexp
pkg/go/token
pkg/go/scanner
pkg/go/ast
pkg/go/parser
pkg/os/exec
pkg/os/signal
pkg/net/url
pkg/text/template/parse
pkg/text/template
pkg/go/doc
pkg/go/build
cmd/go

# Building packages and commands for linux/amd64.
runtime
errors
sync/atomic
unicode
sync
io
unicode/utf8
math
bytes
bufio
syscall
strconv
time
reflect
os
sort
strings
fmt
path/filepath
path
regexp/syntax
flag
go/token
regexp
go/scanner
go/ast
io/ioutil
net/url
text/template/parse
go/parser
text/template
go/doc
log
text/tabwriter
go/printer
go/build
os/exec
hash
crypto
crypto/md5
cmd/api
encoding/binary
debug/dwarf
debug/elf
debug/macho
debug/pe
cmd/cgo
go/format
cmd/fix
container/heap
encoding/base64
unicode/utf16
encoding/json
encoding/xml
compress/flate
hash/crc32
compress/gzip
crypto/cipher
crypto/aes
crypto/des
math/rand
crypto/subtle
crypto/hmac
crypto/rc4
math/big
crypto/sha1
crypto/sha256
encoding/hex
encoding/pem
runtime/cgo
crypto/elliptic
crypto/ecdsa
crypto/rand
crypto/rsa
crypto/dsa
encoding/asn1
net
crypto/x509/pkix
crypto/x509
mime
os/signal
archive/zip
encoding/gob
index/suffixarray
html
html/template
runtime/pprof
text/scanner
cmd/gofmt
crypto/tls
net/textproto
mime/multipart
cmd/vet
net/http
cmd/go
expvar
net/http/pprof
cmd/godoc
cmd/yacc
archive/tar
compress/bzip2
compress/lzw
hash/adler32
compress/zlib
container/list
container/ring
crypto/sha512
database/sql/driver
database/sql
debug/gosym
encoding/ascii85
encoding/base32
encoding/csv
exp/cookiejar
exp/ebnf
go/types
exp/ebnflint
exp/html/atom
exp/html
exp/gotype
exp/inotify
exp/norm
exp/locale/collate
hash/fnv
exp/utf8string
hash/crc64
image/color
image
image/draw
image/gif
image/jpeg
image/png
log/syslog
math/cmplx
net/http/cgi
net/http/fcgi
net/http/httptest
net/http/httputil
net/mail
net/rpc
net/rpc/jsonrpc
net/smtp
old/netchan
os/user
exp/locale/collate/build
exp/locale/collate/tools/colcmp
runtime/debug
testing
testing/iotest
testing/quick

# Testing packages.
ok      cmd/api 0.019s
?       cmd/cgo [no test files]
ok      cmd/fix 3.069s
ok      cmd/go  0.027s
?       cmd/godoc   [no test files]
ok      cmd/gofmt   0.060s
?       cmd/vet [no test files]
?       cmd/yacc    [no test files]
ok      archive/tar 0.008s
ok      archive/zip 0.076s
ok      bufio   0.061s
ok      bytes   0.178s
ok      compress/bzip2  0.074s
ok      compress/flate  1.006s
ok      compress/gzip   0.011s
ok      compress/lzw    0.098s
ok      compress/zlib   1.422s
ok      container/heap  0.008s
ok      container/list  0.006s
ok      container/ring  0.019s
?       crypto  [no test files]
ok      crypto/aes  0.028s
ok      crypto/cipher   0.013s
ok      crypto/des  0.029s
ok      crypto/dsa  0.011s
ok      crypto/ecdsa    0.031s
ok      crypto/elliptic 0.021s
ok      crypto/hmac 0.008s
ok      crypto/md5  0.007s
ok      crypto/rand 0.055s
ok      crypto/rc4  0.006s
ok      crypto/rsa  0.080s
ok      crypto/sha1 0.007s
ok      crypto/sha256   0.007s
ok      crypto/sha512   0.007s
ok      crypto/subtle   0.017s
ok      crypto/tls  0.249s
ok      crypto/x509 0.777s
?       crypto/x509/pkix    [no test files]
ok      database/sql    0.013s
ok      database/sql/driver 0.008s
ok      debug/dwarf 0.008s
ok      debug/elf   0.022s
ok      debug/gosym 0.229s
ok      debug/macho 0.017s
ok      debug/pe    0.024s
ok      encoding/ascii85    0.009s
ok      encoding/asn1   0.009s
ok      encoding/base32 0.008s
ok      encoding/base64 0.008s
ok      encoding/binary 0.008s
ok      encoding/csv    0.011s
ok      encoding/gob    0.036s
ok      encoding/hex    0.007s
ok      encoding/json   0.048s
ok      encoding/pem    0.011s
ok      encoding/xml    0.016s
ok      errors  0.020s
ok      exp/cookiejar   0.011s
ok      exp/ebnf    0.020s
ok      exp/ebnflint    0.010s
ok      exp/gotype  2.546s
ok      exp/html    0.146s
ok      exp/html/atom   0.008s
ok      exp/inotify 1.009s
ok      exp/locale/collate  0.060s
ok      exp/locale/collate/build    0.032s
?       exp/locale/collate/tools/colcmp [no test files]
ok      exp/norm    0.937s
ok      exp/utf8string  0.007s
ok      expvar  0.017s
ok      flag    0.009s
ok      fmt 0.037s
ok      go/ast  0.009s
ok      go/build    0.114s
ok      go/doc  0.061s
ok      go/format   0.025s
ok      go/parser   0.048s
ok      go/printer  0.403s
ok      go/scanner  0.011s
ok      go/token    0.045s
ok      go/types    0.473s
?       hash    [no test files]
ok      hash/adler32    0.018s
ok      hash/crc32  0.014s
ok      hash/crc64  0.021s
ok      hash/fnv    0.026s
ok      html    0.008s
ok      html/template   0.069s
ok      image   0.089s
ok      image/color 0.016s
ok      image/draw  0.023s
?       image/gif   [no test files]
ok      image/jpeg  0.144s
ok      image/png   0.057s
ok      index/suffixarray   0.022s
ok      io  0.022s
ok      io/ioutil   0.009s
ok      log 0.008s
ok      log/syslog  0.414s
ok      math    0.009s
ok      math/big    0.180s
ok      math/cmplx  0.008s
ok      math/rand   0.036s
ok      mime    0.013s
ok      mime/multipart  0.207s
pollServer WaitFD: epoll_wait: invalid argument
--- FAIL: TestVariousDeadlines1Proc-4 (2.00 seconds)
timeout_test.go:487:    1ns run 1/1
timeout_test.go:507:    for 1ns run 1/1, good client timeout after 10.782us, reading 0
bytes
timeout_test.go:521:    for 1ns run 1/1, timeout waiting for server to finish writing
--- FAIL: TestVariousDeadlines4Proc-4 (2.01 seconds)
timeout_test.go:487:    1ns run 1/1
timeout_test.go:507:    for 1ns run 1/1, good client timeout after 9.854us, reading 0 bytes
timeout_test.go:517:    for 1ns run 1/1: server in 4.19375ms wrote 729472, write tcp
127.0.0.1:47567: connection reset by peer
timeout_test.go:487:    2ns run 1/1
timeout_test.go:507:    for 2ns run 1/1, good client timeout after 12.411us, reading 0
bytes
timeout_test.go:517:    for 2ns run 1/1: server in 1.339974ms wrote 729472, write tcp
127.0.0.1:47568: connection reset by peer
timeout_test.go:487:    5ns run 1/1
timeout_test.go:507:    for 5ns run 1/1, good client timeout after 11.013us, reading 0
bytes
timeout_test.go:517:    for 5ns run 1/1: server in 1.244013ms wrote 729472, write tcp
127.0.0.1:47569: connection reset by peer
timeout_test.go:487:    50ns run 1/1
timeout_test.go:507:    for 50ns run 1/1, good client timeout after 18.326us, reading 0
bytes
timeout_test.go:517:    for 50ns run 1/1: server in 1.07151ms wrote 729472, write tcp
127.0.0.1:47570: connection reset by peer
timeout_test.go:487:    100ns run 1/1
timeout_test.go:507:    for 100ns run 1/1, good client timeout after 4.817us, reading 0
bytes
timeout_test.go:517:    for 100ns run 1/1: server in 1.072764ms wrote 729472, write tcp
127.0.0.1:47571: connection reset by peer
timeout_test.go:487:    200ns run 1/1
timeout_test.go:507:    for 200ns run 1/1, good client timeout after 2.09us, reading 0
bytes
timeout_test.go:521:    for 200ns run 1/1, timeout waiting for server to finish writing
FAIL
FAIL    net 6.273s
ok      net/http    2.797s
ok      net/http/cgi    0.235s
ok      net/http/fcgi   0.012s
ok      net/http/httptest   0.015s
ok      net/http/httputil   0.040s
?       net/http/pprof  [no test files]
ok      net/mail    0.008s
ok      net/rpc 0.047s
ok      net/rpc/jsonrpc 0.024s
ok      net/smtp    0.012s
ok      net/textproto   0.008s
ok      net/url 0.009s
ok      old/netchan 0.020s
ok      os  0.056s
ok      os/exec 0.365s
ok      os/signal   0.116s
ok      os/user 0.017s
ok      path    0.009s
ok      path/filepath   0.098s
ok      reflect 0.041s
ok      regexp  0.123s
ok      regexp/syntax   0.548s
ok      runtime 2.275s
?       runtime/cgo [no test files]
ok      runtime/debug   0.007s
ok      runtime/pprof   0.356s
ok      sort    0.064s
ok      strconv 0.432s
ok      strings 0.097s
ok      sync    0.270s
ok      sync/atomic 0.097s
ok      syscall 0.036s
?       testing [no test files]
?       testing/iotest  [no test files]
ok      testing/quick   0.022s
ok      text/scanner    0.019s
ok      text/tabwriter  0.012s
ok      text/template   0.050s
ok      text/template/parse 0.014s
ok      time    2.156s
ok      unicode 0.009s
ok      unicode/utf16   0.007s
ok      unicode/utf8    0.010s
?       unsafe  [no test files]


Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
slackware linux 64 bit

Which version are you using?  (run 'go version')
go version devel +7359dad2971d Wed Jan 09 22:03:41 2013 +0100 linux/amd64

Please provide any additional information below.
for some reason other people running 64 bit hasnt been able to reproduce it. I am using
the latest kernel 3.8rc2 if that matters, otherwise, i cannot think of any software
updates ive done recently.
@gopherbot
Copy link
Author

Comment 1 by tobyjwebb:

Unfortunately, it looks like using the 3.8rc2 kernel does matter. I had the same
problem, which disappeared when using the stable kernel (I was using 3.8.0-rc3 at the
time the tests failed):
Linux c850 3.6.11-1-ARCH #1 SMP PREEMPT Tue Dec 18 08:57:15 CET 2012 x86_64 GNU/Linux
The source I'm using to compile is:
changeset:   15373:e55f615005ba
We'll have to wait to see if the issue still shows up in kernel 3.8 stable...

@gopherbot
Copy link
Author

Comment 2 by qeed.quan:

all the tests have passed with the kernel 3.8rc4, seems to be a kernel issue rather than
a go one.

@minux
Copy link
Member

minux commented Jan 23, 2013

Comment 3:

Status changed to Retracted.

@mikioh mikioh changed the title go tip fails on some timeout tests net: go tip fails on some timeout tests Jan 15, 2015
@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants