Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
os: plan9: sometimes stat has too short of a buffer #8781
Before filing a bug, please check whether it has been fixed since the latest release. Search the issue tracker and check that you're running the latest version of Go: Run "go version" and compare against http://golang.org/doc/devel/release.html If a newer version of Go exists, install it and retry what you did to reproduce the problem. Thanks. What does 'go version' print? go version devel +67bbd0083f7d Fri Sep 19 14:13:51 2014 -0700 plan9/amd64 What steps reproduce the problem? If possible, include a link to a program on play.golang.org. go test -v -a -run TestAll cmd/gofmt What happened? --- FAIL: TestAll (12.87s) long_test.go:106: stat /sys/src/go/.hg/store/data/doc/articles/go__concurrency__patterns__timing__out__moving__on.html.i: stat buffer too short long_test.go:106: stat /sys/src/go/.hg/store/data/src/crypto/tls/testdata/_client-_t_l_sv10-_client_cert-_e_c_d_s_a-_e_c_d_s_a.i: stat buffer too short long_test.go:106: stat /sys/src/go/.hg/store/data/src/crypto/tls/testdata/_client-_t_l_sv10-_client_cert-_e_c_d_s_a-_r_s_a.i: stat buffer too short long_test.go:106: stat /sys/src/go/.hg/store/data/src/crypto/tls/testdata/_client-_t_l_sv10-_client_cert-_r_s_a-_e_c_d_s_a.i: stat buffer too short ..... What should have happened instead? --- PASS: TestAll (11.96s) PASS ok cmd/gofmt 11.968s Please provide any additional information below. stat_plan9.go always errors out if stat returns an error. stat on plan 9 can return an error, but you must check the size of the buffer returned to determine if you should try again with a larger stat buffer. it should do as plan 9 libc does.