Qemu: uncaught target signal 11 (Segmentation fault) - core dumped


Today my balena build fails on line

[main] Step 12/62 : RUN cd $GOPATH/src/github.com/myCompany/myApp/app/apps/myApp && CGO_ENABLED=1 go build -o /myApp -ldflags “-linkmode external -extldflags -static”
[main] —> Running in df912e2f65c7
[main] qemu: uncaught target signal 11 (Segmentation fault) - core dumped
[main] Segmentation fault (core dumped)

Or sometimes it prints still working for a long time:

[main] —> Running in 5a867524296c
[Info] Still working…
[Info] Still working…
[Info] Still working…

In the beginning of the build it prints:

[Info]     Running locally emulated build
[Info]     Pulling previous images for caching purposes...

Usually, it works though. I don’t see any problem on status page



Did you explicitly request an emulated build?

Qemu is known to be unreliable with go compilations, and we would always recommend using our native arm builders instead (and they’ll also provide much faster builds).

Occassionally network hiccups can cause the builder to fallback to an emulated build, perhaps this is what happened? In that case you should be able to repush, get a native ARM builder, and your build will succeed.