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: netpoll failed on darwin #59679

Open
bcmills opened this issue Apr 17, 2023 · 4 comments
Open

runtime: netpoll failed on darwin #59679

bcmills opened this issue Apr 17, 2023 · 4 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Darwin
Milestone

Comments

@bcmills
Copy link
Member

bcmills commented Apr 17, 2023

#!watchflakes
post <- goos == "darwin" && log ~ `^fatal error: runtime: netpoll failed`

(Pulled out from #34988 (comment); CC @ianlancetaylor @golang/darwin)

@bcmills bcmills added the compiler/runtime Issues related to the Go compiler and/or runtime. label Apr 17, 2023
@gopherbot
Copy link

Found new dashboard test flakes for:

#!watchflakes
post <- goos == "darwin" && log ~ `^fatal error: runtime: netpoll failed`
2023-04-04 16:58 darwin-amd64-nocgo go@3991f6c4 runtime/pprof.TestCPUProfileWithFork (log)
runtime: kevent on fd 3 failed with 60
fatal error: runtime: netpoll failed

runtime stack:
runtime.throw({0x11af512?, 0x0?})
	/tmp/buildlet/go/src/runtime/panic.go:1047 +0x5d fp=0x7ff7bfefec68 sp=0x7ff7bfefec38 pc=0x1034afd
runtime.netpoll(0x1054c74?)
	/tmp/buildlet/go/src/runtime/netpoll_kqueue.go:134 +0x38e fp=0x7ff7bfeff4f8 sp=0x7ff7bfefec68 pc=0x103160e
runtime.findRunnable()
	/tmp/buildlet/go/src/runtime/proc.go:2759 +0x2af fp=0x7ff7bfeff600 sp=0x7ff7bfeff4f8 pc=0x103c64f
...
	/tmp/buildlet/go/src/os/exec.go:109 +0x5a fp=0xc000173d28 sp=0xc000173ce0 pc=0x108a31a
os/exec.(*Cmd).Start(0xc00012a2c0)
	/tmp/buildlet/go/src/os/exec/exec.go:693 +0x5ee fp=0xc000173ea0 sp=0xc000173d28 pc=0x10e256e
os/exec.(*Cmd).Run(0x11435a0?)
	/tmp/buildlet/go/src/os/exec/exec.go:587 +0x1e fp=0xc000173ec0 sp=0xc000173ea0 pc=0x10e1f3e
os/exec.(*Cmd).CombinedOutput(0xc00012a2c0)
	/tmp/buildlet/go/src/os/exec/exec.go:1005 +0xa8 fp=0xc000173ee8 sp=0xc000173ec0 pc=0x10e3da8
runtime/pprof.TestCPUProfileWithFork(0xc000083380)
	/tmp/buildlet/go/src/runtime/pprof/pprof_test.go:668 +0x194 fp=0xc000173f70 sp=0xc000173ee8 pc=0x11530b4
testing.tRunner(0xc000083380, 0x11bbfb0)

watchflakes

@bcmills bcmills added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Darwin labels Apr 17, 2023
@ianlancetaylor
Copy link
Contributor

> runtime: kevent on fd 3 failed with 60
> fatal error: runtime: netpoll failed

Error 60 is ETIMEDOUT. This shouldn't happen, and is not listed on the man page. When a call to kevent reaches the timeout, it is documented to return 0.

It would be easy for us to ignore a ETIMEDOUT error but it shouldn't be necessary.

@mknyszek mknyszek added this to the Backlog milestone Apr 19, 2023
@mknyszek
Copy link
Contributor

In triage, we think this is either a bug in Darwin or a bug in the Darwin documentation. @prattmic thinks maybe an error is bubbling up from somewhere deeper, in which case maybe we just ignore it like @ianlancetaylor suggested.

@mknyszek
Copy link
Contributor

We agree we will wait until it fails again to make a decision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Darwin
Projects
Status: Todo
Status: No status
Development

No branches or pull requests

4 participants