This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients docs@python, ezyang, python-dev, vstinner
Date 2022-04-06.09:40:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1649238023.66.0.650497328661.issue45210@roundup.psfhosted.org>
In-reply-to
Content
I wrote GH-32357 to check in debug mode that tp_dealloc functions leave the current exception unchanged. You can use attached unicode_dealloc_bug.patch to inject a bug to test my PR. Example ("make" is enough to trigger the bug):
---
Fatal Python error: _Py_Dealloc: Deallocator of type 'str' cleared the current exception
Python runtime state: initialized

Current thread 0x00007ff28d45a740 (most recent call first):
  File "/home/vstinner/python/main/Lib/sysconfig.py", line 349 in _parse_makefile
  File "/home/vstinner/python/main/Lib/sysconfig.py", line 470 in _generate_posix_vars
  File "/home/vstinner/python/main/Lib/sysconfig.py", line 845 in _main
  File "/home/vstinner/python/main/Lib/sysconfig.py", line 857 in <module>
  File "<frozen runpy>", line 88 in _run_code
  File "<frozen runpy>", line 198 in _run_module_as_main
generate-posix-vars failed
---
History
Date User Action Args
2022-04-06 09:40:24vstinnersetrecipients: + vstinner, docs@python, python-dev, ezyang
2022-04-06 09:40:23vstinnersetmessageid: <1649238023.66.0.650497328661.issue45210@roundup.psfhosted.org>
2022-04-06 09:40:23vstinnerlinkissue45210 messages
2022-04-06 09:40:23vstinnercreate