-
Notifications
You must be signed in to change notification settings - Fork 18.1k
cmd/link: malformed mach-o image: segment __DWARF has vmsize < filesize #34935
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 don't understand. The fix for #32673 was backported to 1.11 and 1.12. That means it is already there in 1.13. Your issue must be something else. Could you provide more details of how to reproduce this ? |
Its not work on the MacOS Catalina. |
I had the same problem, updated go with the newest version from the website and it worked again. Also on MacOS Catalina. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@agnivade To give you an idea, when I source .bashrc or try to run a go program, I am getting that error. |
@agnivade |
Somebody please tell us how to reproduce this. Tell us precisely what you did. Tell us precisely what happened. Thanks. |
I will do my best to explain but I did lots of things to make it work. 1- I removed my previous go version by deleting /usr/local/go and /etc/paths.d/go. 3- I have these lines in my .bashrc
When I tried to run source .bashrc that error happened. I ended up installing the golang using the pkg installer and it looks normal now. To be honest, I don't know exactly at what conditions that error occurs but I know that is happened when I tried to install it using archive package. Thanks, |
If
We can only fix this problem if we have a way to reproduce this ourselves. Thanks. (Separately, I recommend very strongly that you not set |
I also have a auto-completion call for a go program in .bashrc. Thanks for your recommendation, I will consider it. If I encountered again, I will let you know. |
What program does the auto-completion call try to run? Exactly how was that program built? Thanks. |
It just a go program which has a cli using cobra framework. |
Thanks, but that doesn't help tell us what we need to know. We can only fix this problem if we have a way to reproduce this ourselves. Thanks. |
Man I'm getting it too |
I’m also receiving this error |
That commit actually landed before 1.13 debuted. |
@bolenzhang It would be nice if we could close this bug out -- any more to do / say here? |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
I hit this trying to use a executable from this repo: https://github.com/kyleconroy/sqlc.git
|
Hi @xt0fer , this issue is closed -- if you are still seeing problems, please open a new issue, including details on how to reproduce (go version, etc). As mentioned previously this should have been fixed in Go 1.13. |
yeah, I should have mentioned this result was using... 1.13.5 |
OK, I built a fresh copy of Go from the go1.13 release branch on my macbook, downloaded github.com/kyleconroy/sqlc, did "cd cmd/sqlc; go build; ./sqlc", and I don't see this issue (I just get a usage message). Anything else that I am missing? My machine is running 10.14.6. |
Negative; I was (damn |
OK, thanks for confirming that. |
One of my F/E Engineers are receiving this issue on both 1.12.5 and 1.13.8. Should I have him roll back to 1.13.5? |
@itsmontoya the fix for this problem has been in Go1.13 since 1.13.1 -- can you please verify that you are indeed using the correct version? Several other folks have posted similarly and in each case the problem was a stale Go version. Thanks. |
I should add that Go 1.12.5 does not contain the release for this bug, you will need Go 1.12.7 or later. |
I still encountered this issue in the Go newest version v1.14.2. I posted an issue here, could someone please check? #38765 |
What version of Go are you using (
go version
)?why not fix this issue #32673 in the version of go1.13?
Does this issue reproduce with the latest release?
no
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Ran a shell script about golang testing.
What did you expect to see?
it works without errors
What did you see instead?
dyld: malformed mach-o image: segment __DWARF has vmsize < filesize
The text was updated successfully, but these errors were encountered: