Fix segfault when trying to use PyRun_SimpleString() with some imports

This commit is contained in:
Miro Hrončok 2024-09-19 18:48:13 +02:00
commit d3b035438f
2 changed files with 70 additions and 1 deletions

View file

@ -17,7 +17,7 @@ URL: https://www.python.org/
%global prerel rc2
%global upstream_version %{general_version}%{?prerel}
Version: %{general_version}%{?prerel:~%{prerel}}
Release: 2%{?dist}
Release: 3%{?dist}
License: Python-2.0.1
@ -394,6 +394,10 @@ Patch251: 00251-change-user-install-location.patch
# gh-122145: Handle an empty AST body when reporting tracebacks
Patch439: 00439-gh-122145-handle-an-empty-ast-body-when-reporting-tracebacks.patch
# 00440 # 7c35d4da60c9edc333a7031434bf114660e1ad34
# gh-124160: Pass main_tstate to update_global_state_for_extension()
Patch440: 00440-gh-124160-pass-main_tstate-to-update_global_state_for_extension.patch
# (New patches go here ^^^)
#
# When adding new patches to "python" and "python3" in Fedora, EL, etc.,
@ -1735,6 +1739,9 @@ CheckPython freethreading
# ======================================================
%changelog
* Thu Sep 19 2024 Miro Hrončok <mhroncok@redhat.com> - 3.13.0~rc2-3
- Fix segfault when trying to use PyRun_SimpleString() with some imports
* Wed Sep 18 2024 Miro Hrončok <mhroncok@redhat.com> - 3.13.0~rc2-2
- Handle an empty AST body when reporting tracebacks
- Fixes: rhbz#2311907