You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know there are already multiple issues floating around with reports of this (#183, #188, #194), but instead of replying individually to each, I figured I would open a new one because I have code that reproduces the issue.
The issue is that the meta0 and meta1 pointers seem to point to memory bolt no longer owns. I suspect that if the mmapped region grows, leading to a memory reallocation (and invalidation of old pointers), while simultaneously another goroutine tries to call meta(), it crashes because some necessary locks are missing. But that's just a suspicion after initial looks at the code; I have no proof of that.
I can only seem to reproduce this crash when the test app is built using GOARCH=386, but OS seems irrelevant (reproduced as a 32bit binary on windows, mac and linux). Crash can be reproduced reliably on 4 different machines so far (when built as 32bit) on 3 different OS.
I know there are already multiple issues floating around with reports of this (#183, #188, #194), but instead of replying individually to each, I figured I would open a new one because I have code that reproduces the issue.
The issue is that the
meta0
andmeta1
pointers seem to point to memory bolt no longer owns. I suspect that if the mmapped region grows, leading to a memory reallocation (and invalidation of old pointers), while simultaneously another goroutine tries to callmeta()
, it crashes because some necessary locks are missing. But that's just a suspicion after initial looks at the code; I have no proof of that.Crash (partial) stacktrace:
I can only seem to reproduce this crash when the test app is built using GOARCH=386, but OS seems irrelevant (reproduced as a 32bit binary on windows, mac and linux). Crash can be reproduced reliably on 4 different machines so far (when built as 32bit) on 3 different OS.
Code (simple app) that reproduces the issue:
The text was updated successfully, but these errors were encountered: