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

os: "open /dev/null: no such file or directory" error in openbsd-amd64-62 TryBot #28559

bcmills opened this issue Nov 2, 2018 · 2 comments


Copy link

@bcmills bcmills commented Nov 2, 2018

There is what appears to be a spurious TryBot failure for on OpenBSD 6.2.

It's not obvious to me whether it's a bug somewhere in the standard library, in the OpenBSD kernel, or something else entirely.


openbsd-amd64-62 at 20bfe221a4e8f61c7a3d2b26521980e841d1ff58

:: Running /tmp/workdir/go/src/make.bash with args ["/tmp/workdir/go/src/make.bash"] and env ["HOME=/" "PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin" "INRC=1" "_=/bin/sh" "WORKDIR=/tmp/workdir" "GOROOT_BOOTSTRAP=/tmp/workdir/go1.4" "GO_BUILDER_NAME=openbsd-amd64-62" "GOBIN="] in dir /tmp/workdir/go/src

Building Go cmd/dist using /tmp/workdir/go1.4.
Building Go toolchain1 using /tmp/workdir/go1.4.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
Building Go toolchain3 using go_bootstrap and Go toolchain2.
Building packages and commands for openbsd/amd64.
Installed Go for openbsd/amd64 in /tmp/workdir/go
Installed commands in /tmp/workdir/go/bin

##### Testing packages.
ok  	archive/tar	0.186s
ok  	archive/zip	4.171s
ok  	bufio	0.249s
ok  	bytes	2.433s
ok  	compress/bzip2	0.363s
ok  	compress/flate	3.054s
ok  	compress/gzip	0.298s
ok  	compress/lzw	0.247s
ok  	compress/zlib	1.724s
ok  	container/heap	0.020s
ok  	container/list	0.028s
ok  	container/ring	0.080s
ok  	context	1.268s
ok  	crypto	0.021s
ok  	crypto/aes	0.074s
ok  	crypto/cipher	0.247s
ok  	crypto/des	0.028s
ok  	crypto/dsa	0.018s
ok  	crypto/ecdsa	0.359s
ok  	crypto/elliptic	0.609s
ok  	crypto/hmac	0.014s
ok  	crypto/internal/subtle	0.027s
ok  	crypto/md5	0.031s
ok  	crypto/rand	0.128s
ok  	crypto/rc4	0.126s
ok  	crypto/rsa	0.097s
ok  	crypto/sha1	0.052s
ok  	crypto/sha256	0.024s
ok  	crypto/sha512	0.084s
ok  	crypto/subtle	0.037s
ok  	crypto/tls	1.421s
ok  	crypto/x509	2.611s
ok  	database/sql	0.978s
ok  	database/sql/driver	0.019s
ok  	debug/dwarf	0.037s
ok  	debug/elf	0.111s
ok  	debug/gosym	0.720s
ok  	debug/macho	0.021s
ok  	debug/pe	0.090s
ok  	debug/plan9obj	0.075s
ok  	encoding/ascii85	0.077s
ok  	encoding/asn1	0.032s
ok  	encoding/base32	0.099s
ok  	encoding/base64	0.020s
ok  	encoding/binary	0.020s
ok  	encoding/csv	0.039s
ok  	encoding/gob	0.295s
ok  	encoding/hex	0.074s
ok  	encoding/json	0.437s
ok  	encoding/pem	0.070s
ok  	encoding/xml	0.058s
ok  	errors	0.017s
ok  	expvar	0.069s
ok  	flag	0.024s
ok  	fmt	0.197s
ok  	go/ast	0.017s
ok  	go/build	0.349s
ok  	go/constant	0.018s
ok  	go/doc	0.161s
ok  	go/format	0.053s
ok  	go/importer	0.307s
ok  	go/internal/gccgoimporter	0.090s
ok  	go/internal/gcimporter	3.362s
ok  	go/internal/srcimporter	2.540s
ok  	go/parser	0.049s
ok  	go/printer	0.591s
ok  	go/scanner	0.032s
ok  	go/token	0.034s
ok  	hash	0.087s
ok  	hash/adler32	0.063s
ok  	hash/crc32	0.023s
ok  	hash/crc64	0.015s
ok  	go/types	1.191s
ok  	hash/fnv	0.024s
ok  	html	0.017s
ok  	html/template	0.225s
ok  	image	0.232s
ok  	image/color	0.110s
ok  	image/draw	0.125s
ok  	image/gif	3.781s
ok  	image/jpeg	0.271s
ok  	image/png	0.224s
ok  	index/suffixarray	0.019s
ok  	internal/cpu	0.027s
ok  	internal/fmtsort	0.159s
ok  	internal/poll	0.068s
ok  	internal/singleflight	0.043s
ok  	internal/trace	2.795s
ok  	internal/traceparser	2.610s
ok  	internal/traceparser/filebuf	0.079s
ok  	io	0.496s
ok  	io/ioutil	0.030s
ok  	log	0.034s
ok  	math	0.022s
ok  	log/syslog	1.328s
ok  	math/big	1.953s
ok  	math/bits	0.020s
ok  	math/cmplx	0.021s
ok  	math/rand	0.729s
ok  	mime	0.033s
ok  	mime/multipart	0.872s
ok  	mime/quotedprintable	0.427s
ok  	net	45.036s
ok  	net/http	5.857s
ok  	net/http/cgi	0.689s
ok  	net/http/cookiejar	0.049s
ok  	net/http/fcgi	0.026s
ok  	net/http/httptest	0.147s
ok  	net/http/httptrace	0.019s
ok  	net/http/internal	0.014s
ok  	net/http/httputil	0.151s
ok  	net/http/pprof	2.121s
ok  	net/internal/socktest	0.026s
ok  	net/mail	0.077s
ok  	net/textproto	0.030s
ok  	net/rpc	0.076s
ok  	net/rpc/jsonrpc	0.031s
ok  	net/smtp	0.041s
ok  	net/url	0.026s
ok  	os	0.919s
ok  	os/exec	0.797s
ok  	os/signal	4.929s
ok  	os/user	0.016s
ok  	path	0.015s
ok  	path/filepath	0.032s
ok  	reflect	1.042s
ok  	regexp	0.101s
ok  	regexp/syntax	0.291s
ok  	runtime	32.910s
ok  	runtime/debug	0.203s
ok  	runtime/internal/atomic	0.149s
ok  	runtime/internal/math	0.014s
ok  	runtime/internal/sys	0.012s
ok  	runtime/pprof	7.881s
ok  	runtime/pprof/internal/profile	0.012s
ok  	runtime/trace	10.793s
ok  	sort	0.171s
ok  	sync	0.946s
ok  	strconv	0.355s
ok  	strings	68.355s
ok  	sync/atomic	0.498s
ok  	syscall	0.049s
ok  	testing	2.481s

Error: tests failed: dist test failed: go_test:testing/quick: open /dev/null: no such file or directory

This comment has been minimized.

Copy link

@dmitshur dmitshur commented Nov 2, 2018

Perhaps relevant is CL 144777. We're close to switching OpenBSD trybots from 6.2 to 6.4. If it happens not to be an issue on 6.4, then no need to spend as much time investigating this.


This comment has been minimized.

Copy link

@ianlancetaylor ianlancetaylor commented Nov 2, 2018

Dup of #28549. I've already sent a CL, 146901.

It's not an OpenBSD version issue, it's because the trybots run as root on OpenBSD and therefore have the ability to remove /dev/null.

@golang golang locked and limited conversation to collaborators Nov 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.