From c7f6535e4a3b447fbd67bf98eea82fd243e780be Mon Sep 17 00:00:00 2001 From: Furkan Onder Date: Sun, 13 Apr 2025 11:06:38 +0000 Subject: [PATCH] gh-131624: Fix posix_spawn tests failing on NetBSD with stack limit assertions (GH-131625) Fix recursive limit assertions on NetBSD for posix_spawn. --- Python/ceval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/ceval.c b/Python/ceval.c index e4a63ad92877..278d9e36045d 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -437,7 +437,7 @@ _Py_InitializeRecursionLimits(PyThreadState *tstate) _tstate->c_stack_soft_limit = _tstate->c_stack_hard_limit + PYOS_STACK_MARGIN_BYTES; #else uintptr_t here_addr = _Py_get_machine_stack_pointer(); -# if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(_AIX) +# if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(_AIX) && !defined(__NetBSD__) size_t stack_size, guard_size; void *stack_addr; pthread_attr_t attr;