aboutsummaryrefslogtreecommitdiff
path: root/lib/libpmc/pmu-events/ssh:
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-01-27 21:08:35 +0000
committerMark Johnston <markj@FreeBSD.org>2026-01-27 21:08:35 +0000
commit938915a22c84af88afa587694e8d63ce9dd202f4 (patch)
tree798412db9aab80b39fe27e85d1e2568dff3b147b /lib/libpmc/pmu-events/ssh:
parent37d86e9487754b8541cd4418a4c42999bbb2761f (diff)
netbsd-tests: Fix regcomp_too_big flakinessHEADmain
The test sometimes crashes with ASLR enabled. This seems to happen when regcomp() grows the process stack and happens to run into the virtual memory limit set at the beginning of the test. ASLR triggers the problem since it introduces a bit of fragmentation and thus introduces cases where stack allocation can be the trigger of virtual memory exhaustion, rather than dynamic memory allocation in regcomp(). Make the test stable by priming the stack before doing anything else. This effectively reserves 16MB of virtual memory for the stack, which in practice is enough to make the test stable on amd64. PR: 259971 Reviewed by: ngie, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54880
Diffstat (limited to 'lib/libpmc/pmu-events/ssh:')
0 files changed, 0 insertions, 0 deletions