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: go.1.18.3 unexpected fault SIGBUS: bus error in Linux (Ubuntu) #53292
Comments
what sort of filesystem are you using? |
$ mount |grep '/ '
/dev/mapper/vgubuntu-root on / type ext4 (rw,relatime,errors=remount-ro) $ blkid
/dev/mapper/nvme0n1p3_crypt: UUID="OSQ82R-...-cE2a38" TYPE="LVM2_member"
/dev/mapper/vgubuntu-swap_1: UUID="7cc33721-...-df562c6bf03f" TYPE="swap"
/dev/mapper/vgubuntu-root: UUID="bc796560-...-83219df83397" TYPE="ext4" It is an encrypted filesystem. |
One possibility for error like that is that the object file is corrupted. Could you try a clean the build cache ( |
Uhm, strange I downloaded the binary straight from https://go.dev/dl/ go1.18.3.linux-amd64.tar.gz $ shasum -a 256 /tmp/go1.18.3.linux-amd64.tar.gz
956f8507b302ab0bb747613695cdae10af99bbd39a90cae522b7c0302cc27245 /tmp/go1.18.3.linux-amd64.tar.gz
$ shasum -a 256 bin/go
7d356589258095955510e2c5c3d2de749cf04a65549ad4f83099c29b32efd51b bin/go But hey! $ go clean -cache && go clean -modcache And when I tried to build I did not get the SIGBUS, instead I got the same errors that 1.18.2 would produce, which might be due to that project not supporting 1.18 yet. Thank you very much! One question, should I be running those build cache cleanups on every go upgrade? |
Generally you don't have to clean the caches. But if you got weird errors like that, it could be a file corruption and it's probably worth trying cleaning the cache. Also, as the cache is keyed by some hash value, I guess under rare circumstances there could be hash collision. On the other hand, if you upgrade the Go toolchain, the old cache is not useful anyway, as the toolchain version is part of the cache key. So you may well clean it to free up some disk space. |
What version of Go are you using (
go version
)?go.1.18.2 does not sigbus
Does this issue reproduce with the latest release?
Yes, go.18.3 is the latest Go out there today.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
As explained here: kubernetes-sigs/controller-tools#690
I initially thought it was a bug in the controller-tools project.
What did you expect to see?
That should compile, or at least not throw away a
SIGBUS
fault.I tested 1.17 and that worked. With 1.18.2 I got compiler errors, but not a SIGBUS, I am guessing that project is not 1.18 ready, but still it should not sigfault right?
What did you see instead?
The
SIGBUS
fault referenced above.The text was updated successfully, but these errors were encountered: