https://github.com/python/cpython/commit/c7f6535e4a3b447fbd67bf98eea82fd243e780be
commit: c7f6535e4a3b447fbd67bf98eea82fd243e780be
branch: main
author: Furkan Onder <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2025-04-13T14:06:38+03:00
summary:
gh-131624: Fix posix_spawn tests failing on NetBSD with stack limit assertions
(GH-131625)
Fix recursive limit assertions on NetBSD for posix_spawn.
files:
M Python/ceval.c
diff --git a/Python/ceval.c b/Python/ceval.c
index e4a63ad9287783..278d9e36045da2 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;
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]