diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2026-01-27 21:08:35 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2026-01-27 21:08:35 +0000 |
| commit | 938915a22c84af88afa587694e8d63ce9dd202f4 (patch) | |
| tree | 798412db9aab80b39fe27e85d1e2568dff3b147b /lib/libpmc/pmu-events/ssh: | |
| parent | 37d86e9487754b8541cd4418a4c42999bbb2761f (diff) | |
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
