-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
cmd/link/internal/ld: panic in deadcode on darwin #33775
Comments
Thank you for the report Bryan! Empirically that code doesn't make sense unless there perhaps was a data race or just data corruption that made s.FuncInfo nil, because the line it is failing on, given commit e764432 as per the logs, the line is go/src/cmd/link/internal/ld/deadcode.go Line 352 in e764432
and right before it, we explicitly checked that s.FuncInfo != nil as per go/src/cmd/link/internal/ld/deadcode.go Lines 351 to 355 in e764432
And that code seems to be invoked sequentially. |
The 2019-11-12T01:09:23-e2cac31/darwin-amd64-10_11 |
Unusual looking bug to me. That LOC is unlikely to fail unless AllSyms has ben corrupted with a nil symbol and I don't see how that's really possible. If we check for nil at this location, we'll be playing whack-a-mole through the rest of the linker checking for nil every time we loop through AllSym. The only three possibilities that come to mind are: some different runtime memory bug that's manifesting here, a bug in mmap for darwin, or a bad machine we just happen to get unlucky with. |
A bad machine seems unlikely, given the consistency of the stack trace and the number of occurrences. Either of the other two seems more plausible. |
I don't see any occurrences for several months, and we've merged a new linker. Likely fixed. |
Observed on the
darwin-386-10_14
builder (https://build.golang.org/log/52334b038bdb15873c9661a4bd19a514d7d57626):See previously #17140, #16887.
CC @cherrymui @mdempsky @ianlancetaylor
The text was updated successfully, but these errors were encountered: