Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: pthread_create failure in TestCgoCallbackGC on Raspberry Pi 2 linux/arm #11959
on a Raspberry Pi 2:
./all.bash of Go 1.5 beta 3 fails the TestCgoCallbackGC test:
changed the title
build: go1.5beta3 linux/arm (Raspberry Pi) TestCgoCallbackGC failure
Aug 6, 2015
I've been trying the same test on my RPI. Sometimes it passes, sometimes it
On Fri, 7 Aug 2015 04:03 Russ Cox firstname.lastname@example.org wrote:
I'm not sure it's resource exhaustion. I can build rc1 on a Digital Ocean amd64 1G single core droplet with no issue.  I've repeated the test on the 4 core 1 Gb Pi and it still fails, even after lowering the GPU memory to the minimum .
Running with strace hangs.
referenced this issue
Aug 21, 2015
I'm going to assign this to @rsc to decide, but my recommendation is not make a code change, and instead advise rpi owners to use ulimit instead. I can do a blog post to explain the situation.
I think reducing the thread stack for c threads created by the test is ok as we control both the test and runtime and we know the test threads should be using minimal stack. (i.e. i'm in favor of CL 13731). Reducing the thread stack using ulimit is too global for such a localized problem.
@minux yes I agree, constraining the test to make it pass is ok.
The test reveals a more general issue, that Go can relatively easy crash
On Raspberry Pi 2 (2GB user vmem, default 8M stack size) after roughly