Skip to content
This repository was archived by the owner on Dec 8, 2023. It is now read-only.

Add code to increase mlocks (ulimit -l) #714

Merged
merged 2 commits into from
Aug 21, 2021
Merged

Conversation

jamessewell
Copy link
Contributor

This avoid a Go bug which crashes some go processes in Containers

The crashes look like:

I0601 05:18:25.815579 1 main.go:288] Listening securely on :9443
runtime: mlock of signal stack failed: 12
runtime: increase the mlock limit (ulimit -l) or
runtime: update your kernel to 5.3.15+, 5.4.2+, or 5.5+
fatal error: mlock failed

Discussion at: https://github.com/golang/go/wiki/LinuxKernelSignalVectorBug

ulimit -l is changed from 64 to 65536

This avoid a Go bug which crashes some go processes in Containers

The crashes look like:

I0601 05:18:25.815579       1 main.go:288] Listening securely on :9443
runtime: mlock of signal stack failed: 12
runtime: increase the mlock limit (ulimit -l) or
runtime: update your kernel to 5.3.15+, 5.4.2+, or 5.5+
fatal error: mlock failed

Discussion at: https://github.com/golang/go/wiki/LinuxKernelSignalVectorBug

ulimit -l is changed from 64 to 65536
@dweomer dweomer merged commit ab1928c into rancher:master Aug 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants