Repository: go
Issue: runtime: "out of memory allocating heap arena map" on solaris-amd64-oraclerel
Labels: NeedsInvestigation,compiler/runtime

[2020-11-03T12:59:51-393f2bb/solaris-amd64-oraclerel](https://build.golang.org/log/6fc90d327776abc66c34c0956d283ab5e4e6235d)

```
--- FAIL: TestVet (6.36s)
    --- FAIL: TestVet/lostcancel (57.25s)
        vet_test.go:162: error check failed: 
            Unmatched Errors:
            fatal error: out of memory allocating heap arena map
            runtime stack:
            runtime.throw(0x702172, 0x27)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/panic.go:1112 +0x72 fp=0x7fffbfffe978 sp=0x7fffbfffe948 pc=0x435852
            runtime.(*mheap).sysAlloc(0x8c02a0, 0x400000, 0x7fffbf6e5e28, 0x7fffbf6e83a8)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/malloc.go:739 +0x725 fp=0x7fffbfffea18 sp=0x7fffbfffe978 pc=0x40cbc5
            runtime.(*mheap).grow(0x8c02a0, 0x1, 0x0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mheap.go:1312 +0x85 fp=0x7fffbfffea80 sp=0x7fffbfffea18 pc=0x427a25
            runtime.(*mheap).allocSpan(0x8c02a0, 0x1, 0x7fffbf652c00, 0x7fffbf6e5e28)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mheap.go:1156 +0x585 fp=0x7fffbfffeaf0 sp=0x7fffbfffea80 pc=0x427845
            runtime.(*mheap).alloc.func1()
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mheap.go:905 +0x59 fp=0x7fffbfffeb40 sp=0x7fffbfffeaf0 pc=0x460f39
            runtime.(*mheap).alloc(0x8c02a0, 0x1, 0x7fffbf6e012c, 0x6)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mheap.go:899 +0x85 fp=0x7fffbfffeb90 sp=0x7fffbfffeb40 pc=0x426e65
            runtime.(*mcentral).grow(0x8d25d8, 0x0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mcentral.go:232 +0x79 fp=0x7fffbfffebd8 sp=0x7fffbfffeb90 pc=0x418339
            runtime.(*mcentral).cacheSpan(0x8d25d8, 0x3)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mcentral.go:158 +0x2ff fp=0x7fffbfffec30 sp=0x7fffbfffebd8 pc=0x41811f
            runtime.(*mcache).refill(0x7fffbf67f108, 0x2c)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mcache.go:162 +0xaa fp=0x7fffbfffec78 sp=0x7fffbfffec30 pc=0x41762a
            runtime.(*mcache).nextFree(0x7fffbf67f108, 0x7fffbfffee2c, 0x7fffbfffeec8, 0x7fffbffff068, 0xc5d0f0e)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/malloc.go:882 +0x8d fp=0x7fffbfffecb0 sp=0x7fffbfffec78 pc=0x40ce8d
            runtime.mallocgc(0x178, 0x6f32a0, 0x7fffbfffed01, 0x0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/malloc.go:1069 +0x850 fp=0x7fffbfffed38 sp=0x7fffbfffecb0 pc=0x40d890
            runtime.newobject(0x6f32a0, 0x46a7c0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/malloc.go:1177 +0x38 fp=0x7fffbfffed68 sp=0x7fffbfffed38 pc=0x40daf8
            runtime.malg(0xffffb90000008000, 0x0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/proc.go:3836 +0x31 fp=0x7fffbfffeda8 sp=0x7fffbfffed68 pc=0x440851
            runtime.mpreinit(0x8a8cc0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/os3_solaris.go:209 +0x29 fp=0x7fffbfffedc8 sp=0x7fffbfffeda8 pc=0x431529
            runtime.mcommoninit(0x8a8cc0, 0xffffffffffffffff)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/proc.go:708 +0xf7 fp=0x7fffbfffee10 sp=0x7fffbfffedc8 pc=0x439717
            runtime.schedinit()
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/proc.go:601 +0xaf fp=0x7fffbfffee70 sp=0x7fffbfffee10 pc=0x43928f
            runtime.rt0_go(0x7fffbfffeea8, 0x3, 0x7fffbfffeea8, 0x0, 0x0, 0x3, 0x7fffbffff14e, 0x7fffbffff1a1, 0x7fffbffff1b8, 0x0, ...)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/asm_amd64.s:216 +0x139 fp=0x7fffbfffee78 sp=0x7fffbfffee70 pc=0x467259
    --- FAIL: TestVet/unmarshal (58.66s)
        vet_test.go:162: error check failed: 
            Unmatched Errors:
            fatal error: runtime: cannot map pages in arena address space
            runtime stack:
            runtime.throw(0x704b78, 0x30)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/panic.go:1112 +0x72 fp=0x7fffbfffe958 sp=0x7fffbfffe928 pc=0x435852
            runtime.sysMap(0xc000000000, 0x4000000, 0x8d8450)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mem_bsd.go:76 +0xb8 fp=0x7fffbfffe998 sp=0x7fffbfffe958 pc=0x418b18
            runtime.(*mheap).sysAlloc(0x8c02a0, 0x400000, 0x7fffbf6e5e28, 0x7fffbf6e83a8)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/malloc.go:729 +0x1e5 fp=0x7fffbfffea38 sp=0x7fffbfffe998 pc=0x40c685
            runtime.(*mheap).grow(0x8c02a0, 0x1, 0x0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mheap.go:1312 +0x85 fp=0x7fffbfffeaa0 sp=0x7fffbfffea38 pc=0x427a25
            runtime.(*mheap).allocSpan(0x8c02a0, 0x1, 0x7fffbf652c00, 0x7fffbf6e5e28)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mheap.go:1156 +0x585 fp=0x7fffbfffeb10 sp=0x7fffbfffeaa0 pc=0x427845
            runtime.(*mheap).alloc.func1()
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mheap.go:905 +0x59 fp=0x7fffbfffeb60 sp=0x7fffbfffeb10 pc=0x460f39
            runtime.(*mheap).alloc(0x8c02a0, 0x1, 0x7fffbf6e012c, 0x6)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mheap.go:899 +0x85 fp=0x7fffbfffebb0 sp=0x7fffbfffeb60 pc=0x426e65
            runtime.(*mcentral).grow(0x8d25d8, 0x0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mcentral.go:232 +0x79 fp=0x7fffbfffebf8 sp=0x7fffbfffebb0 pc=0x418339
            runtime.(*mcentral).cacheSpan(0x8d25d8, 0x3)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mcentral.go:158 +0x2ff fp=0x7fffbfffec50 sp=0x7fffbfffebf8 pc=0x41811f
            runtime.(*mcache).refill(0x7fffbf67f108, 0x2c)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mcache.go:162 +0xaa fp=0x7fffbfffec98 sp=0x7fffbfffec50 pc=0x41762a
            runtime.(*mcache).nextFree(0x7fffbf67f108, 0x7fffbfffee2c, 0x7fffbfffeee8, 0x7fffbffff088, 0xc5d0f0e)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/malloc.go:882 +0x8d fp=0x7fffbfffecd0 sp=0x7fffbfffec98 pc=0x40ce8d
            runtime.mallocgc(0x178, 0x6f32a0, 0x7fffbfffed01, 0x0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/malloc.go:1069 +0x850 fp=0x7fffbfffed58 sp=0x7fffbfffecd0 pc=0x40d890
            runtime.newobject(0x6f32a0, 0x46a7c0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/malloc.go:1177 +0x38 fp=0x7fffbfffed88 sp=0x7fffbfffed58 pc=0x40daf8
            runtime.malg(0xffffb90000008000, 0x0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/proc.go:3836 +0x31 fp=0x7fffbfffedc8 sp=0x7fffbfffed88 pc=0x440851
            runtime.mpreinit(0x8a8cc0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/os3_solaris.go:209 +0x29 fp=0x7fffbfffede8 sp=0x7fffbfffedc8 pc=0x431529
            runtime.mcommoninit(0x8a8cc0, 0xffffffffffffffff)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/proc.go:708 +0xf7 fp=0x7fffbfffee30 sp=0x7fffbfffede8 pc=0x439717
            runtime.schedinit()
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/proc.go:601 +0xaf fp=0x7fffbfffee90 sp=0x7fffbfffee30 pc=0x43928f
            runtime.rt0_go(0x7fffbfffeec8, 0x3, 0x7fffbfffeec8, 0x0, 0x0, 0x3, 0x7fffbffff16a, 0x7fffbffff1bd, 0x7fffbffff1d4, 0x0, ...)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/asm_amd64.s:216 +0x139 fp=0x7fffbfffee98 sp=0x7fffbfffee90 pc=0x467259
    --- FAIL: TestVet/httpresponse (64.73s)
        vet_test.go:162: error check failed: 
            Unmatched Errors:
            fatal error: out of memory allocating heap arena map
            runtime stack:
            runtime.throw(0x702172, 0x27)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/panic.go:1112 +0x72 fp=0x7fffbfffe998 sp=0x7fffbfffe968 pc=0x435852
            runtime.(*mheap).sysAlloc(0x8c02a0, 0x400000, 0x7fffbf6e5e28, 0x7fffbf6e83a8)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/malloc.go:739 +0x725 fp=0x7fffbfffea38 sp=0x7fffbfffe998 pc=0x40cbc5
            runtime.(*mheap).grow(0x8c02a0, 0x1, 0x0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mheap.go:1312 +0x85 fp=0x7fffbfffeaa0 sp=0x7fffbfffea38 pc=0x427a25
            runtime.(*mheap).allocSpan(0x8c02a0, 0x1, 0x7fffbf652c00, 0x7fffbf6e5e28)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mheap.go:1156 +0x585 fp=0x7fffbfffeb10 sp=0x7fffbfffeaa0 pc=0x427845
            runtime.(*mheap).alloc.func1()
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mheap.go:905 +0x59 fp=0x7fffbfffeb60 sp=0x7fffbfffeb10 pc=0x460f39
            runtime.(*mheap).alloc(0x8c02a0, 0x1, 0x7fffbf6e012c, 0x6)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mheap.go:899 +0x85 fp=0x7fffbfffebb0 sp=0x7fffbfffeb60 pc=0x426e65
            runtime.(*mcentral).grow(0x8d25d8, 0x0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mcentral.go:232 +0x79 fp=0x7fffbfffebf8 sp=0x7fffbfffebb0 pc=0x418339
            runtime.(*mcentral).cacheSpan(0x8d25d8, 0x3)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mcentral.go:158 +0x2ff fp=0x7fffbfffec50 sp=0x7fffbfffebf8 pc=0x41811f
            runtime.(*mcache).refill(0x7fffbf67f108, 0x2c)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/mcache.go:162 +0xaa fp=0x7fffbfffec98 sp=0x7fffbfffec50 pc=0x41762a
            runtime.(*mcache).nextFree(0x7fffbf67f108, 0x7fffbfffee2c, 0x7fffbfffeee8, 0x7fffbffff088, 0xc5d0f0e)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/malloc.go:882 +0x8d fp=0x7fffbfffecd0 sp=0x7fffbfffec98 pc=0x40ce8d
            runtime.mallocgc(0x178, 0x6f32a0, 0x7fffbfffed01, 0x0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/malloc.go:1069 +0x850 fp=0x7fffbfffed58 sp=0x7fffbfffecd0 pc=0x40d890
            runtime.newobject(0x6f32a0, 0x46a7c0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/malloc.go:1177 +0x38 fp=0x7fffbfffed88 sp=0x7fffbfffed58 pc=0x40daf8
            runtime.malg(0xffffb90000008000, 0x0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/proc.go:3836 +0x31 fp=0x7fffbfffedc8 sp=0x7fffbfffed88 pc=0x440851
            runtime.mpreinit(0x8a8cc0)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/os3_solaris.go:209 +0x29 fp=0x7fffbfffede8 sp=0x7fffbfffedc8 pc=0x431529
            runtime.mcommoninit(0x8a8cc0, 0xffffffffffffffff)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/proc.go:708 +0xf7 fp=0x7fffbfffee30 sp=0x7fffbfffede8 pc=0x439717
            runtime.schedinit()
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/proc.go:601 +0xaf fp=0x7fffbfffee90 sp=0x7fffbfffee30 pc=0x43928f
            runtime.rt0_go(0x7fffbfffeec8, 0x3, 0x7fffbfffeec8, 0x0, 0x0, 0x3, 0x7fffbffff176, 0x7fffbffff1c9, 0x7fffbffff1e0, 0x0, ...)
            	/tmp/workdir-host-solaris-oracle-amd64-oraclerel/go/src/runtime/asm_amd64.s:216 +0x139 fp=0x7fffbfffee98 sp=0x7fffbfffee90 pc=0x467259
FAIL
FAIL	cmd/vet	71.163s
```

CC @mknyszek @aclements