Skip to content
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: unexpected bindingNone in '_go.buildid' [1.15 backport] #42948

Closed
gopherbot opened this issue Dec 2, 2020 · 4 comments
Closed

cmd/link: unexpected bindingNone in '_go.buildid' [1.15 backport] #42948

gopherbot opened this issue Dec 2, 2020 · 4 comments

Comments

@gopherbot
Copy link

@gopherbot gopherbot commented Dec 2, 2020

@robbertvanginkel requested issue #42082 to be considered for backport to the next 1.15 minor release.

@gopherbot please consider this for backport to 1.15, it's a linker regression that prevents some programs from linking succesfully.

@robbertvanginkel
Copy link

@robbertvanginkel robbertvanginkel commented Dec 2, 2020

According to #42082 (comment) https://golang.org/cl/270942 is open against the 1.15 release branch to resolve this. I've cherry-picked onto 1.15.5 locally and validated it solves our issue.

This is about a regression introduced in 1.15 that prevents us from linking some binaries for darwin. There are no workarounds.

@gopherbot
Copy link
Author

@gopherbot gopherbot commented Dec 2, 2020

Change https://golang.org/cl/270942 mentions this issue: [release-branch.go1.15] cmd/link: recompute heapPos after copyHeap

@cagedmantis
Copy link
Contributor

@cagedmantis cagedmantis commented Dec 2, 2020

This has been approved as it is a serious issue without a known workaround.

@gopherbot
Copy link
Author

@gopherbot gopherbot commented Dec 3, 2020

Closed by merging 480da60 to release-branch.go1.15.

@gopherbot gopherbot closed this Dec 3, 2020
gopherbot pushed a commit that referenced this issue Dec 3, 2020
Immediately after a forward Seek, the offset we're writing to is
beyond len(buf)+len(heap):

|<--- buf --->|<--- heap --->|
                                    ^
                                    off

If we do a copyHeap at this point, the new heapPos should not be
0:

|<---------- buf ----------->|<-heap->|
                                    ^
                                    off

Recompute it.

Updates #42082
Fixes #42948

Change-Id: Icb3e4e1c7bf7d1fd3d76a2e0d7dfcb319c661534
Reviewed-on: https://go-review.googlesource.com/c/go/+/270942
Run-TryBot: Carlos Amedee <carlos@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Trust: Cherry Zhang <cherryyz@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants