cpython/Python
Miss Islington (bot) d5fdc3f07e
gh-98608: Fix Failure-handling in new_interpreter() (gh-102658)
The error-handling code in new_interpreter() has been broken for a while.  We hadn't noticed because those code mostly doesn't fail.  (I noticed while working on gh-101660.)  The problem is that we try to clear/delete the newly-created thread/interpreter using itself, which just failed.  The solution is to switch back to the calling thread state first.

(cherry picked from commit d1b883b52a)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
https: //github.com/python/cpython/issues/98608
2023-03-21 12:10:36 -07:00
..
clinic [3.10] gh-100776: Fix misleading default value in help(input) (GH-100788) (#100842) 2023-01-08 01:23:34 -08:00
_warnings.c
asdl.c
ast.c [3.10] bpo-43897: Reject "_" captures and top-level MatchStar in the AST validator (GH-27432) (GH-27435) 2021-07-28 18:02:14 -07:00
ast_opt.c
ast_unparse.c
bltinmodule.c gh-102356: Add thrashcan macros to filter object dealloc (GH-102426) 2023-03-05 03:20:41 -08:00
bootstrap_hash.c [3.10] Remove trailing spaces (GH-28709) 2021-10-03 20:03:49 +03:00
ceval.c gh-101967: add a missing error check (GH-101968) 2023-02-17 17:13:33 -08:00
ceval_gil.h gh-96387: take_gil() resets drop request before exit (GH-96869) (GH-96941) 2022-09-19 17:36:26 -07:00
codecs.c
compile.c [3.10] gh-101400: Fix incorrect lineno in exception message on contin… (gh-101448) 2023-01-31 23:42:22 +09:00
condvar.h bpo-44740: Lowercase "internet" and "web" where appropriate. (GH-27378) (GH-27380) 2021-07-27 00:34:32 +02:00
context.c
dtoa.c
dup2.c
dynamic_annotations.c
dynload_hpux.c bpo-44959: Add fallback to extension modules with '.sl' suffix on HP-UX (GH-27857) (GH-29152) 2021-11-18 17:19:19 +01:00
dynload_shlib.c
dynload_stub.c
dynload_win.c gh-101614: Don't treat python3_d.dll as a Python DLL when checking extension modules for incompatibility (GH-101615) 2023-02-08 06:48:42 -08:00
errors.c [3.10] bpo-45848: Allow the parser to get error lines from encoded files (GH-29646) (GH-29661) 2021-11-20 16:34:56 +01:00
fileutils.c bpo-47260: Fix os.closerange() potentially being a no-op in a seccomp sandbox (GH-32418) 2022-04-08 11:10:38 -07:00
formatter_unicode.c
frozen.c
frozen_hello.h
frozenmain.c
future.c
getargs.c [3.10] gh-99240: Reset pointer to NULL when the pointed memory is freed in argument parsing (GH-99890) (#100386) 2022-12-21 15:33:21 +05:30
getcompiler.c
getcopyright.c [3.10] Update copyright years to 2023. (gh-100850) 2023-01-08 17:00:24 -06:00
getopt.c
getplatform.c
getversion.c
hamt.c gh-93065: Fix HAMT to iterate correctly over 7-level deep trees (GH-93066) (GH-93146) 2022-05-24 10:52:29 +02:00
hashtable.c
import.c gh-99578: Fix refleak in _imp.create_builtin() (GH-99642) 2022-11-21 03:44:56 -08:00
importdl.c Fix format string in _PyImport_LoadDynamicModuleWithSpec() (GH-28863) 2021-10-12 10:10:59 -07:00
importdl.h
importlib.h [3.10] GH-95921: Fix positions for some chained comparisons (GH-96968) (GH-96974) 2022-09-20 15:26:56 -07:00
importlib_external.h [3.10] GH-95921: Fix positions for some chained comparisons (GH-96968) (GH-96974) 2022-09-20 15:26:56 -07:00
importlib_zipimport.h [3.10] GH-95921: Fix positions for some chained comparisons (GH-96968) (GH-96974) 2022-09-20 15:26:56 -07:00
initconfig.c gh-96848: Fix -X int_max_str_digits option parsing (GH-96988) 2022-09-26 08:46:04 -07:00
makeopcodetargets.py
marshal.c
modsupport.c
mysnprintf.c Add a warning message about PyOS_snprintf (GH-95993) 2022-10-07 13:36:21 -07:00
mystrtoul.c
opcode_targets.h
pathconfig.c [3.10] Fix typos in the Python directory (GH-28767) (GH-28799) 2021-10-07 17:30:08 +02:00
preconfig.c
pyarena.c
pyctype.c
pyfpe.c
pyhash.c
pylifecycle.c gh-98608: Fix Failure-handling in new_interpreter() (gh-102658) 2023-03-21 12:10:36 -07:00
pymath.c
pystate.c [3.10] GH-102126: fix deadlock at shutdown when clearing thread state… (#102235) 2023-03-03 18:44:30 +05:30
pystrcmp.c
pystrhex.c
pystrtod.c
Python-ast.c bpo-46289: Make conversion of FormattedValue not optional on ASDL (GH-30467) 2022-01-07 14:30:18 -08:00
pythonrun.c bpo-45614: Fix traceback display for exceptions with invalid module name (GH-29726) (GH-29826) 2021-11-29 10:07:24 +00:00
pytime.c [3.10] gh-97786: Fix compiler warnings in pytime.c (GH-101826) (#102150) 2023-02-26 12:34:21 +00:00
README
stdlib_module_names.h [3.10] bpo-45688: Add _scproxy to sys.stdlib_module_names (GH-29358) (GH-29361) 2021-11-02 12:32:36 +01:00
structmember.c bpo-44655: Include the name of the type in unset __slots__ attribute errors (GH-27199) (GH-27201) 2021-07-17 01:01:53 +01:00
suggestions.c [3.10] bpo-45826: Fix a crash in suggestions.c by checking for traceback is None (GH-29590) (GH-29602) 2021-11-18 01:28:04 +01:00
symtable.c bpo-46042: Improve SyntaxError locations in the symbol table (GH-30059) (GH-30064) 2021-12-12 01:24:12 +00:00
sysmodule.c [3.10] Correct CVE-2020-10735 documentation (GH-100306). (#100477) 2022-12-23 18:08:27 -08:00
thread.c bpo-44584: Deprecate PYTHONTHREADDEBUG env var (GH-27065) 2021-08-06 04:32:37 -07:00
thread_nt.h
thread_pthread.h bpo-41710: PyThread_acquire_lock_timed() uses sem_clockwait() (GH-28671) 2021-10-01 18:22:49 +02:00
traceback.c bpo-45831: _Py_DumpASCII() uses a single write() call if possible (GH-29596) (GH-29598) 2021-11-17 22:59:19 +01:00
wordcode_helpers.h

Miscellaneous source files for the main Python shared library