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: mlock of signal stack failed: 12 [1.14 backport] #37807

Closed
gopherbot opened this issue Mar 11, 2020 · 5 comments
Closed

runtime: mlock of signal stack failed: 12 [1.14 backport] #37807

gopherbot opened this issue Mar 11, 2020 · 5 comments
Labels
CherryPickApproved Used during the release process for point releases FrozenDueToAge release-blocker
Milestone

Comments

@gopherbot
Copy link

@toothrot requested issue #37436 to be considered for backport to the next 1.14 minor release.

@gopherbot please backport to go1.14. It is a serious problem with no workaround.

@gopherbot gopherbot added the CherryPickCandidate Used during the release process for point releases label Mar 11, 2020
@gopherbot gopherbot added this to the Go1.14.1 milestone Mar 11, 2020
@toothrot toothrot added release-blocker CherryPickApproved Used during the release process for point releases and removed CherryPickCandidate Used during the release process for point releases labels Mar 11, 2020
@toothrot
Copy link
Contributor

Approving as this is a serious problem with no workaround.

@gopherbot
Copy link
Author

Change https://golang.org/cl/223417 mentions this issue: [release-branch.go1.14]runtime: don't crash on mlock failure

gopherbot pushed a commit that referenced this issue Mar 16, 2020
Instead, note that mlock has failed, start trying the mitigation of
touching the signal stack before sending a preemption signal, and,
if the program crashes, mention the possible problem and a wiki page
describing the issue (https://golang.org/wiki/LinuxKernelSignalVectorBug).

Tested on a kernel in the buggy version range, but with the patch,
by using `ulimit -l 0`.

For #37436
Fixes #37807

Change-Id: I072aadb2101496dffd655e442fa5c367dad46ce8
Reviewed-on: https://go-review.googlesource.com/c/go/+/223121
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
(cherry picked from commit b851e51)
Reviewed-on: https://go-review.googlesource.com/c/go/+/223417
TryBot-Result: Gobot Gobot <gobot@golang.org>
@gopherbot
Copy link
Author

Closed by merging c512509 to release-branch.go1.14.

@mrkkrp
Copy link

mrkkrp commented Mar 17, 2020

Sorry for the stupid question, but how downstream users can take advantage of this fix now? Is a new release planned?

@ianlancetaylor
Copy link
Contributor

Yes, we plan to make a 1.14.1 release. It's currently pending on #37833 and #37298.

flokli added a commit to flokli/nixpkgs that referenced this issue Apr 2, 2020
This contains at least golang/go#37807, which
currently causes some of our go binaries to just fail when booted with
older kernels.

See golang/go#37436 for context.
Mic92 pushed a commit to NixOS/nixpkgs that referenced this issue Apr 2, 2020
This contains at least golang/go#37807, which
currently causes some of our go binaries to just fail when booted with
older kernels.

See golang/go#37436 for context.

(cherry picked from commit da2146d)
stigok pushed a commit to stigok/nixpkgs that referenced this issue Jun 12, 2020
This contains at least golang/go#37807, which
currently causes some of our go binaries to just fail when booted with
older kernels.

See golang/go#37436 for context.

(cherry picked from commit da2146d)
@golang golang locked and limited conversation to collaborators Mar 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CherryPickApproved Used during the release process for point releases FrozenDueToAge release-blocker
Projects
None yet
Development

No branches or pull requests

4 participants