[issue45316] [C API] Functions not exported with PyAPI_FUNC()

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8f2a337a80a283c66e1a4252839792fa229d2763 by Victor Stinner in branch 'main': bpo-45316: Move private functions to internal C API (GH-31579) https://github.com/python/cpython/commit/8f2a337a80a283c66e1a4252839792

[issue46640] Python can now use the C99 NAN constant or __builtin_nan()

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: PEP 7 has been updated, I close the issue. -- status: open -> closed ___ Python tracker <https://bugs.python.org/issu

[issue46663] test_math test_cmath test_complex fails on Fedora Rawhide buildbots

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: Rawhide buildbots are back to green: GCC has been fixed, I close the issue. Moreover, Python 3.11 now uses NAN constant or __builtin_nan(""). -- resolution: -> fixed stage: -> resolved status

[issue46432] AMD64 FreeBSD Shared 3.x buildbot fails to build: error: error reading 'LASTCFLAGS'

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: AMD64 FreeBSD Shared 3.x is back to green, I close the issue. > Please leave this issue open Sorry but I prefer to use the Python bug tracker for things which must change in Python. -- resolution: -> fixed stage: -> resolved sta

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset a549cd1fc55888e2e287714b25e2cb2251913909 by Victor Stinner in branch '3.9': bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) (GH-31581) https://github.com/python/cpyt

[issue46852] Remove the float.__setformat__() method

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset a549cd1fc55888e2e287714b25e2cb2251913909 by Victor Stinner in branch '3.9': bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) (GH-31581) https://github.com/python/cpyt

[issue46852] Remove the float.__setformat__() method

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29708 pull_request: https://github.com/python/cpython/pull/31585 ___ Python tracker <https://bugs.python.org/issue46

[issue45316] [C API] Functions not exported with PyAPI_FUNC()

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset f780d9690f1a009a56ac0c653ec9608e6b2aeff4 by Victor Stinner in branch 'main': bpo-45316: Move _PyArg_Fini() to internal C API (GH-31580) https://github.com/python/cpython/commit/f780d9690f1a009a56ac0c653ec960

[issue45316] [C API] Functions not exported with PyAPI_FUNC()

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: Update: only two remaining functions are not exported by the public C API: int PySignal_SetWakeupFd(int fd); int _Py_CheckPython3(void); -- ___ Python tracker <https://bugs.python.org/issue45

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 87af12bff33b3e7546fa26158b7d8680ecb6ecec by Victor Stinner in branch 'main': bpo-46836: Rename InterpreterFrame to _PyInterpreterFrame (GH-31583) https://github.com/python/cpython/commit/87af12bff33b3e7546fa26158b7d86

[issue46852] Remove the float.__setformat__() method

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: Mark Dickinson: > I'd be happy to see `float.__setformat__` go, if it's not still needed for > Python's test suite (which was its entire raison d'être). If no-one noticed > the accidental misnaming, then it's pretty cle

[issue46857] Python leaks one reference at exit on Windows

2022-02-25 Thread STINNER Victor
New submission from STINNER Victor : "./python -X showrefcount -I -c pass" returns "[0 refs, 0 blocks]" as expected on Linux: Python doesn't leak any reference nor memory block. But on Windows, it still leaks 1 reference (and 1 memory block)! vstinner@DESKTOP-DK7VBI

[issue46857] Python leaks one reference at exit on Windows

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29712 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31589 ___ Python tracker <https://bugs.python.org/issu

[issue46857] Python leaks one reference at exit on Windows

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset ea9612a17bc60d44e0058f525d3c02a91c439cef by Victor Stinner in branch 'main': bpo-46857: Fix test_embed.test_no_memleak() on Windows (GH-31589) https://github.com/python/cpython/commit/ea9612a17bc60d44e0058f525d3c02

[issue46816] Remove declarations for non-__STDC__ compilers

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: It should be fine :-D Thanks. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46816] Remove declarations for non-__STDC__ compilers

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4060111f9dc44682f9d7bdafb4e7dacb96706ad3 by Oleg Iarygin in branch 'main': bpo-46816: Remove declarations for non-__STDC__ compilers (GH-31466) https://github.com/python/cpython/commit/4060111f9dc44682f9d7bdafb4e7da

[issue45459] Limited API support for Py_buffer

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: I close again the issue, the C API should now be fine :-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46852] Remove the float.__setformat__() method

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5ab745fc51e159ead28b523414e52f0bcc1ef353 by Victor Stinner in branch 'main': bpo-46852: Remove the float.__set_format__() method (GH-31585) https://github.com/python/cpython/commit/5ab745fc51e159ead28b523414e52f

