-
Notifications
You must be signed in to change notification settings - Fork 18k
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: -gcflags=-race causes panic #42396
Comments
Out of curiosity, why do you use |
I can take a look at this. |
Actually, what I did is |
Change https://golang.org/cl/267881 mentions this issue: |
Just FYI, with the fix I submitted to the linker, we no longer get the panic. The error message is slightly different from before however. Instead of "relocation target runtime.racefuncexit not defined" it will be an error of the form "reference to undefined builtin 'runtime.racefuncexit' from package ". Hope that is ok. |
@katiehockman and I ran into an error which I think might be caused by CL 267881. Specifically, we're trying to merge
@thanm Any idea why this is happening? If it's helpful, I can try to make a more minimal test case in a new issue. |
This looks like a slightly different problem from the original bug, I think it might make sense to file another issue. The CL in question is mainly there to convert a linker panic into a regular link error, whereas in this case it looks as though it should be possible for the link to succeed. I can pull your CL and try taking a closer look at it. |
New issue filed with smaller repro: #43107 |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Friendly error messages like go1.14.x does:
What did you see instead?
Panic on go1.15.x and tip:
The text was updated successfully, but these errors were encountered: