I would normally suspect musl's thread stack size. Is the kernel bug confirmed?