|
From: Paul F. <pa...@so...> - 2026-03-19 19:07:58
|
https://sourceware.org/cgit/valgrind/commit/?id=466aeac29db79999d3bc04b011908ae07c46915c commit 466aeac29db79999d3bc04b011908ae07c46915c Author: Paul Floyd <pj...@wa...> Date: Thu Mar 19 20:05:18 2026 +0100 Darwin regtest: small change for memcheck descr_belowsp On Darwin reading below the bottom of the allowed stack produces a SIGBUS not a SIGSEGV. So handle that as well. The test still fails as the macOS describe mechanism is very different, relying on OS vm functions. Diff: --- memcheck/tests/descr_belowsp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/memcheck/tests/descr_belowsp.c b/memcheck/tests/descr_belowsp.c index 4b429d36ae..ea82e15ea8 100644 --- a/memcheck/tests/descr_belowsp.c +++ b/memcheck/tests/descr_belowsp.c @@ -160,6 +160,10 @@ int main(int argc, const char** argv) if (sigaction (SIGSEGV, &sa, NULL) != 0) perror("sigaction"); +#if defined(__APPLE__) + if (sigaction (SIGBUS, &sa, NULL) != 0) + perror("sigaction"); +#endif grow_the_stack(); bad_things_below_sp(); |