cpython/Modules
Gregory P. Smith fa7c37af49
[3.11] gh-99952: fix refcount issues in ctypes.Structure from_param() result (#101339)
[3.11] gh-99952: [ctypes] fix refcount issues in from_param() result. (GH-100169)

Fixes a reference counting issue with `ctypes.Structure` when a `from_param()` method call is used and the structure size is larger than a C pointer `sizeof(void*)`.

This problem existed for a very long time, but became more apparent in 3.8+ by change likely due to garbage collection cleanup timing changes..
(cherry picked from commit dfad678d70)

Co-authored-by: Yukihiro Nakadaira <yukihiro.nakadaira@gmail.com>
2023-01-26 01:02:37 -08:00
..
_blake2
_ctypes [3.11] gh-99952: fix refcount issues in ctypes.Structure from_param() result (#101339) 2023-01-26 01:02:37 -08:00
_decimal gh-91320: Use _PyCFunction_CAST() (#92251) 2022-05-03 21:42:14 +02:00
_io gh-82052: Don't send partial UTF-8 sequences to the Windows API (GH-101103) 2023-01-17 11:52:50 -08:00
_multiprocessing GH-94736: Fix _multiprocessing.SemLock subclassing (GH-94738) 2022-07-11 05:40:02 -07:00
_sha3
_sqlite [3.11] gh-95132: Correctly relay *args and **kwds from sqlite3.connect to factory (GH-95146) (#95158) 2022-07-23 10:23:19 +02:00
_sre gh-98740: Fix validation of conditional expressions in RE (GH-98764) 2022-11-03 00:47:39 -07:00
_ssl gh-91320: Argument Clinic uses _PyCFunction_CAST() (#32210) 2022-05-03 20:25:41 +02:00
_xxtestfuzz
cjkcodecs gh-91320: Argument Clinic uses _PyCFunction_CAST() (#32210) 2022-05-03 20:25:41 +02:00
clinic [3.11] GH-100342: check for allocation failure in AC *args parsing (GH-100343). (#100568) 2022-12-28 10:11:27 +05:30
expat gh-98739: Update libexpat from 2.4.9 to 2.5.0 (GH-98742) 2022-10-27 14:21:35 -07:00
_abc.c [3.11] gh-95324: Emit a warning if an object doesn't call PyObject_GC_UnTrack during deallocation in debug mode (GH-95325) (#95336) 2022-07-27 16:55:44 +01:00
_asynciomodule.c [3.11] gh-101326: Fix regression when passing None to FutureIter.throw (GH-101327) (#101328) 2023-01-25 13:01:13 -08:00
_bisectmodule.c gh-92839: fixed typo in _bisectmodule.c (line 131) (GH-92849) 2022-05-28 11:31:06 -07:00
_bz2module.c
_codecsmodule.c
_collectionsmodule.c gh-91320: Use _PyCFunction_CAST() (#92251) 2022-05-03 21:42:14 +02:00
_contextvarsmodule.c
_cryptmodule.c
_csv.c gh-65496: Correct wording on csv's skipinitialspace argument (GH-96170) 2022-10-07 16:45:53 -07:00
_curses_panel.c
_cursesmodule.c GH-94644: fix test_curses ref leak (GH-94647) 2022-07-07 05:03:00 -07:00
_datetimemodule.c gh-91838: Resolve HTTP links which redirect to HTTPS (GH-95642) 2022-08-04 06:15:11 -07:00
_dbmmodule.c
_elementtree.c gh-91320: Use _PyCFunction_CAST() (#92251) 2022-05-03 21:42:14 +02:00
_functoolsmodule.c gh-96641: Do not expose KeyWrapper in _functoolsmodule.c (gh-96642) 2022-09-07 04:50:00 -07:00
_gdbmmodule.c
_hashopenssl.c DOC: correct bytesarray -> bytearray in comments (GH-92410) (GH-94089) 2022-06-22 10:47:52 +02:00
_heapqmodule.c
_json.c Use static inline function Py_EnterRecursiveCall() (#91988) 2022-05-04 13:30:23 +02:00
_localemodule.c
_lsprof.c GH-95045: gc untrack _lsprof.Profiler before deallocating it (GH-95315) 2022-07-27 05:37:43 -07:00
_lzmamodule.c
_math.h
_opcode.c
_operator.c DOC: correct bytesarray -> bytearray in comments (GH-92410) (GH-94089) 2022-06-22 10:47:52 +02:00
_pickle.c gh-83004: Clean up refleak in _pickle initialisation (GH-98841) 2022-11-06 06:41:24 -08:00
_posixsubprocess.c gh-82616: Add process_group support to subprocess.Popen (#23930) 2022-05-05 16:22:32 -07:00
_queuemodule.c
_randommodule.c
_scproxy.c
_ssl.c gh-95095: Use SSL_CTX_get_max_proto_version instead of SSL_CTX_ctrl (GH-95096) 2022-07-21 12:11:07 -07:00
_ssl.h
_ssl_data.h
_ssl_data_111.h
_ssl_data_300.h
_stat.c
_statisticsmodule.c
_struct.c GH-94254: Make _struct module types immutable (GH-94269) 2022-06-26 03:42:41 -07:00
_testbuffer.c gh-91320: Use _PyCFunction_CAST() (#92251) 2022-05-03 21:42:14 +02:00
_testcapi_feature_macros.inc
_testcapimodule.c [3.11] GH-100892: Fix race in clearing threading.local (GH-100922). (#100937) 2023-01-11 21:01:48 +05:30
_testclinic.c [3.11] gh-64490: Fix bugs in argument clinic varargs processing (GH-32092) (#100368) 2022-12-28 02:10:06 +01:00
_testimportmultiple.c
_testinternalcapi.c Fix NULL test in _testinternalcapi (GH-92861) 2022-05-16 18:57:42 -07:00
_testmultiphase.c gh-91320: Use _PyCFunction_CAST() (#92251) 2022-05-03 21:42:14 +02:00
_threadmodule.c [3.11] GH-100892: Fix race in clearing threading.local (GH-100922). (#100937) 2023-01-11 21:01:48 +05:30
_tkinter.c
_tracemalloc.c [3.11] GH-96612: Skip incomplete frames in tracemalloc traces. (GH-96613) (#96617) 2022-09-06 18:42:41 +01:00
_typingmodule.c
_uuidmodule.c
_weakref.c
_winapi.c [3.11] bpo-40882: Fix a memory leak in SharedMemory on Windows (GH-20684) (#99973) 2022-12-05 13:38:25 +01:00
_xxsubinterpretersmodule.c gh-93937, C API: Move PyFrame_GetBack() to Python.h (#93938) (#94000) 2022-06-20 15:47:41 +02:00
_zoneinfo.c gh-83004: Clean up refleak in _zoneinfo initialisation (GH-98842) 2022-11-06 06:30:41 -08:00
addrinfo.h [3.11] gh-95174: WASI: skip missing sockets functions (GH-95179) (GH-95308) 2022-07-31 18:19:32 +02:00
arraymodule.c
atexitmodule.c fixes gh-96292: Fix Trivial Typo in cpython/Modules/atexitmodule.c (GH-96327) 2022-08-26 22:59:21 -07:00
audioop.c bpo-2716: add license for audioop module (GH-19972) 2022-10-21 16:07:30 -07:00
binascii.c
cmathmodule.c
config.c.in
errnomodule.c [3.11] gh-96005: Handle WASI ENOTCAPABLE in getpath (GH-96006) (GH-96034) (GH-96038) 2022-09-13 13:00:45 +02:00
faulthandler.c gh-96055: Update faulthandler to emit proper unexpect signal number (gh-99162) 2022-11-06 18:45:54 -08:00
fcntlmodule.c
gc_weakref.txt
gcmodule.c [3.11] gh-95324: Emit a warning if an object doesn't call PyObject_GC_UnTrack during deallocation in debug mode (GH-95325) (#95336) 2022-07-27 16:55:44 +01:00
getaddrinfo.c [3.11] gh-95174: WASI: skip missing sockets functions (GH-95179) (GH-95308) 2022-07-31 18:19:32 +02:00
getbuildinfo.c
getnameinfo.c [3.11] gh-95174: WASI: skip missing sockets functions (GH-95179) (GH-95308) 2022-07-31 18:19:32 +02:00
getpath.c gh-97758: Fix a crash in getpath_joinpath() called without arguments (GH-97759) 2022-10-05 03:20:32 -07:00
getpath.py gh-100320: Fix path calculations on Windows when python.exe is moved outside of the normal location (GH-100947) 2023-01-16 17:00:34 +00:00
getpath_noop.c
grpmodule.c
hashlib.h
itertoolsmodule.c [3.11] gh-60203: Revert changes in cycle.__setstate__ (GH-99982) (#100016) 2022-12-05 17:58:40 +01:00
ld_so_aix.in
main.c gh-90473: Check for HAVE_KILL in main.c:exit_sigint (GH-95165) 2022-07-23 04:09:10 -07:00
makesetup [3.11] gh-94404: Use module CFLAGS before PY_STDMODULE_CFLAGS (GH-94413) (GH-94415) 2022-06-29 16:22:41 +02:00
makexp_aix
mathmodule.c GH-98897: fix memory leak if math.dist raises exception (GH-98898) 2022-10-31 19:40:30 -07:00
md5module.c
mmapmodule.c
nismodule.c gh-91320: Use _PyCFunction_CAST() (#92251) 2022-05-03 21:42:14 +02:00
ossaudiodev.c
overlapped.c [3.11] gh-98793: Fix typecheck in overlapped.c (GH-98835) (#98889) 2022-10-31 11:21:01 -07:00
posixmodule.c gh-100649: Update native_thread_id after fork (gh-100650) 2023-01-01 06:50:56 -08:00
posixmodule.h
pwdmodule.c
pyexpat.c gh-100689: Revert "bpo-41798: pyexpat: Allocate the expat_CAPI on the heap memory (GH-24061)" (GH-100745) 2023-01-08 05:19:37 -08:00
readline.c Fix readline.c compiler warning. (GH-98738) 2022-10-26 16:16:09 -07:00
README
resource.c
rotatingtree.c
rotatingtree.h
selectmodule.c [3.11] gh-95174: Handle missing dup() and constants in WASI (GH-95229) (GH-95272) 2022-07-31 16:39:41 +01:00
Setup
Setup.bootstrap.in
Setup.stdlib.in [3.11] gh-96002: Add functional test for Argument Clinic (GH-96178) (#100230) 2022-12-17 12:04:54 +05:30
sha1module.c
sha256module.c
sha512module.c
signalmodule.c [3.11] gh-98930: improve the docstring of signal.strsignal (GH-99290) (#99449) 2022-11-13 12:21:19 -08:00
socketmodule.c gh-100795: Don't call freeaddrinfo on failure. (GH-101252) 2023-01-23 15:30:19 -08:00
socketmodule.h
spwdmodule.c
symtablemodule.c
syslogmodule.c gh-98178: syslog() is not thread-safe on macOS (GH-98213) 2022-10-13 04:59:23 -07:00
termios.c GH-97001: Release GIL in termios extension (GH-99503) 2022-11-22 03:28:06 -08:00
testcapi_long.h
timemodule.c gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803) 2022-05-19 08:05:52 -07:00
tkappinit.c
tkinter.h
unicodedata.c
unicodedata_db.h
unicodename_db.h
winreparse.h
xxlimited.c [3.11] gh-95324: Emit a warning if an object doesn't call PyObject_GC_UnTrack during deallocation in debug mode (GH-95325) (#95336) 2022-07-27 16:55:44 +01:00
xxlimited_35.c [3.11] gh-90763: Modernise xx template module initialisation (GH-93078) (#93681) 2022-06-10 13:28:48 +02:00
xxmodule.c [3.11] gh-90763: Modernise xx template module initialisation (GH-93078) (#93681) 2022-06-10 13:28:48 +02:00
xxsubtype.c gh-91320: Use _PyCFunction_CAST() (#92251) 2022-05-03 21:42:14 +02:00
zlibmodule.c

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