Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1907439
Summary: | python-img2pdf fails to build with Python 3.10: Fatal Python error: Segmentation fault | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | python-pikepdf | Assignee: | Elliott Sales de Andrade <quantum.analyst> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | fedora, mhroncok, python-sig, quantum.analyst, thrnciar, zdohnal |
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: | 2021-01-09 10:27:12 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: | 1890881 |
Description
Tomáš Hrnčiar
2020-12-14 14:16:06 UTC
Since the segfault occurs during import of pikepdf (at what time img2pdf_test.py only has imported pretty standard python packages) the root cause of this issue seems to lie outside of img2pdf: + /usr/bin/python3 -m pytest src/img2pdf_test.py -k 'not test_png_icc and not test_tiff_ccitt_nometa2' Fatal Python error: Segmentation fault Current thread 0x00007fae2c668740 (most recent call first): File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed File "<frozen importlib._bootstrap_external>", line 1125 in create_module File "<frozen importlib._bootstrap>", line 581 in module_from_spec File "<frozen importlib._bootstrap>", line 684 in _load_unlocked File "<frozen importlib._bootstrap>", line 1005 in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1026 in _find_and_load File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1077 in _handle_fromlist File "/usr/lib64/python3.10/site-packages/pikepdf/__init__.py", line 15 in <module> File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed File "<frozen importlib._bootstrap_external>", line 832 in exec_module File "<frozen importlib._bootstrap>", line 698 in _load_unlocked File "<frozen importlib._bootstrap>", line 1005 in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1026 in _find_and_load File "/builddir/build/BUILD/img2pdf-0.4.0/src/img2pdf_test.py", line 10 in <module> That means either there is an issue in the pikepdf module initialization or there is a bug in the general python import code. So what about re-assigning this issue then? Elliot, can you take a look here regarding pikepdf? I'm not sure how it could be pikepdf itself. It seems more likely to be something about the Python/C++ interface from pybind11. Can you get a backtrace? I see succesful builds in https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-img2pdf/ -- let's assume this was a transient issue. Sorry for the noise. |