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 1939885 - Python 3.10.0a6 regression caused segfaults in packages using Cython
Summary: Python 3.10.0a6 regression caused segfaults in packages using Cython
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python3.10
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Victor Stinner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10 1939888 1939892 1939893 1939912 1939915 1939924 1939942 1939951
TreeView+ depends on / blocked
 
Reported: 2021-03-17 09:34 UTC by Tomáš Hrnčiar
Modified: 2021-04-13 09:41 UTC (History)
19 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-13 09:41:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Python 43541 0 None None None 2021-03-18 11:12:38 UTC

Description Tomáš Hrnčiar 2021-03-17 09:34:36 UTC
I noticed there are some packages that fail with a segmentation fault when build with Python 3.10. All of them are using Cython. This is a common bugzilla and I'll open a separate bugzilla for each package.

Comment 1 Raphael Groner 2021-03-17 19:46:10 UTC
Propably let's try to rebuild Cython due to changed gcc settings maybe. In assumption as first attempt that could simply help to fix failing execution of some tests seen in referenced packages.

Comment 2 Raphael Groner 2021-03-17 20:01:27 UTC
Please consider https://github.com/cython/cython/blob/master/runtests.py for %check.

Comment 3 Tomáš Hrnčiar 2021-03-18 08:14:37 UTC
(In reply to Raphael Groner from comment #1)
> Propably let's try to rebuild Cython due to changed gcc settings maybe. In
> assumption as first attempt that could simply help to fix failing execution
> of some tests seen in referenced packages.

I've tried to rebuilt Cython, but python-jnius fails with the same error.
See: https://download.copr.fedorainfracloud.org/results/@python/python3.10/fedora-rawhide-x86_64/02080888-python-jnius/builder-live.log.gz

Comment 4 Miro Hrončok 2021-03-18 08:16:37 UTC
Note that currently Cython is not compiled on Python 3.10, we use the pure Python implementation. Hence rebuilding Cython has no possitive/negative side effects, it just copy-pastes Python files around.

Comment 5 Victor Stinner 2021-03-18 10:31:21 UTC
Cython has multiple compatibility issues with Python 3.10. I created https://github.com/cython/cython/issues/4046 meta issue to track them all.

I wrote 3 fixes to port Cython 0.29.x to Python 3.10:

* https://github.com/cython/cython/pull/4042
* https://github.com/cython/cython/pull/4044
* https://github.com/cython/cython/pull/4045

Comment 6 Victor Stinner 2021-03-18 10:32:40 UTC
Miro reported https://github.com/cython/cython/issues/4025 "[BUG] Cython 0.29.22 SIGSEGV with Python 3.10.0a6" upstream.

Comment 7 Victor Stinner 2021-03-18 11:12:40 UTC
> Miro reported https://github.com/cython/cython/issues/4025 "[BUG] Cython 0.29.22 SIGSEGV with Python 3.10.0a6" upstream.

It looks like a Python 3.10 regression in PyEval_EvalCodeEx(). I reported the issue to Python: https://bugs.python.org/issue43541

Comment 8 Miro Hrončok 2021-03-18 12:33:05 UTC
I'm building python3.10 in the Copr with https://github.com/python/cpython/pull/24918


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