Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling _imp.is_lazy_imports_enabled in a thread hits an assert(0) #147

Open
devdanzin opened this issue Dec 5, 2024 · 0 comments
Open

Comments

@devdanzin
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant