cpython/Modules
Victor Stinner 45a78f906d
bpo-44434: Don't call PyThread_exit_thread() explicitly (GH-26758)
_thread.start_new_thread() no longer calls PyThread_exit_thread()
explicitly at the thread exit, the call was redundant.

On Linux with the glibc, pthread_cancel() loads dynamically the
libgcc_s.so.1 library. dlopen() can fail if there is no more
available file descriptor to open the file. In this case, the process
aborts with the error message:

"libgcc_s.so.1 must be installed for pthread_cancel to work"

pthread_cancel() unwinds back to the thread's wrapping function that
calls the thread entry point.

The unwind function is dynamically loaded from the libgcc_s library
since it is tightly coupled to the C compiler (GCC). The unwinder
depends on DWARF, the compiler generates DWARF, so the unwinder
belongs to the compiler.

Thanks Florian Weimer and Carlos O'Donell for their help on
investigating this issue.
2021-06-21 13:16:18 +02:00
..
_blake2 bpo-43908: Mark ssl, hash, and hmac types as immutable (GH-25792) 2021-05-02 09:47:45 +02:00
_ctypes Align comment for better readability. (GH-26192) 2021-06-04 18:41:23 -03:00
_decimal bpo-44263: Fix _decimal and _testcapi GC protocol (GH-26464) 2021-05-31 13:10:31 +02:00
_io bpo-30555: Fix WindowsConsoleIO fails in the presence of fd redirection (GH-1927) 2021-04-23 23:00:27 +01:00
_multiprocessing
_sha3 bpo-36515: Disable unaligned memory access in _sha3 on ARM (GH-25927) 2021-05-05 13:55:33 -07:00
_sqlite bpo-44087: Disallow instantiation of sqlite3.Statement (GH-26567) 2021-06-20 20:24:32 +01:00
_ssl bpo-43908: Mark ssl, hash, and hmac types as immutable (GH-25792) 2021-05-02 09:47:45 +02:00
_xxtestfuzz bpo-44113: Update __xxtestfuzz not to use Py_SetProgramName (GH-26083) 2021-05-13 08:22:18 +09:00
cjkcodecs bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
clinic Update bisect docstrings (GH-26548) 2021-06-06 11:22:48 -07:00
expat Fix compiler warning in the xml module (GH-26245) 2021-05-19 19:05:40 +01:00
_abc.c bpo-43977: Make sure that tp_flags for pattern matching are inherited correctly. (GH-25813) 2021-05-03 00:38:22 +01:00
_asynciomodule.c bpo-39529: Deprecate creating new event loop in asyncio.get_event_loop() (GH-23554) 2021-04-25 13:40:44 +03:00
_bisectmodule.c Update bisect docstrings (GH-26548) 2021-06-06 11:22:48 -07:00
_bz2module.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
_codecsmodule.c
_collectionsmodule.c bpo-40521: Convert deque freelist from global vars to instance vars (GH-25906) 2021-05-04 17:08:31 -07:00
_contextvarsmodule.c
_cryptmodule.c
_csv.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
_curses_panel.c bpo-43916: Add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag (GH-25721) 2021-04-30 12:46:15 +02:00
_cursesmodule.c bpo-43916: Move the _PyStructSequence_InitType function to the internal API (GH-25854) 2021-05-03 15:50:24 +01:00
_datetimemodule.c
_dbmmodule.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
_elementtree.c
_functoolsmodule.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
_gdbmmodule.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
_hashopenssl.c bpo-44145: Release the GIL around HMAC_Update. (GH-26157) 2021-05-17 00:35:16 -07:00
_heapqmodule.c
_json.c
_localemodule.c
_lsprof.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
_lzmamodule.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
_math.c
_math.h
_opcode.c bpo-40222: "Zero cost" exception handling (GH-25729) 2021-05-07 15:19:19 +01:00
_operator.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
_pickle.c bpo-44029: Remove Py_UNICODE APIs (GH-25881) 2021-05-07 15:58:29 +09:00
_posixsubprocess.c bpo-28254: _posixsubprocess uses PyGC_Enable/PyGC_Disable (GH-25693) 2021-04-28 19:09:29 +02:00
_queuemodule.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
_randommodule.c bpo-44260: Do not read system entropy without need in Random() (GH-26455) 2021-05-31 23:24:20 +03:00
_scproxy.c
_sre.c bpo-42972: Fully implement GC protocol for re types (GH-26368) 2021-05-27 19:23:07 +02:00
_ssl.c bpo-44389: Fix typo in ssl deprecation warning message (GH-26754) 2021-06-17 02:39:57 -07:00
_ssl.h bpo-18233: Add internal methods to access peer chain (GH-25467) 2021-04-26 15:01:40 +02:00
_ssl_data.h
_ssl_data_111.h
_ssl_data_300.h
_stat.c
_statisticsmodule.c
_struct.c bpo-40137: Add pycore_moduleobject.h internal header (GH-25507) 2021-04-22 00:52:52 +02:00
_testbuffer.c
_testcapimodule.c bpo-44363: Get test_capi passing with address sanitizer (GH-26639) 2021-06-10 12:37:22 +01:00
_testimportmultiple.c
_testinternalcapi.c bpo-38530: Refactor and improve AttributeError suggestions (GH-25776) 2021-05-03 16:47:27 +01:00
_testmultiphase.c
_threadmodule.c bpo-44434: Don't call PyThread_exit_thread() explicitly (GH-26758) 2021-06-21 13:16:18 +02:00
_tkinter.c Fix compiler warning for misleading guarding in the tkinter (GH-26244) 2021-05-19 19:10:23 +01:00
_tracemalloc.c
_uuidmodule.c
_weakref.c
_winapi.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
_xxsubinterpretersmodule.c bpo-43916: Add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag (GH-25721) 2021-04-30 12:46:15 +02:00
_zoneinfo.c Add more const modifiers. (GH-26691) 2021-06-12 16:11:59 +03:00
addrinfo.h
arraymodule.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
atexitmodule.c
audioop.c
binascii.c Use get_binascii_state instead of PyModule_GetState (GH-26069) 2021-05-13 00:09:30 +09:00
cmathmodule.c
config.c.in
errnomodule.c
faulthandler.c
fcntlmodule.c
gc_weakref.txt
gcmodule.c bpo-28254: Add a C-API for controlling the GC state (GH-25687) 2021-04-28 18:12:16 +02:00
getaddrinfo.c
getbuildinfo.c
getnameinfo.c
getpath.c bpo-44285: getpath.c: Assert that env_file is NULL during an error check (GH-26486) 2021-06-02 16:54:33 +02:00
grpmodule.c
hashlib.h
itertoolsmodule.c
ld_so_aix.in
main.c
makesetup
makexp_aix
mathmodule.c bpo-44339: Fix math.pow corner case to comply with IEEE 754 (GH-26606) 2021-06-12 10:23:02 +01:00
md5module.c bpo-42972: Fully support GC for hashlib heap types (GH-26374) 2021-05-27 09:48:19 +02:00
mmapmodule.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
nismodule.c
ossaudiodev.c
overlapped.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
posixmodule.c bpo-43916: Remove _disabled_new() function (GH-25745) 2021-04-30 14:06:49 +02:00
posixmodule.h
pwdmodule.c
pyexpat.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
readline.c
README
resource.c
rotatingtree.c
rotatingtree.h
selectmodule.c bpo-43916: select.devpoll uses Py_TPFLAGS_DISALLOW_INSTANTIATION (GH-25751) 2021-04-30 18:19:57 +02:00
Setup bpo-40137: Add pycore_moduleobject.h internal header (GH-25507) 2021-04-22 00:52:52 +02:00
sha1module.c bpo-42972: Fully support GC for hashlib heap types (GH-26374) 2021-05-27 09:48:19 +02:00
sha256module.c bpo-42972: Fully support GC for hashlib heap types (GH-26374) 2021-05-27 09:48:19 +02:00
sha512module.c bpo-42972: Fully support GC for hashlib heap types (GH-26374) 2021-05-27 09:48:19 +02:00
signalmodule.c bpo-43963: Add _signal module state (GH-25676) 2021-04-28 03:02:55 +02:00
socketmodule.c bpo-44077: Expose IP_RECVTOS in the socket module (GH-25992) 2021-06-20 21:08:07 +01:00
socketmodule.h
spwdmodule.c
sre.h
sre_constants.h
sre_lib.h
symtablemodule.c bpo-42725: Render annotations effectless on symbol table with PEP 563 (GH-25583) 2021-05-03 10:43:00 +03:00
syslogmodule.c
termios.c
testcapi_long.h
timemodule.c
tkappinit.c
tkinter.h
unicodedata.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) 2021-06-17 11:06:09 +01:00
unicodedata_db.h
unicodename_db.h
winreparse.h
xxlimited.c bpo-42972: Fully implement GC protocol for xxlimited (GH-26451) 2021-05-31 09:51:19 +02:00
xxlimited_35.c bpo-42972: Fully implement GC protocol for xxlimited (GH-26451) 2021-05-31 09:51:19 +02:00
xxmodule.c
xxsubtype.c
zlibmodule.c bpo-41486: Fix initial buffer size can't > UINT32_MAX in zlib module (GH-25738) 2021-04-30 16:32:49 -07:00

Source files for standard library extension modules,
and former extension modules that are now builtin modules.