Skip to content
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

openbsd: runtime: failed to create new OS thread (have 1 already; errno=91) #2270

Closed
tjyang opened this issue Sep 18, 2011 · 3 comments
Closed

Comments

@tjyang
Copy link

tjyang commented Sep 18, 2011

What steps will reproduce the problem?
1. download go tip src tree.
2. make sure ulimit is like following at least

-bash-4.2$ ulimit -a
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) 2097152
file size               (blocks, -f) unlimited
max locked memory       (kbytes, -l) 1027616
max memory size         (kbytes, -m) 3080188
open files                      (-n) 512
pipe size            (512 bytes, -p) 1
stack size              (kbytes, -s) 4096
cpu time               (seconds, -t) unlimited
max user processes              (-u) 1024
virtual memory          (kbytes, -v) 2101248
-bash-4.2$ ^C


3. cd go/src;all.bash

What is the expected output?

no test errors

What do you see instead?


install http/fcgi
install rpc/jsonrpc
gmake: Leaving directory `/home/tip/go/src/pkg'

---
Installed Go for openbsd/386 in /home/tip/go.
Installed commands in /home/tip/go/bin.
*** You need to add /home/tip/go/bin to your $PATH. ***
The compiler is 8g.

--- cd pkg
test archive/tar
TEST FAIL archive/tar
gmake[1]: Entering directory `/home/tip/go/src/pkg/archive/tar'
gotest -test.short -test.timeout=120
rm -f _test/archive/tar.a
8g  -p archive/tar -o _gotest_.8 common.go reader.go writer.go  reader_test.go
writer_test.go
rm -f _test/archive/tar.a
gopack grc _test/archive/tar.a _gotest_.8
runtime: failed to create new OS thread (have 1 already; errno=91)
runtime: is kern.rthreads disabled?
throw: runtime.newosproc

goroutine 2 [syscall]:
syscall.Syscall6()
        /home/tip/go/src/pkg/syscall/asm_openbsd_386.s:38 +0x5
syscall.Select(0x0, 0x0, 0x0, 0x0, 0x186001e0, ...)
        /home/tip/go/src/pkg/syscall/zsyscall_openbsd_386.go:727 +0x5e
syscall.Sleep(0x3b9aca00, 0x0, 0x0, 0x0)
        /home/tip/go/src/pkg/syscall/syscall_bsd.go:140 +0x91
time.sysSleep(0x3b9aca00, 0x0, 0x0, 0x0)
        /home/tip/go/src/pkg/time/sys_unix.go:13 +0x2e
time.sleeper(0x1, 0x0)
        /home/tip/go/src/pkg/time/sleep.go:128 +0x132
created by time.after
        /home/tip/go/src/pkg/time/sleep.go:109 +0x25f

goroutine 1 [chan receive]:
testing.RunTests(0x8048c00, 0x81943e8, 0x5)
        /home/tip/go/src/pkg/testing/testing.go:201 +0x53c
testing.Main(0x8048c00, 0x81943e8, 0x5, 0x5, 0x819d718, ...)
        /home/tip/go/src/pkg/testing/testing.go:168 +0x46
main.main()
        /home/tip/go/src/pkg/archive/tar/_testmain.go:33 +0x40

goroutine 3 [runnable]:
testing.tRunner(0x186161c0, 0x81943e8, 0x0)
        /home/tip/go/src/pkg/testing/testing.go:155
created by testing.RunTests
        /home/tip/go/src/pkg/testing/testing.go:200 +0x50e
gotest: "./8.out -test.short=true -test.timeout=120" failed: exit status 2
gmake[1]: *** [testshort] Error 2
gmake[1]: Leaving directory `/home/tip/go/src/pkg/archive/tar'
gmake: *** [archive/tar.testshort] Error 1
-bash-4.2$ 


Which operating system are you using?

-bash-4.2$ uname -a
OpenBSD openbsd50.test.net 5.0 GENERIC.MP#66 i386
-bash-4.2$

Which revision are you using?  (hg identify)

-bash-4.2$ hg id
5729b8d311d4 tip
-bash-4.2$

Please provide any additional information below.
@masiulaniec
Copy link

Comment 1:

"runtime: is kern.rthreads disabled?"

@tjyang
Copy link
Author

tjyang commented Sep 19, 2011

Comment 2:

Thanks. Resolved by following command.
-bash-4.2# sysctl kern.rthreads=1
kern.rthreads: 0 -> 1
-bash-4.2#
 Message of "is kern.rthreads disabled ?" could be more helpful to OpenBSD beginner(like me) with above sysctl command appended.

@adg
Copy link
Contributor

adg commented Sep 19, 2011

Comment 3:

Status changed to Retracted.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants