patch 9.1.0691: python3: stable-abi may cause segfault on Python 3.11
Commit:
https://github.com/vim/vim/commit/3f7024cf865bb9790988e24909ec3e37427555e7
Author: Christian Brabandt <[email protected]>
Date: Fri Aug 23 18:39:08 2024 +0200
patch 9.1.0691: python3: stable-abi may cause segfault on Python 3.11
Problem: python3: stable-abi may cause segfault on Python 3.11
(Audrius Kažukauskas, after v9.1.0668)
Solution: do not enable the stable Python ABI by default, only when used
with --with-python3-stable-abi argument is given
related: #15543
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/auto/configure b/src/auto/configure
index f094827bb..705955482 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -7092,21 +7092,16 @@ printf %s "checking --with-python3-stable-abi
argument... " >&6; }
if test ${with_python3_stable_abi+y}
then :
withval=$with_python3_stable_abi;
- if test "X$withval" = "Xyes"; then
- vi_cv_var_python3_stable_abi=$python3_stable_abi_default
- else
- vi_cv_var_python3_stable_abi="$withval"
- fi
- { printf "%s
" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_stable_abi" >&5
+ if test "X$withval" = "Xyes"; then
+ vi_cv_var_python3_stable_abi=$python3_stable_abi_default
+ else
+ vi_cv_var_python3_stable_abi="$withval"
+ fi
+ { printf "%s
" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_stable_abi" >&5
printf "%s
" "$vi_cv_var_python3_stable_abi" >&6; }
-else $as_nop
-
- vi_cv_var_python3_stable_abi=$python3_stable_abi_default
- { printf "%s
" "$as_me:${as_lineno-$LINENO}: result: no. defaults to
$python3_stable_abi_default." >&5
-printf "%s
" "no. defaults to $python3_stable_abi_default." >&6; }
fi
- if test "X$vi_cv_var_python3_stable_abi" != "Xno"; then
+ if test "X$vi_cv_var_python3_stable_abi" != "X"; then
if test ${vi_cv_var_python3_stable_abi_hex+y}
then :
printf %s "(cached) " >&6
diff --git a/src/configure.ac b/src/configure.ac
index 43832dcc6..abd0c44e7 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -1544,16 +1544,13 @@ if test "$enable_python3interp" = "yes" -o
"$enable_python3interp" = "dynamic";
AC_SUBST(vi_cv_var_python3_stable_abi)
AC_ARG_WITH(python3-stable-abi, [ --with-python3-stable-abi=VERSION
stable ABI version to target (default: 3.8)],
[
- if test "X$withval" = "Xyes"; then
- vi_cv_var_python3_stable_abi=$python3_stable_abi_default
- else
- vi_cv_var_python3_stable_abi="$withval"
- fi
- AC_MSG_RESULT($vi_cv_var_python3_stable_abi)],
- [
- vi_cv_var_python3_stable_abi=$python3_stable_abi_default
- AC_MSG_RESULT(no. defaults to $python3_stable_abi_default.)])
- if test "X$vi_cv_var_python3_stable_abi" != "Xno"; then
+ if test "X$withval" = "Xyes"; then
+ vi_cv_var_python3_stable_abi=$python3_stable_abi_default
+ else
+ vi_cv_var_python3_stable_abi="$withval"
+ fi
+ AC_MSG_RESULT($vi_cv_var_python3_stable_abi)])
+ if test "X$vi_cv_var_python3_stable_abi" != "X"; then
AC_CACHE_VAL(vi_cv_var_python3_stable_abi_hex,
[
vi_cv_var_python3_stable_abi_hex=`
diff --git a/src/version.c b/src/version.c
index 9a6a9458f..3a34efed5 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 691,
/**/
690,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1shXPU-003IHs-3u%40256bit.org.