[issue46852] Remove the float.__setformat__() method

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29715 pull_request: https://github.com/python/cpython/pull/31592 ___ Python tracker <https://bugs.python.org/issue46

[issue46748] Python.h includes stdbool.h

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 2c228a7b8f89e9ed8d390370abd771d4993b79d8 by Petr Viktorin in > branch 'main': > bpo-46748: Don't import in public headers (GH-31553) It seems like this change broke ctypes on some architectures like s390x: https:/

[issue46857] Python leaks one reference at exit on Windows

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29717 pull_request: https://github.com/python/cpython/pull/31594 ___ Python tracker <https://bugs.python.org/issue46

[issue46857] Python leaks one reference at exit on Windows

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: > Good news, the difference on Windows was easy enough to find, bad news total > refs are now negative! Oh wow. How did you find this leak? Did you read all C files and check for code specific to Windows? How did you proceed? Well spotted! >

[issue46852] Remove the float.__setformat__() method

2022-02-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29724 pull_request: https://github.com/python/cpython/pull/31601 ___ Python tracker <https://bugs.python.org/issue46

[issue46606] Large C stack usage of os.getgroups() and os.setgroups()

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset e02c47528b31f513d5f5d6eb91b8c9714134cea2 by Victor Stinner in branch 'main': bpo-46606: os.getgroups() doesn't overallocate (GH-31569) https://github.com/python/cpython/commit/e02c47528b31f513d5f5d6eb9

[issue46606] Large C stack usage of os.getgroups() and os.setgroups()

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: > NGROUPS_MAX is 65536 and sizeof(gid_t) is 4 on Ubuntu 20.04, so grouplist is > 262144bytes. Oops, that's a lot! Nicely spotted! Yeah, it's perfectly fine to allocate a temporary array on the heap memory. There is no need to micro-optimiz

