cmd/link: segfault given a text section named after a type #18715
Labels
Milestone
Comments
Is this a regression from Go 1.7? |
It appears so, I just tested with go 1.7 and this did not crash. It did not give any warning either. |
@ianlancetaylor, thoughts? |
It's unfortunate that the linker crashes, but I don't see any way to turn this code into a correct program. I think that we should fix the linker to report an error message and not crash, but we can do that for 1.9. |
this doesnt crash the linker anymore on tip |
@jessfraz Thanks, closing. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Go1.8-rc1
Go env output
The following code crashes the linker. Granted, it is incorrect, but I encountered this by accident in a medium sized code base and it was difficult to figure out what was going wrong.
The linker crashes given this
main.go
andmain.s
.main.go
main.s
Output
The text was updated successfully, but these errors were encountered: