-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: ./run.bash crash with Go tip on Raspberry Pi 2 #12035
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm not sure if there is much we can do here. The machine is out of resources. Marking as 1.6 to consider disabling the test on small machines, if possible. |
Should I run the tests with |
I'm not sure what you are asking. What is your goal? If you just want to verify that your build works, run |
It (i.e. the all.bash) fails on ~ quad-core arm7 CPU / 1GHz / 736M free RAM. I wouldn’t say it's a small or an uncommon ARM machine ... BTW the test escapes the output t.Fatalf("expected %q, but got %q", want, got) and makes it unreadable.
Which resources? Looks like it is not the OS 'fork-bomb' protection:
|
Looks like on a quad-core armv7 CPU the test exceeds the max stacksize 8192k.
|
EDIT: sorry, scratch this comment, the test was run with the go1.4.2 in PATH And even more weirdness: 'ulimit -s /anything else than 8192/' let's the test pass, but then it occasionally fails with an another error.
|
A closer look reveals, that the c code tries to create 100 threads * 8M default stack size and the runtime adds another 150-200 threads * 8M stack. That's outside the usable 32-bit virtual memory (CONFIG_VMSPLIT_2G=y) and the subsequent pthread_create fails. IMO, the test should just lower the default stack size or the test+runtime should create less threads. |
Dup of #11959 |
CL https://golang.org/cl/14485 mentions this issue. |
Fixes #11959 Fixes #12035 Skip the CallbackGC test on linux/arm. This test takes between 30 and 60 seconds to run by itself, and is run 4 times over the course of ./run.bash (once during the runtime test, three times more later in the build). Change-Id: I4e7d3046031cd8c08f39634bdd91da6e00054caf Reviewed-on: https://go-review.googlesource.com/14485 Reviewed-by: Russ Cox <rsc@golang.org>
Go version: devel +de641ef Wed Aug 5 08:13:15 2015 +0000 linux/arm
Linux version: 4.0.9-2-ARCH #1 SMP PREEMPT Tue Jul 28 19:06:38 MDT 2015 armv7l GNU/Linux
Device: Raspberry Pi 2
If I run
./run.bash
(insrc
), I get:The text was updated successfully, but these errors were encountered: