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

runtime: "slice bounds out of range" in runtime.(*addrRanges).add on js-wasm builder #36113

Closed
bcmills opened this issue Dec 12, 2019 · 2 comments
Closed

Comments

@bcmills
Copy link
Member

@bcmills bcmills commented Dec 12, 2019

2019-11-26T21:15:47-368ea8f/js-wasm

fatal error: slice bounds out of range

runtime stack:
runtime.throw(0x83de3, 0x19)
	/workdir/go/src/runtime/panic.go:1106 +0x7
runtime.panicCheck1(0x11cd003f, 0x83de3, 0x19)
	/workdir/go/src/runtime/panic.go:40 +0x6
runtime.goPanicSliceB(0x11, 0x10)
	/workdir/go/src/runtime/panic.go:115 +0x2
runtime.(*addrRanges).add(0x32e0d0, 0x9000000, 0x9400000)
	/workdir/go/src/runtime/mranges.go:140 +0x3f
runtime.(*pageAlloc).grow(0x32e048, 0x9000000, 0x400000)
	/workdir/go/src/runtime/mpagealloc.go:357 +0x17
runtime.(*mheap).grow(0x32e040, 0x1c, 0x0)
	/workdir/go/src/runtime/mheap.go:1321 +0xa
runtime.(*mheap).allocSpan(0x32e040, 0x1c, 0x8610000, 0x346a88, 0x1e0f)
	/workdir/go/src/runtime/mheap.go:1120 +0x8e
runtime.(*mheap).alloc.func1()
	/workdir/go/src/runtime/mheap.go:867 +0x5
runtime.(*mheap).alloc(0x32e040, 0x1c, 0x139c0100, 0x32e040)
	/workdir/go/src/runtime/mheap.go:861 +0x2
runtime.largeAlloc(0x37f60, 0x139f0001, 0x75a7f68)
	/workdir/go/src/runtime/malloc.go:1150 +0x9
runtime.mallocgc.func1()
	/workdir/go/src/runtime/malloc.go:1045 +0x2
runtime.systemstack(0x34a1c0)
	/workdir/go/src/runtime/asm_wasm.s:166 +0x2
runtime.mstart()
	/workdir/go/src/runtime/proc.go:1077

CC @mknyszek @aclements

@bcmills bcmills added this to the Go1.14 milestone Dec 12, 2019
@cherrymui

This comment has been minimized.

Copy link
Contributor

@cherrymui cherrymui commented Dec 12, 2019

@gopherbot

This comment has been minimized.

Copy link

@gopherbot gopherbot commented Dec 12, 2019

Change https://golang.org/cl/211157 mentions this issue: runtime: fix off-by-1 error on address ranges

@gopherbot gopherbot closed this in 1475b97 Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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