Skip to content

runtime: misc/cgo/test failure #4892

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

Closed
alberts opened this issue Feb 24, 2013 · 4 comments
Closed

runtime: misc/cgo/test failure #4892

alberts opened this issue Feb 24, 2013 · 4 comments
Milestone

Comments

@alberts
Copy link
Contributor

alberts commented Feb 24, 2013

What steps will reproduce the problem?

GOMAXPROCS=52
./run.bash --no-rebuild
# ../misc/cgo/test
fatal error: all goroutines are asleep - deadlock!

Which compiler are you using (5g, 6g, 8g, gccgo)?

6g

Which operating system are you using?

linux

Which version are you using?  (run 'go version')

go version devel +ca83aeaa55e0 Fri Feb 22 12:23:19 2013 +1100 linux/amd64

Please provide any additional information below.

https://groups.google.com/d/topic/golang-dev/NKt0XfyFd7E/discussion
@alberts
Copy link
Contributor Author

alberts commented Feb 25, 2013

Comment 1:

Had another manifestation of what I think is the same bug in a test that was checking
that the expected number of goroutines existed at some point:
ng := runtime.NumGoroutine()
if ng > 5 {
    panic(fmt.Sprintf("Test ended with %d running goroutines", ng))
}
it died with the following. goroutine 0 looks suspect.
panic: Test ended with 6 running goroutines
goroutine 5 [running]:
testing.func·004()
    /build/go/go/src/pkg/testing/testing.go:341 +0xbc
test.TestCleanShutdown(0xc200000240)
    test_test.go:32 +0x1a1
testing.tRunner(0xc200000240, 0xbd85a0)
    /build/go/go/src/pkg/testing/testing.go:346 +0x85
created by testing.RunTests
    /build/go/go/src/pkg/testing/testing.go:426 +0x86b
goroutine 1 [chan receive]:
testing.RunTests(0x9a0718, 0xbd85a0, 0x1, 0x1, 0x45f801, ...)
    /build/go/go/src/pkg/testing/testing.go:427 +0x88e
testing.Main(0x9a0718, 0xbd85a0, 0x1, 0x1, 0xbe3088, ...)
    /build/go/go/src/pkg/testing/testing.go:358 +0x8a
main.main()
    test/_test/_testmain.go:43 +0x9a
goroutine 0 [syscall]:
goroutine 6 [syscall]:
syscall.Syscall6()
    /build/go/go/src/pkg/syscall/asm_linux_amd64.s:40 +0x5
syscall.EpollWait(0x9, 0xc2001980c0, 0xa, 0xa, 0xffffffffffffffff, ...)
    /build/go/go/src/pkg/syscall/zerrors_linux_amd64.go:1871 +0x95
net.(*pollster).WaitFD(0xc2001980b0, 0xc20015be40, 0x0, 0x0, 0x0, ...)
    /build/go/go/src/pkg/net/fd_linux.go:151 +0x127
net.(*pollServer).Run(0xc20015be40)
    /build/go/go/src/pkg/net/fd_unix.go:212 +0x10a
created by net.newPollServer
    /build/go/go/src/pkg/net/newpollserver_unix.go:33 +0x2d5

@dvyukov
Copy link
Member

dvyukov commented Feb 25, 2013

Comment 2:

that's the issue with grunning that I described recently somewhere in the group

@alberts
Copy link
Contributor Author

alberts commented Feb 25, 2013

Comment 3:

Thanks. I linked to the discussion above.

@dvyukov
Copy link
Member

dvyukov commented Mar 2, 2013

Comment 4:

Fixed by
https://code.google.com/p/go/source/detail?r=231af8ac63aafe8d5bd8a2c295034f686cb99368

Owner changed to @dvyukov.

Status changed to Fixed.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1maybe label Apr 14, 2015
@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