From: Paul Floyd Date: Thu, 19 Mar 2026 19:05:18 +0000 (+0100) Subject: Darwin regtest: small change for memcheck descr_belowsp X-Git-Tag: VALGRIND_3_27_0~80 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=466aeac29db79999d3bc04b011908ae07c46915c;p=thirdparty%2Fvalgrind.git 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 --git a/memcheck/tests/descr_belowsp.c b/memcheck/tests/descr_belowsp.c index 4b429d36a..ea82e15ea 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();