if you've been using qemu emulation to do your whole build in a different architecture like this
docker buildx build --platform=linux/amd64 -t whatever .
and you've been getting a segmentation fault at some point like this,
> [builder 4/4] RUN CGO_ENABLED=0 go build -ldflags '-w -extldflags "-static"' -o whatever ./cmd/whatever