[issue46430] intern strings in deepfrozen modules

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: commit 0d9b565e62a5fc8c3e9b8c64cce764fe084ccb2b Author: Kumar Aditya <59607654+kumaraditya...@users.noreply.github.com> Date: Sat Feb 26 22:05:03 2022 +0530 Propagate errors (however unlikely) from _Py_Deepfreeze_Init() (GH

[issue46430] intern strings in deepfrozen modules

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: > The other functions you are calling *do* return errors. You should not ignore > those. If any errors are reported the caller can decide what to do (e.g. call > Py_FatalError(). PEP 587 introduced PyStatus to Python startup code whic

[issue46748] Python.h includes stdbool.h

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset e182c660b63bc23420fb9f0593d77a3fa3b7f1c7 by Kumar Aditya in branch 'main': bpo-46748: Fix ctypes test_frozentable() (GH-31600) https://github.com/python/cpython/commit/e182c660b63bc23420fb9f0593d77a

[issue46608] Exclude marshalled-frozen data if deep-freezing to save 300 KB space

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: https://docs.python.org/dev/whatsnew/3.11.html#c-api-changes documents the addition of the "is_package" member to the _frozen structure, but it doesn't mention the new "get_code" member. Can it be also documented? -

[issue46857] Python leaks one reference at exit on Windows

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset ad56919c5ed54523f866e6605a2573ab7b7d5235 by Victor Stinner in branch 'main': bpo-46857: Fix refleak in OSError INIT_ALIAS() (GH-31594) https://github.com/python/cpython/commit/ad56919c5ed54523f866e6605a2573

[issue46857] Python leaks one reference at exit on Windows

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: > Initially, I modified Py_INCREF to dump the object (addr & tp_name) on > initial inc (ob_refcnt == 1) and Py_DECREF to dump on final dec > (ob_refcnt == 0). Then filter that list (~65K) to find objects not > dealloc'ed. Given those name

[issue46857] Python leaks one reference at exit on Windows

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: I just built Python with --with-trace-refs. On Linux, it works as expected: $ ./python -I -X showrefcount -c pass [0 refs, 0 blocks] -- ___ Python tracker <https://bugs.python.org/issue46

[issue46857] Python leaks one reference at exit on Windows

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: Ah, with PYTHONDUMPREFS=1 (and without -I), I get a negative ref count: $ PYTHONDUMPREFS=1 ./python -X showrefcount -c pass [-10 refs, 0 blocks] I don't plan to investigate this issue. I'm not using PYTHONDUMPREFS

[issue46852] Remove the float.__setformat__() method

2022-02-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5a1c637ec6264790d3cfeef46815c62c32b510f3 by Victor Stinner in branch 'main': bpo-46852: Restore test_getformat() test (GH-31601) https://github.com/python/cpython/commit/5a1c637ec6264790d3cfeef46815c6

[issue46852] Remove the float.__setformat__() method

2022-02-27 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue for the second part of my plan: "Once they will be removed, it will become possible to move the detection of the IEEE 754 format in the build step (./configure script) rather than doing the detection at runtime (slower). It would r

[issue46748] Python.h includes stdbool.h

2022-02-28 Thread STINNER Victor
STINNER Victor added the comment: > Thank you, Kumar & Victor, for fixing up the issue! You're welcome. I'm happy to see that you reduced the number of #include in the C API ;-) I made similar changes in bpo-45434. -- ___ Pytho

[issue45431] [C API] Rename CFrame or hide it to only export names starting with Py

2022-02-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7496f9587306772b56ed074092c020f3ef16bf95 by Victor Stinner in branch 'main': bpo-45431: Rename CFrame to _PyCFrame in the C API (GH-31584) https://github.com/python/cpython/commit/7496f9587306772b56ed074092c020

[issue45431] [C API] Rename CFrame or hide it to only export names starting with Py

2022-02-28 Thread STINNER Victor
STINNER Victor added the comment: Ok, CFrame has been renamed. > We should either make the whole PyThreadState structure private (move it to > the internal C API) This idea is tracked by bpo-39947. -- ___ Python tracker <https://bugs.p

[issue45431] [C API] Rename CFrame or hide it to only export names starting with Py

2022-02-28 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46886] ARM64 Windows Non-Debug 3.x: random build error: failure during conversion to COFF: file invalid or corrupt

2022-02-28 Thread STINNER Victor
STINNER Victor added the comment: example: https://buildbot.python.org/all/#/builders/730/builds/4081 Build FAILED. "C:\Workspace\buildarea\3.x.linaro-win-arm64.nondebug\build\PCbuild\pcbuild.proj" (Build target) (1) -> "C:\Workspace\buildarea\3.x.linaro-

[issue46633] AddressSanitizer: Skip tests directly in Python, not with external config

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: I created a PR to no longer skip tests in buildbots: https://github.com/python/buildmaster-config/pull/314 -- ___ Python tracker <https://bugs.python.org/issue46

[issue46633] AddressSanitizer: Skip tests directly in Python, not with external config

2022-03-01 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29754 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31632 ___ Python tracker <https://bugs.python.org/issu

[issue46633] AddressSanitizer: Skip tests directly in Python, not with external config

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: Status with the 2 pending PRs: * GH-31632 * https://github.com/python/buildmaster-config/pull/314 Tests only skipped on ASAN: * _test_multiprocessing Skip on ASAN and MSAN: * test___all__ * test_concurrent_futures * test_crypt

[issue46887] ./Programs/_freeze_module fails with MSAN: Uninitialized value was created by an allocation of 'stat.i'

2022-03-01 Thread STINNER Victor
New submission from STINNER Victor : "./Programs/_freeze_module zipimport" fails with MSAN: --- $ make SHELL="bash -x" (...) + ./Programs/_freeze_module zipimport ./Lib/zipimport.py Python/frozen_modules/zipimport.h ==110524==WARNING: MemorySanitizer: use-of-uninitia

[issue46633] AddressSanitizer: Skip tests directly in Python, not with external config

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-46887: ./Programs/_freeze_module fails with MSAN: Uninitialized value was created by an allocation of 'stat.i'. -- ___ Python tracker <https://bugs.python.o

[issue46633] AddressSanitizer: Skip tests directly in Python, not with external config

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: """ No longer skipped: * test_capi * test_ctypes * test_faulthandler * test_interpreters """ I built Python manually with: ./configure --with-pydebug CC=clang LD=clang --with-address-sanitizer These tests no longer wi

[issue46887] ./Programs/_freeze_module fails with MSAN: Uninitialized value was created by an allocation of 'stat.i'

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: It looks like a bug in clang MSAN: https://github.com/llvm/llvm-project/issues/54131 -- ___ Python tracker <https://bugs.python.org/issue46

[issue46887] ./Programs/_freeze_module fails with MSAN: Uninitialized value was created by an allocation of 'stat.i'

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: Hum, later "import ssl" in setup.py also fails. Simplified code: --- import _ssl print(_ssl.txt2obj('1.3.6.1.5.5.7.3.1', name=False)) # server OID --- Error: --- $ ./python x.py Uninitialized bytes in MemcmpInterceptorCommo

[issue46633] AddressSanitizer: Skip tests directly in Python, not with external config

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9204bb72a2da5885facc747e63d2bd2d654606fe by Victor Stinner in branch 'main': bpo-46633: Skip tests on ASAN and/or MSAN builds (GH-31632) https://github.com/python/cpython/commit/9204bb72a2da5885facc747e63d2bd

[issue46887] ./Programs/_freeze_module fails with MSAN: Uninitialized value was created by an allocation of 'stat.i'

2022-03-01 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29755 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31633 ___ Python tracker <https://bugs.python.org/issu

[issue46887] ./Programs/_freeze_module fails with MSAN: Uninitialized value was created by an allocation of 'stat.i'

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: > It looks like a bug in clang MSAN: > https://github.com/llvm/llvm-project/issues/54131 I wrote GH-31633 to work around the false alarm on stat() and fstat(). -- ___ Python tracker <https://bugs.p

[issue46887] ./Programs/_freeze_module fails with MSAN: Uninitialized value was created by an allocation of 'stat.i'

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: > The Python code calls OBJ_txt2obj("1.3.6.1.5.5.7.3.1", 0) in C: the OpenSSL > function. This error is unrelated to Python, but comes from OpenSSL. -- ___ Python tracker <https://bugs.py

[issue46887] ./Programs/_freeze_module fails with MSAN: Uninitialized value was created by an allocation of 'stat.i'

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: > The Python code calls OBJ_txt2obj("1.3.6.1.5.5.7.3.1", 0) in C: the OpenSSL > function. I reported this issue to OpenSSL: https://github.com/openssl/openssl/issues/17784 -- ___ Python

[issue46633] AddressSanitizer: Skip tests directly in Python, not with external config

2022-03-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29756 pull_request: https://github.com/python/cpython/pull/31634 ___ Python tracker <https://bugs.python.org/issue46

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: I plan to update Cython, greenlet and gevent for this change. -- ___ Python tracker <https://bugs.python.org/issue46

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: Draft PR for greenlet: https://github.com/python-greenlet/greenlet/pull/294 I made these changes close to the Python 3.11 alpha 6 release to be able to test "#if PY_VERSION_HEX < 0x30B00A6" to have code compatible with Python 3.11 alph

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: Draft PR for Cython: https://github.com/cython/cython/pull/4671 -- ___ Python tracker <https://bugs.python.org/issue46

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: Draft PR for gevent: https://github.com/gevent/gevent/pull/1872 -- ___ Python tracker <https://bugs.python.org/issue46

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: I searched for "\<_f" regex in Cython (0.29.x) branch. I found the following code getting or setting PyFrameObject fields. == Set f_back == __Pyx_Coroutine_SendEx() at Utility/Coroutine.c:721: f->f_back = PyThreadState

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-03-01 Thread STINNER Victor
STINNER Victor added the comment: > Draft PR for Cython: https://github.com/cython/cython/pull/4671 Notes on how Cython access PyFrameObject fields: https://bugs.python.org/issue40421#msg414314 -- ___ Python tracker <https://bugs.pyth

[issue46848] Use optimized string search function in mmap.find()

2022-03-02 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 3.0 -> 4.0 pull_requests: +29762 pull_request: https://github.com/python/cpython/pull/31642 ___ Python tracker <https://bugs.python.org/issu

[issue46848] Use optimized string search function in mmap.find()

2022-03-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset b6b711a1aa233001c1874af1d920e459b6bf962c by Victor Stinner in branch 'main': bpo-46848: Move _PyBytes_Find() to internal C API (GH-31642) https://github.com/python/cpython/commit/b6b711a1aa233001c1874af1d920e4

[issue46633] AddressSanitizer: Skip tests directly in Python, not with external config

2022-03-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset 93264452d952d9ba604bacf2947c2df5dd477931 by Victor Stinner in branch '3.10': [3.10] bpo-46633: Skip tests on ASAN and/or MSAN builds (GH-31632) (GH-31634) https://github.com/python/cpython/commit/93264452d952d9ba604bacf2947c2d

[issue46633] AddressSanitizer: Skip tests directly in Python, not with external config

2022-03-02 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29764 pull_request: https://github.com/python/cpython/pull/31644 ___ Python tracker <https://bugs.python.org/issue46

[issue46633] AddressSanitizer: Skip tests directly in Python, not with external config

2022-03-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset 359bc392ba2b8f2acca223426c8210bb74f724c6 by Victor Stinner in branch '3.9': [3.10] bpo-46633: Skip tests on ASAN and/or MSAN builds (GH-31632) (GH-31634) (GH-31644) https://github.com/python/cpyt

[issue46633] AddressSanitizer: Skip tests directly in Python, not with external config

2022-03-02 Thread STINNER Victor
STINNER Victor added the comment: > https://github.com/python/buildmaster-config/pull/314 I merged this PR as well. The new buildbot configuration will be deployed soon. -- resolution: -> fixed stage: patch review -> resolved status: open

[issue46906] Make _PyFloat_(Pack|Unpack)(4|8) cpython API, not internal.

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: I disagree. A function should be either fully public: tested, documented. Or fully internal. In the past, many functions were in both, in the gray area. If these functions are useful, please make them *public* and document them. I'm +1 to make

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue, I would like to make these functions public :-) I searched for the 6 functions moved to the internal C API and I found 6 projets using it in the top 5000 PyPI projects (at 2022-01-26): * msgpack * ddtrace * bitstruct * pickle5

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29775 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/31657 ___ Python tracker <https://bugs.python.org/issu

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: The pack/unpack functions have been moved to the internal C API by this change: commit 0a883a76cda8205023c52211968bcf87bd47fd6e Author: Victor Stinner Date: Thu Oct 14 23:41:06 2021 +0200 bpo-35134: Add Include/cpython/floatobject.h (GH-28957

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: I prepared a pythoncapi_compat PR to provide these functions to Python 3.10 and older: https://github.com/pythoncapi/pythoncapi_compat/pull/26 Note: bpo-11734 (commit 7c4e409d075fdb923807513353b18a75a4520eba) added _PyFloat_Pack2() and _PyFloat_Unpack2() to

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-03 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +lemburg, mark.dickinson, rhettinger, stutzbach ___ Python tracker <https://bugs.python.org/issue46906> ___ ___ Python-bug

[issue46886] ARM64 Windows Non-Debug 3.x: random build error: failure during conversion to COFF: file invalid or corrupt

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: > I guess we can close the ticket and can reopen if it happens again. Ok, let's do that! -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker <htt

[issue46832] unicodeobject.c doesn't compile when defined EXPERIMENTAL_ISOLATED_SUBINTERPRETERS, variable "interned" not found

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: This build flag is experimental and unsupported. If you care, you should target Python 3.11 which is currently under development. -- ___ Python tracker <https://bugs.python.org/issue46

[issue45062] test_asyncio: test_huge_content_recvinto() failed on PPC64LE RHEL8 Refleaks 3.9

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this failure recently, I just close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.pyth

[issue37368] test_asyncio: test_create_server_ssl_match_failed() failed on s390x SLES 3.x and logged an unraisable exception

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: I failed to reproduce the issue with: "./python -m test test_asyncio -m test_create_server_ssl_match_failed -F -j50 --fail-env-changed" It ran 1000 iterations in 5 minutes with a load average of 50 (my laptop has 4 CPU cores:

[issue45065] test_asyncio failed (env changed) on s390x RHEL8 Refleaks 3.10: RuntimeError('Event loop is closed') in _SSLProtocolTransport.__del__

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this issue recently, I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.pyth

[issue44800] Code readability: rename InterpreterFrame to `_Py_framedata`

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: Oh. I didn't know this issue. I recently made changes around PyFrameObject: * Move PyFrameObject to the internal C API (see bpo-46836 for the rationale) * Rename CFrame to _PyCFrame * Rename InterpreterFrame to _PyInterpreterFrame I prepared PRs for C

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
New submission from STINNER Victor : I recently changed how tests are skipped in ASAN, MSAN and UBSAN CIs (buildbot workers and GitHub Action jobs): * bpo-46633 * https://github.com/python/buildmaster-config/commit/0fd1e3e49e4b688d5767501484cccea5fa35d3fc 3 tests are now failing on "

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: test_ctypes: test_shorts() of ctypes.test.test_bitfields.C_Test is failing with: --- test_shorts (ctypes.test.test_bitfields.C_Test) ... /home/vstinner/python/main/Modules/_ctypes/cfield.c:554:5: runtime error: shift exponent 18446744073709551614 is too

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: test_hashlib: test_gil() fails with: --- test_gil (test.test_hashlib.HashLibTestCase) ... /home/vstinner/python/main/Modules/_sha3/kcp/KeccakP-1600-opt64.c:467:9: runtime error: load of misaligned address 0x02daafd7 for type 'UINT64' (aka 

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: test_faulthandler: test_sigfpe() fails with: == FAIL: test_sigfpe (test.test_faulthandler.FaultHandlerTests) -- Traceback

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29781 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31662 ___ Python tracker <https://bugs.python.org/issu

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4173d677a1d7c72bb32d292fbff1b4cf073d615c by Victor Stinner in branch 'main': bpo-46913: Fix test_faulthandler.test_sigfpe() on UBSAN (GH-31662) https://github.com/python/cpython/commit/4173d677a1d7c72bb32d292fbff1b4

[issue45459] Limited API support for Py_buffer

2022-03-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29787 pull_request: https://github.com/python/cpython/pull/31668 ___ Python tracker <https://bugs.python.org/issue45

[issue46915] Build with Py_LIMITED_API fails unknown type name ‘PyModuleDef_Slot’

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: I proposed a fix: https://github.com/python/cpython/pull/31668 -- ___ Python tracker <https://bugs.python.org/issue46

[issue45459] Limited API support for Py_buffer

2022-03-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29788 pull_request: https://github.com/python/cpython/pull/31669 ___ Python tracker <https://bugs.python.org/issue45

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: Reproducer of test_ctypes undefined behavior: --- from ctypes import * class BITS(Structure): _fields_ = [("A", c_int, 1), ("B", c_int, 2), ("C", c_int, 3), ("D", c

[issue45459] Limited API support for Py_buffer

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0b63215bb152c06404cecbd5303b1a50969a9f9f by Victor Stinner in branch 'main': bpo-45459: Fix PyModuleDef_Slot type in the limited C API (GH-31668) https://github.com/python/cpython/commit/0b63215bb152c06404cecbd5303b1a

[issue46915] Build with Py_LIMITED_API fails unknown type name ‘PyModuleDef_Slot’

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: Fixed by https://github.com/python/cpython/commit/0b63215bb152c06404cecbd5303b1a50969a9f9f -- priority: release blocker -> resolution: -> fixed stage: -> resolved status: open -> closed ___ Py

[issue45459] Limited API support for Py_buffer

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 32f0c8271706550096c454eb512450b85fbfc320 by Victor Stinner in branch 'main': bpo-45459: Use type names in the internal C API (GH-31669) https://github.com/python/cpython/commit/32f0c8271706550096c454eb512450

[issue46355] [C API] Document PyFrameObject and PyThreadState changes and explain how to port code to Python 3.11

2022-03-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29789 pull_request: https://github.com/python/cpython/pull/31670 ___ Python tracker <https://bugs.python.org/issue46

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: lxml does crash on the current Cython 0.29.x development branch. -- ___ Python tracker <https://bugs.python.org/issue45

[issue46917] Require IEEE 754 floating point to build Python 3.11

2022-03-03 Thread STINNER Victor
New submission from STINNER Victor : See "[Python-Dev] Should we require IEEE 754 floating-point for CPython?" thread: https://mail.python.org/archives/list/python-...@python.org/thread/J5FSP6J4EITPY5C2UJI7HSL2GQCTCUWN/ I propose to require IEEE 754 floating-point to build Pyth

[issue46917] Require IEEE 754 floating point to build Python 3.11

2022-03-03 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +mark.dickinson ___ Python tracker <https://bugs.python.org/issue46917> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: > https://github.com/python/buildmaster-config/commit/0fd1e3e49e4b688d5767501484cccea5fa35d3fc Previously, 4 tests were skipped on the UBSAN buildbot * test_faulthandler * test_hashlib * test_concurrent_futures * test_ctypes It's not a regression, i

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29792 pull_request: https://github.com/python/cpython/pull/31672 ___ Python tracker <https://bugs.python.org/issue46

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29793 pull_request: https://github.com/python/cpython/pull/31673 ___ Python tracker <https://bugs.python.org/issue46

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29794 pull_request: https://github.com/python/cpython/pull/31674 ___ Python tracker <https://bugs.python.org/issue46

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 65b92ccdec2ee4a99e54aaf7ae2d9bbc2ebfe549 by Victor Stinner in branch 'main': bpo-46913: Fix test_faulthandler.test_read_null() on UBSan (GH31672) https://github.com/python/cpython/commit/65b92ccdec2ee4a99e54aaf7ae2d9b

<    3   4   5   6   7   8   9   10   11   12   >