Bug 2118215
Summary: | Segmentation fault in _PyDictKeys_StringLookup() during sphinx-build | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Orion Poplawski <orion> |
Component: | python3.11 | Assignee: | Python Maintainers <python-maint> |
Status: | CLOSED UPSTREAM | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | cstratak, mhroncok, negativo17, python-maint, python-sig, quantum.analyst, susi.lehtola, thrnciar, torsava, vstinner |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-09-06 09:52:36 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2121905 |
Description
Orion Poplawski
2022-08-15 02:10:02 UTC
FYI, this is also broken with the existing 5.3.0, though you need to backport [1] to prevent dependency issues. The previous working build was with python3-pybind11-2.9.2-2.fc37, though koschei did not track it due to the pin fixed by [1]. But locally, downgrading to that version works, so this appears to be a pybind11 issue. [1] https://github.com/pikepdf/pikepdf/commit/cc977d343ce044fe021c545c8d8c6b159d477f6b I reproduce the crash on Fedora 36 with these commands: --- sudo dnf install qpdf-devel python3.11 -m venv env cd env source ./bin/activate python -m pip install IPython python -m pip install sphinx sphinx_issues sphinx_design sphinx_rtd_theme git clone https://github.com/pikepdf/pikepdf cd pikepdf/ python -m pip install . cd docs/ ~/env/bin/sphinx-build . ../html --- Output: --- (env) vstinner@mona$ ~/env/bin/python -X dev ~/env/bin/sphinx-build . ../html (...) Fatal Python error: Segmentation faultetadata Current thread 0x00007fcbb8ca0740 (most recent call first): File "/home/vstinner/env/lib64/python3.11/site-packages/pikepdf/_methods.py", line 798 in open File "<ipython-input-5-851f84133ed8>", line 1 in <cell line: 0> File "/home/vstinner/env/lib64/python3.11/site-packages/IPython/core/interactiveshell.py", line 3398 in run_code File "/home/vstinner/env/lib64/python3.11/site-packages/IPython/core/interactiveshell.py", line 3338 in run_ast_nodes File "/home/vstinner/env/lib64/python3.11/site-packages/IPython/core/interactiveshell.py", line 3135 in run_cell_async File "/home/vstinner/env/lib64/python3.11/site-packages/IPython/core/async_helpers.py", line 129 in _pseudo_sync_runner File "/home/vstinner/env/lib64/python3.11/site-packages/IPython/core/interactiveshell.py", line 2936 in _run_cell File "/home/vstinner/env/lib64/python3.11/site-packages/IPython/core/interactiveshell.py", line 2881 in run_cell File "/home/vstinner/env/lib64/python3.11/site-packages/IPython/sphinxext/ipython_directive.py", line 411 in process_input_lines File "/home/vstinner/env/lib64/python3.11/site-packages/IPython/sphinxext/ipython_directive.py", line 497 in process_input File "/home/vstinner/env/lib64/python3.11/site-packages/IPython/sphinxext/ipython_directive.py", line 728 in process_block File "/home/vstinner/env/lib64/python3.11/site-packages/IPython/sphinxext/ipython_directive.py", line 1025 in run File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/parsers/rst/states.py", line 2146 in run_directive File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/parsers/rst/states.py", line 2096 in directive File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/parsers/rst/states.py", line 2354 in explicit_construct File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/parsers/rst/states.py", line 2342 in explicit_markup File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/statemachine.py", line 451 in check_line File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/statemachine.py", line 239 in run File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/parsers/rst/states.py", line 196 in run File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/parsers/rst/states.py", line 281 in nested_parse File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/parsers/rst/states.py", line 393 in new_subsection File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/parsers/rst/states.py", line 327 in section File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/parsers/rst/states.py", line 2769 in underline File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/statemachine.py", line 451 in check_line File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/statemachine.py", line 239 in run File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/parsers/rst/states.py", line 196 in run File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/parsers/rst/states.py", line 281 in nested_parse File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/parsers/rst/states.py", line 393 in new_subsection File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/parsers/rst/states.py", line 327 in section File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/parsers/rst/states.py", line 2769 in underline File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/statemachine.py", line 451 in check_line File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/statemachine.py", line 239 in run File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/parsers/rst/states.py", line 170 in run File "/home/vstinner/env/lib64/python3.11/site-packages/sphinx/parsers.py", line 78 in parse File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/readers/__init__.py", line 78 in parse File "/home/vstinner/env/lib64/python3.11/site-packages/sphinx/io.py", line 104 in read File "/home/vstinner/env/lib64/python3.11/site-packages/docutils/core.py", line 217 in publish File "/home/vstinner/env/lib64/python3.11/site-packages/sphinx/builders/__init__.py", line 498 in read_doc File "/home/vstinner/env/lib64/python3.11/site-packages/sphinx/builders/__init__.py", line 445 in _read_serial File "/home/vstinner/env/lib64/python3.11/site-packages/sphinx/builders/__init__.py", line 424 in read File "/home/vstinner/env/lib64/python3.11/site-packages/sphinx/builders/__init__.py", line 317 in build File "/home/vstinner/env/lib64/python3.11/site-packages/sphinx/builders/__init__.py", line 301 in build_update File "/home/vstinner/env/lib64/python3.11/site-packages/sphinx/application.py", line 349 in build File "/home/vstinner/env/lib64/python3.11/site-packages/sphinx/cmd/build.py", line 277 in build_main File "/home/vstinner/env/lib64/python3.11/site-packages/sphinx/cmd/build.py", line 291 in main File "/home/vstinner/env/bin/sphinx-build", line 8 in <module> Extension modules: markupsafe._speedups, PIL._imaging, PIL._imagingcms, lxml._elementpath, lxml.etree (total: 5) Erreur de segmentation (core dumped) --- I reported the issue to Python upstream: https://github.com/python/cpython/issues/96046 Python 3.11 is now fixed: pybind11 no longer crash on Python 3.11. See latest comments of the upstream issue: https://github.com/python/cpython/issues/96046 Upstream fix (3.11 branch): https://github.com/python/cpython/commit/3ea0beb3599f734bb9387a526dccd5768ad6b1a9 |