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

Closed
martisch opened this issue Jul 21, 2020 · 1 comment
Labels
FrozenDueToAge NeedsInvestigation
Milestone

Comments

@martisch
Copy link
Contributor

@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 the NeedsInvestigation label Jul 21, 2020
@martisch martisch added this to the Go1.16 milestone Jul 21, 2020
@gopherbot
Copy link

@gopherbot gopherbot commented Aug 12, 2020

Change https://golang.org/cl/244538 mentions this issue: runtime: simplify heapBitsSetType doubleCheck

@golang golang locked and limited conversation to collaborators Aug 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation
Projects
None yet
Development

No branches or pull requests

2 participants