Calling `_imp.is_lazy_imports_enabled` in a thread hits an `assert(0)`
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with Python/import.c at PyImport_IsLazyImportsEnabled and reproduce the assertion using the threaded _imp.is_lazy_imports_enabled example in the issue. Determine the expected behavior for that call and verify that the threaded invocation no longer aborts, including a regression test if the existing test layout provides a suitable entry point.
Written by the indexing model from the issue text.
Description
It's possible to hit an assert(0) in PyImport_IsLazyImportsEnabled by calling _imp.is_lazy_imports_enabled in a thread:
from threading import Thread
import _imp
Thread(target=_imp.is_lazy_imports_enabled, args=()).start()
Abort message:
python: Python/import.c:4640: PyImport_IsLazyImportsEnabled: Assertion `0' failed.
Aborted
I'm not sure this is relevant, but since it's the only fuzzing hit that happened in Cinder but not CPython, thought it better to report.
python -VV:
Python 3.12.4+meta (heads/meta/3.12:55b50e149d4, Dec 3 2024, 21:56:02) [GCC 11.4.0]
Found using fusil by @vstinner.
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from facebookincubator/MetaPython
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
facebookincubator/MetaPython#146 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
facebookincubator/MetaPython#145 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
facebookincubator/MetaPython#144 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
facebookincubator/MetaPython#129 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
facebookincubator/MetaPython#116 · 2 comments ·
All issues in facebookincubator/MetaPython
Similar issues
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DiamondLightSource/dodal#2211 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openml/openml-python#1749 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sipyourdrink-ltd/bernstein#6191 ·