Repository navigation
docs: explain SIGKILLed test processes under a zero RTTIME limit - #275
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cause
The SIGKILLs in #253 come from the kernel, not from another process. The test host passes down an
RLIMIT_RTTIMEhard limit of 0.signal:signal_generate, filtered to SIGKILL, caught 6 vitest worker deaths and 4 other Node processes killed the same way. In each one the process raised the signal against itself withcode=128(SI_KERNEL). The kernel stack ended insend_signal_lockedcalled fromposix_cpu_timers_work.RLIMIT_CPUis unlimited, so the only SIGKILL left in that path is theRLIMIT_RTTIMEhard-limit check.Max realtime timeout 0 0, and every process it starts inherits that. systemd, the user manager and the compositor have it unlimited. Slack, Chromium, Zed and a Firefox-based browser also run with 0 on this host. rtkit is not installed.systemd-run --userunit, with RTTIME unlimited and everything else the same, logged no worker exit. That run was noisy, because/tmpfilled up and the cgroup tests failed in the service cgroup. Under the T3 Code limit, about one round in four logged a worker exit.The test suite cannot change a hard limit of 0, and CI does not set one. This PR documents the host requirement in
AGENTS.md.Not established: which code arms the per-thread CPU timer in the victims. Plain Node CPU loops, worker threads and repeated spawns survive under the limit.
Validation
bunx vitest run test/security: 152 passed. The security scan reads prose.bun run lintand PickCheck: clean. The change is documentation only.Closes #253
Closes #224