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/go: go get fail with error "invalid abbreviation code" on mac #23176

Closed
gaoxiangxyz opened this issue Dec 19, 2017 · 15 comments
Closed

cmd/go: go get fail with error "invalid abbreviation code" on mac #23176

gaoxiangxyz opened this issue Dec 19, 2017 · 15 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.

Comments

@gaoxiangxyz
Copy link

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.9.2 and 1.10beta1

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

OSX 10.10.2 amd64

What did you do?

do go get -u github.com/derekparker/delve/cmd/dlv on mac

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

What did you expect to see?

install delve succeessful

What did you see instead?

gaoxiangzydeMacBook-Pro gaoxiangzy$ go get -u github.com/derekparker/delve/cmd/dlv
# github.com/derekparker/delve/cmd/dlv
# github.com/derekparker/delve/cmd/dlv
/usr/local/go/pkg/tool/darwin_amd64/link: /usr/local/go/pkg/tool/darwin_amd64/link: running dsymutil failed: signal: abort trap
error: invalid abbreviation code [110] for DIE at 0x000003e7 in '/var/folders/3_/j6bfy2lj59z8p4rv6zpln2zr0000gn/T/go-link-286932600/go.o'
Assertion failed: (ref_addr_die != NULL), function AppendDependants, file /SourceCache/dwarf_utilities/dwarf_utilities-121.1/source/DWARFDebugInfoEntry.cpp, line 375.
@gaoxiangxyz gaoxiangxyz changed the title invalid abbreviation code on mac go get fail with error "invalid abbreviation code" on mac Dec 19, 2017
@ALTree
Copy link
Member

ALTree commented Dec 19, 2017

This could be (but I'm not sure) a dup of #23046, which was fixed by CL 83675. The fix will likely be included in the next go1.10 beta (1.10beta2) , but in the meantime you could try with tip and see if it fixes your issue.

@ALTree ALTree changed the title go get fail with error "invalid abbreviation code" on mac cmd/go: go get fail with error "invalid abbreviation code" on mac Dec 19, 2017
@ALTree ALTree added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Dec 19, 2017
@ALTree
Copy link
Member

ALTree commented Dec 19, 2017

cc @thanm @ianlancetaylor

@thanm
Copy link
Contributor

thanm commented Dec 19, 2017

Yes, this is the same problem. You're getting an error message instead of a crash, but it is definitely the same underlying issue.

@thanm
Copy link
Contributor

thanm commented Dec 19, 2017

Duplicate of #23046

@thanm thanm marked this as a duplicate of #23046 Dec 19, 2017
@ianlancetaylor
Copy link
Contributor

I'm tempted to close this as a dup but I'm confused by the report that this problem happens with 1.9.2.

@aarzilli
Copy link
Contributor

IMHO this isn't a duplicate, IMHO this is something else and

  • either it's specific to macOS 10.10 and it hasn't been fixed
  • or it has been fixed by some of the other dsymutil-related fixes that happened in this cycle but @gaoxiangxyz thinks it hasn't been fixed because of the other bug that @thanm fixed since the beta

I don't have 10.10 so I can't investigate this (if it happened in 10.11 I'd see it as a travis failure for delve, but I don't).

@thanm
Copy link
Contributor

thanm commented Dec 19, 2017

Hmm, perhaps I was a bit hasty. @gaoxiangxyz , are you sure that both 1.9.2. and 1.10 beta are hitting the same error message?

@thanm thanm marked this as not a duplicate of #23046 Dec 19, 2017
@thanm
Copy link
Contributor

thanm commented Dec 19, 2017

See also similar bug from back in October. For this the submitter was able to fix the issue by upgrading Xcode. @gaoxiangxyz , what do you see when you run "xcodebuild -version"?

@gaoxiangxyz
Copy link
Author

gaoxiangxyz commented Dec 20, 2017

@thanm

Xcode 6.4
Build version 6E35b

Yes, I am sure, and I tried 1.9, it has same issue, but 1.8 and 1.8.5 work fine.

@gaoxiangxyz
Copy link
Author

I'm not sure whether it is a dup of #23046, it seems they have different error message.
I tried go install and it has same error, it can be fixed by with flag -ldflags "-s".

@aarzilli
Copy link
Contributor

You should try updating to Xcode 7.2.

@gaoxiangxyz
Copy link
Author

@aarzilli OK, I will have a try later

@thanm
Copy link
Contributor

thanm commented Feb 5, 2018

@gaoxiangxyz any update on this? Is the issue there for Xcode 7.2?

@gaoxiangxyz
Copy link
Author

gaoxiangxyz commented Feb 6, 2018

@thanm sorry, I have not tried it because I get some trouble to update Xcode, so I use go 1.8 now and it works

@thanm
Copy link
Contributor

thanm commented Feb 6, 2018

OK, thanks. I will close the issue; please re-open if needed.

@thanm thanm closed this as completed Feb 6, 2018
@golang golang locked and limited conversation to collaborators Feb 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

6 participants