-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/addr2line: TestAddr2Line fails with double / in $GOROOT_FINAL #41447
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
Comments
I can get you a patch for this, but just to set expectations: this is a test-only fix that can be avoided by using a clean path in |
Change https://golang.org/cl/255477 mentions this issue: |
@bcmills, thanks for the patch - I confirm it fixes the problem. I partly share you view on the expectations - before reporting I was wondering myself where the bug is - e.g. "is it the mistake on user side? or on go side?", because, indeed, feeding unclean path feels somewhat not good. However my final understanding is that:
Unfortunately, as I wrote in original report, even if it might seem a bit surprising, it is not easy to fix the cleannes issue on SlapOS side, where multiple layers - not every of which is in control of author of final application profile - add those Since it is 1.14 -> 1.15 regression caught for real in practice, and the fix is test only - i.e. the fix is very likely risk free - I still suggest to backport the patch into Go 1.15 as well. Kirill |
This comment has been minimized.
This comment has been minimized.
Backport issue(s) opened: #41453 (for 1.15). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases. |
@gopherbot, please backport to 1.15. See rationale in #41447 (comment). |
Thanks |
Change https://golang.org/cl/255658 mentions this issue: |
… is clean Updates #41447 Fixes #41453 Change-Id: I4460c1c7962d02c41622a5ea1a3c4bc3714a1873 Reviewed-on: https://go-review.googlesource.com/c/go/+/255477 Trust: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> (cherry picked from commit 6796a7f) Reviewed-on: https://go-review.googlesource.com/c/go/+/255658
… is clean Updates golang#41447 Fixes golang#41453 Change-Id: I4460c1c7962d02c41622a5ea1a3c4bc3714a1873 Reviewed-on: https://go-review.googlesource.com/c/go/+/255477 Trust: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> (cherry picked from commit 6796a7f) Reviewed-on: https://go-review.googlesource.com/c/go/+/255658
Hello up there. While trying to update SlapOS to use Go1.15 I've hit a bug where Go fails to install from source in case when
$GOROOT_FINAL
has an extra slash inside. It used to work correctly before. Commit cacac8b (CL 236819) is likely the cause.Even though in simple cases it is easy to workaround the issue by feeding
$GOROOT_FINAL
with only clean and normalized file paths, in practice in SlapOS context it is not always easily possible.Please find details below.
Thanks beforehand,
Kirill
/cc @bcmills
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No, it works ok with Go1.14 and other previous Go releases. It is 1.15 regression.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go1.15.2.src.tar.gz
, unpack itgofinal/
$GOROOT_BOOTSTRAP
$GOROOT_FINAL
with double//
insidecd go/src/ && ./all.bash
( Please see full tanscript with all details below )
What did you expect to see?
Everything compiles ok; tests run fine.
What did you see instead?
full transcript
The text was updated successfully, but these errors were encountered: