Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/link: binaries packed with UPX run into segfault with 1.8 #19625
What version of Go are you using (
@bradfitz: I haven't filed a bug against UPX because this was working properly with Go 1.7.5. I don't have a strong opinion related to this. Some use UPX to get smaller binaries. It seemed to be a good idea to bring this up since Go 1.8.1 is the next release. I didn't know whether this was a known issue or not.
Please feel free to close this immediately if it's not considered an issue or a bug.
@unclejack FYI - just had the same problem, but i was using the same GO version on my old app and new one which was very similar to yours - simple "hello world". It seems that it throws "core dumped" when GO binary is too small ;-)
Go binary size: 3,7M - after UPX: 897K - core dumped
No idea where's the actual border line for UPX to make things work, i had not that much time to play with it.
I took this code from softlayer repo, just to trigger their package for compiler and test it against UPX.
11M before UPX, 2,4M after UPX - works but kinda pointless in this kind of small app - should work with real one thought.