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

os/signal: "timeout waiting for hangup" in TestSignal #35466

Closed
bcmills opened this issue Nov 8, 2019 · 2 comments
Closed

os/signal: "timeout waiting for hangup" in TestSignal #35466

bcmills opened this issue Nov 8, 2019 · 2 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker Soon This needs to be done soon. (regressions, serious bugs, outages)
Milestone

Comments

@bcmills bcmills added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker Soon This needs to be done soon. (regressions, serious bugs, outages) labels Nov 8, 2019
@bcmills bcmills added this to the Go1.14 milestone Nov 8, 2019
@ianlancetaylor
Copy link
Contributor

This is a problem with the test, exposed by using signals to preempt goroutines. The test uses a channel with a buffer size of 1 and passes it to signal.Notify with no arguments, meaning to accept all signals. Then it sends a SIGHUP to the process and expects to see a SIGHUP on the channel. But if the runtime sends itself a SIGURG to preempt a goroutine, then it also reports that signal to the channel. So if we get both a SIGURG and a SIGHUP, before the test reads from the channel, there isn't room in the buffer to hold the signals.

@gopherbot
Copy link

Change https://golang.org/cl/206257 mentions this issue: os/signal: use a larger channel buffer for all signals in TestSignal

@golang golang locked and limited conversation to collaborators Nov 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker Soon This needs to be done soon. (regressions, serious bugs, outages)
Projects
None yet
Development

No branches or pull requests

3 participants