-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: "found bad pointer in Go heap" on darwin/arm64 #50063
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
Comments
Note that CC @jeremyfaller for routing. |
Before the "gap" the darwin-arm64-corellium was the iOS builder. They may not be related. |
Bad click. No intention to close. |
Agreed. (I'm much more concerned about this new one, because I think it's more likely to reflect a source of crashes on real users' hardware.) |
From the message it seems the bad pointer is 0x14000270000, found at *(0x14000130050+0x8), but later on
It looks like the memory content is changing between the two reads, so there is something concurrently writing to the object. But 5 is also not a valid pointer value. So from the other writer's perspective this field should not be a pointer? |
This may be interesting, or may be completely red-herring: The object's content looks a lot like some frames' arguments on some of the stacks:
goroutine 262
goroutine 264
goroutine 135
goroutine 266
object+16 and later words match exactly with the third and later arguments. object+0 and object+8 are also quite close to the second arguments. However, the object's address, 0x14000130050, doesn't match any of the stacks, and it is on an mSpanInUse span instead of a mSpanManual. |
@cherrymui Could it be a layout object (stackArgs?) used by |
That function is not called by reflect call, so probably not. |
Could also be a closure, I guess. |
That call is at https://cs.opensource.google/go/go/+/master:src/cmd/go/internal/load/pkg.go;l=1028 |
This has not happened again. Optimistically closing. |
greplogs --dashboard -md -l -e '(?ms)\Adarwin-arm64.*fatal error: found bad pointer in Go heap'
2021-12-08T17:24:46-ac7e950/darwin-arm64-12_0-toothrot
(Note two-year gap!)
2019-09-26T17:34:54-430d2aa/darwin-arm64-corellium
2019-09-25T16:33:28-8189a06/darwin-arm64-corellium
2019-08-29T19:54:46-75198b9/darwin-arm64-corellium
2019-08-27T21:02:43-cc6feab/darwin-arm64-corellium
2019-07-03T07:14:40-e2fdce9/darwin-arm64-corellium
2019-06-26T20:10:05-fc26cba/darwin-arm64-corellium
The text was updated successfully, but these errors were encountered: