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: index out of range error with doublecheck enabled in heapBitsSetType on 386 #40335

martisch opened this issue Jul 21, 2020 · 1 comment


Copy link

@martisch martisch commented Jul 21, 2020

go tip with GOOS=linux and GOARCH=386 bootstrapping from go1.4 fails with an index out of range error at:

end.bitp = addb(&mheap_.arenas[endAI.l1()][endAI.l2()].bitmap[0], heapArenaBitmapBytes)

when doublecheck is set to true:

const doubleCheck = false // slow but helpful; enable to test modifications to this code

I dont believe this is specific to the bootstrap process but this is the way I can trigger it reliably on different linux machines.

cc @aclements @mknyszek

@martisch martisch added this to the Go1.16 milestone Jul 21, 2020
Copy link

@gopherbot gopherbot commented Aug 12, 2020

Change mentions this issue: runtime: simplify heapBitsSetType doubleCheck

@gopherbot gopherbot closed this in 7148abc Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants