OBS multithreading broken

I want to upstream cargadgetd (as well as Golang itself) to chum, and I wanted to go the bootstrappable way (from GCC Go to current latest go release), but I was hitting wall after wall with random SIGSEGV while being unable to reproduce any of these issues locally (and I tried qemu, docker (with and without qemu), x86_64 laptop, MacBook, building in platform SDK - everywhere I tried it was working except for OBS.

It is crashing almost instantly after invoking go build and doing things like disable multithreading I can get a smaller chance of it crashing (that being said still pretty high) but overall I’m fairly confident the bug is on OBS itself and not in any of my code.

Sample failing package: Live Build Log - SailfishOS Open Build Service

The same package builds without any issues on i486 and crashes violently on both arm architectures.

So my question is how can this be solved?

1 Like