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
help("modules") segfaults on 3.11, MacOS #90099
Comments
Python 3.11.0a2+ (heads/main:8a45ca542a, Nov 30 2021, 22:40:56) [Clang 13.0.0 (clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> help("modules") Please wait a moment while I gather a list of all available modules... /Users/iritkatriel/src/cpython/Lib/pkgutil.py:92: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP-632 for potential alternatives |
On the debugger:
Please wait a moment while I gather a list of all available modules... /Users/iritkatriel/src/cpython/Lib/pkgutil.py:92: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP-632 for potential alternatives
|
It works for me on 3.10. |
Works for me on Ubuntu. Python 3.11.0a2+ (heads/main:0aa0bd0563, Dec 1 2021, 11:39:40) [GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> help("modules") [lots of output, but no assertion failure or segfault]
I note that your debug output includes |
When I say "cffi bug", I should say "is cffi not ported to 3.11 yet?" |
Unable to reproduce on macOS 12 with latest 3.11 official build, and my most recent dev build (HEAD at b394af1). |
Also unable to reproduce with HEAD at 49444fb. |
I'm using MacOS 11.6. |
Also unable to reproduce with HEAD at 8a45ca5. Perhaps it is related to your build/dev environment? |
I'm unable to reproduce on macOS 11.6 as well (head at 49444fb). |
Because the tp_dictoffset is 0, _PyObject_DictPointer(obj) returns NULL and in the assertion, where the return value is dereferenced, it crashes. (Note: it's not that the assertion is failing, we don't get that far). |
This looks like an issue with 3rd party software cffi. Are you using a fresh build of cffi? The internal ABI of an alpha build changes very often. |
How do I check that? |
The easiest way is to remove and rebuild 3rd party software. |
Christian - that's what it was. I uninstalled cffi and now it works. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: