https://github.com/python/cpython/commit/81153601539c009dcc6b68a515541f3025aad122
commit: 81153601539c009dcc6b68a515541f3025aad122
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2026-05-22T21:32:44+02:00
summary:
gh-149879: Fix test_c_stack_unwind on Cygwin (#150084)
On Cygwin, the Python library is called "cygpython3.16.dll".
files:
M Modules/_testinternalcapi.c
diff --git a/Modules/_testinternalcapi.c b/Modules/_testinternalcapi.c
index b8a22c439e853d..088f0e46c6c658 100644
--- a/Modules/_testinternalcapi.c
+++ b/Modules/_testinternalcapi.c
@@ -240,10 +240,17 @@ classify_address(uintptr_t addr, int jit_enabled,
PyInterpreterState *interp)
if (strncmp(base, "python", 6) == 0) {
return "python";
}
+#ifdef __CYGWIN__
+ // Match Cygwin "cygpython3.16.dll"
+ if (strncmp(base, "cygpython", 9) == 0) {
+ return "python";
+ }
+#else
// Match "libpython3.15.so.1.0"
if (strncmp(base, "libpython", 9) == 0) {
return "python";
}
+#endif
return "other";
}
#ifdef _Py_JIT
_______________________________________________
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]