ld: segfault due to nil pointer on FreeBSD/amd64 #42658
Comments
Thanks for the report. You wrote: "but I cannot reproduce it again on go1.15.5 either" -- meaning that this is not a repeatable/reproducible crash? Looking at the failing stack trace, the value passed to "dst" in loader.(*Loader).migrateAttributes is corrupted, which doesn't seem possible. The only things written to the loader's Syms slice are sym.Symbol pointers. |
That's correct, I SSHed into the build VM trying to reproduce it there after I couldn't locally, and now it doesn't seem to be happening anymore. I've only seen it that one time on the linked build. There is a check that the symbol isn't null right before migrateAttributes is called, so I couldn't see how this would happen either. Never the less, it did, so I thought I'd better report it |
Thanks for confirming. Well, we can just keep an eye out in case something similar happens again. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Unsure, the new linker code likely doesn't have the same problem but I cannot reproduce it again on
go1.15.5
either and don't see how it's possible at all.What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Ran tests with
go test -v -cover ./...
, full test run including failure available here:https://builds.sr.ht/~samwhited/job/344541#task-setup
What did you see instead?
I cannot see how this would be possible at that point in the code (there is a check that the symbol is not nil and if the loader were nil it would have paniced way before that), and SSHing into the build machine and running tests again I am unable to reproduce the problem.
The text was updated successfully, but these errors were encountered: