-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Closed
Copy link
Labels
Milestone
Description
go env Output
GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/buildsrv/.cache/go-build" GOENV="/home/buildsrv/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="openbsd" GOINSECURE="" GONOPROXY="" GONOSUMDB="" GOOS="openbsd" GOPATH="/home/buildsrv" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/home/buildsrv/go1.14beta1" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/home/buildsrv/go1.14beta1/pkg/tool/openbsd_amd64" GCCGO="gccgo" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build974924072=/tmp/go-build -gno-record-gcc-switches"
Compiling go1.14beta1 via all.bash on OpenBSD 6.6 (amd64, 2.5GB RAM, 4 procs, no swap) fails. This can be reproduced with:
$ cd src/runtime
$ go1.14beta1 test -v -run TestPageAllocScavenge
=== RUN TestPageAllocScavenge
=== RUN TestPageAllocScavenge/AllFreeUnscavExhaust
fatal error: failed to reserve page summary memory
goroutine 7 [running]:
runtime.throw(0x68cc1b, 0x25) /home/buildsrv/go1.14beta1/src/runtime/panic.go:1112 +0x72 fp=0xc00002e4e0 sp=0xc00002e4b0 pc=0x4
35cc2
runtime.(*pageAlloc).sysInit(0xc0000c8000) /home/buildsrv/go1.14beta1/src/runtime/mpagealloc_64bit.go:80 +0x13f fp=0xc00002e558 sp=0xc00002e
4e0 pc=0x42beef
runtime.(*pageAlloc).init(0xc0000c8000, 0xc00001a5a8, 0x0)
/home/buildsrv/go1.14beta1/src/runtime/mpagealloc.go:289 +0x75 fp=0xc00002e580 sp=0xc00002e558 pc
=0x429b85
runtime.NewPageAlloc(0xc00006c7e0, 0xc00006c840, 0xc0000b6000)
/home/buildsrv/go1.14beta1/src/runtime/export_test.go:788 +0x70 fp=0xc00002e680 sp=0xc00002e580 p
c=0x463960
runtime_test.TestPageAllocScavenge.func1(0xc0000159e0, 0x3f9bae7f4000)
/home/buildsrv/go1.14beta1/src/runtime/mgcscavenge_test.go:407 +0x124 fp=0xc00002e760 sp=0xc00002
e680 pc=0x5e9574
runtime_test.TestPageAllocScavenge.func2(0xc0000159e0)
/home/buildsrv/go1.14beta1/src/runtime/mgcscavenge_test.go:413 +0x34 fp=0xc00002e780 sp=0xc00002e
760 pc=0x5e9744
testing.tRunner(0xc0000159e0, 0xc000043560)
/home/buildsrv/go1.14beta1/src/testing/testing.go:954 +0xdc fp=0xc00002e7d0 sp=0xc00002e780 pc=0x
4de9fc
runtime.goexit()
/home/buildsrv/go1.14beta1/src/runtime/asm_amd64.s:1375 +0x1 fp=0xc00002e7d8 sp=0xc00002e7d0 pc=0
x46ac31
created by testing.(*T).Run
/home/buildsrv/go1.14beta1/src/testing/testing.go:1005 +0x357
[..]
exit status 2
FAIL runtime 0.116s
go1.13.5 builds fine with 2GB RAM.
I added some trace writes found mem_bsd.go:sysReserve mmap fails with ENOMEM trying to allocate 536870912 bytes (levelShift[4] in mpagealloc_64bit.go:sysInit).
Cc @mknyszek