]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-131624: Fix posix_spawn tests failing on NetBSD with stack limit assertions (GH...
authorFurkan Onder <furkanonder@protonmail.com>
Sun, 13 Apr 2025 11:06:38 +0000 (11:06 +0000)
committerGitHub <noreply@github.com>
Sun, 13 Apr 2025 11:06:38 +0000 (14:06 +0300)
Fix recursive limit assertions on NetBSD for posix_spawn.

Python/ceval.c

index e4a63ad9287783d288eb2cbfe2d411ba23f2a25b..278d9e36045da2eab0649d608b6391aecc4946b8 100644 (file)
@@ -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;