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

runtime: provide more informative error for new thread creation failure #15476

Closed
kortschak opened this issue Apr 28, 2016 · 2 comments

Comments

Projects
None yet
4 participants
@kortschak
Copy link
Contributor

commented Apr 28, 2016

See https://groups.google.com/d/topic/golang-dev/tBtPnUcMkLw/discussion

Related to #13968. The failure below is fixed by setting ulimit -u higher, so this is a documentation/error reporting issue rather than one of behaviour.

  1. What version of Go are you using (go version)?
    go1.6.2
  2. What operating system and processor architecture are you using (go env)?
    GOARCH="amd64"
    GOBIN=""
    GOEXE=""
    GOHOSTARCH="amd64"
    GOHOSTOS="linux"
    GOOS="linux"
    GOPATH="/home/kortschak/Development"
    GORACE=""
    GOROOT="/home/kortschak/go"
    GOTOOLDIR="/home/kortschak/go/pkg/tool/linux_amd64"
    GO15VENDOREXPERIMENT="1"
    CC="gcc"
    GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
    CXX="g++"
    CGO_ENABLED="1"
  3. What did you do?
    run all.bash.
  4. What did you expect to see?
    Successful build and test.
  5. What did you see instead?
    Test failure (excerpted):
##### ../test
# go run run.go -- bigalg.go
exit status 2
# command-line-arguments
runtime: failed to create new OS thread (have 6 already; errno=11)
fatal error: newosproc

@ianlancetaylor ianlancetaylor added this to the Go1.7Maybe milestone Apr 28, 2016

@rsc

This comment has been minimized.

Copy link
Contributor

commented May 17, 2016

The linked discussion shows that the full runtime + goroutine stack is shown for the current goroutine. But we should probably force printing all the goroutines or at least all the threads in this case.

/cc @aclements

@gopherbot

This comment has been minimized.

Copy link

commented Jun 29, 2016

CL https://golang.org/cl/24570 mentions this issue.

@gopherbot gopherbot closed this in c7ae41e Jun 29, 2016

@golang golang locked and limited conversation to collaborators Jun 29, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.