Bug 1891786 - python-systemd fails to build with Python 3.10: Segmentation fault
Summary: python-systemd fails to build with Python 3.10: Segmentation fault
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-systemd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zbigniew Jędrzejewski-Szmek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2020-10-27 11:16 UTC by Tomáš Hrnčiar
Modified: 2020-11-12 16:31 UTC (History)
4 users (show)

Fixed In Version: python-systemd-234-15.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-12 16:31:18 UTC
Type: Bug


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2020-10-27 11:16:31 UTC
python-systemd fails to build with Python 3.10.0a1.

systemd/test/test_journal.py::test_reader_messageid_match Fatal Python error: Segmentation fault

Current thread 0x00007f2c8f476740 (most recent call first):
  File "/builddir/build/BUILD/python-systemd-234/build/lib.linux-x86_64-3.10/systemd/journal.py", line 244 in add_match
  File "/builddir/build/BUILD/python-systemd-234/build/lib.linux-x86_64-3.10/systemd/journal.py", line 363 in messageid_match
  File "/builddir/build/BUILD/python-systemd-234/build/lib.linux-x86_64-3.10/systemd/test/test_journal.py", line 208 in test_reader_messageid_match
  File "/usr/lib/python3.10/site-packages/_pytest/python.py", line 180 in pytest_pyfunc_call
  File "/usr/lib/python3.10/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.10/site-packages/_pytest/python.py", line 1570 in runtest
  File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 153 in pytest_runtest_call
  File "/usr/lib/python3.10/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 247 in <lambda>
  File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 294 in from_call
  File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 246 in call_runtest_hook
  File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 207 in call_and_report
  File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 117 in runtestprotocol
  File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 100 in pytest_runtest_protocol
  File "/usr/lib/python3.10/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 321 in pytest_runtestloop
  File "/usr/lib/python3.10/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 296 in _main
  File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 240 in wrap_session
  File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 289 in pytest_cmdline_main
  File "/usr/lib/python3.10/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 157 in main
  File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 180 in console_main
  File "/usr/lib/python3.10/site-packages/pytest/__main__.py", line 7 in <module>
  File "/usr/lib64/python3.10/runpy.py", line 87 in _run_code
  File "/usr/lib64/python3.10/runpy.py", line 197 in _run_module_as_main
/bin/sh: line 1:   649 Segmentation fault      (core dumped) /usr/bin/python3 -m pytest . ../../docs -v
make: *** [Makefile:60: check] Error 139

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/01715166-python-systemd/

For all our attempts to build python-systemd with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-systemd/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Zbigniew Jędrzejewski-Szmek 2020-11-12 16:31:18 UTC
Built in rawhide.


Note You need to log in before you can comment on or make changes to this bug.