treeder
1
Trying to build a Go project and I’m getting this:
go build
./api
runtime/cgo: pthread_create failed: Invalid argument
SIGABRT: abort
PC=0x7a6c6b274ddc m=0 sigcode=18446744073709551610
goroutine 0 gp=0x203b8a0 m=0 mp=0x203c680 [idle]:
runtime: g 0 gp=0x203b8a0: unknown pc 0x7a6c6b274ddc
stack: frame={sp:0x7fff5b46bf70, fp:0x0} stack=[0x7fff5ac6f000,0x7fff5b46c3d0)
0x00007fff5b46be70: 0x0000000000000000 0x00007a6c6b3c34e0
dev.nix config:
The exact same project runs fine on Codespaces.
treeder
2
@kirupa is there an issue running gcc / cgo?
Also, what is the max memory on each instance?
Alex
3
We’re aware of a cgo issue specifically to nix channel 24.05, wonder if this is related.
Normally switching back to 23.11 works. Can you help us verify that in your case please?
treeder
4
Yep, that works. Broken since April, guess not a lot of people using nix and Go?