Bug 2186414 - pyparted fails to build with Python 3.12: [Makefile:42: test] Segmentation fault (core dumped)
Summary: pyparted fails to build with Python 3.12: [Makefile:42: test] Segmentation fa...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pyparted
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dave Cantrell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.12
TreeView+ depends on / blocked
 
Reported: 2023-04-13 08:23 UTC by Tomáš Hrnčiar
Modified: 2023-06-22 13:18 UTC (History)
6 users (show)

Fixed In Version: pyparted-3.13.0
Clone Of:
Environment:
Last Closed: 2023-06-22 12:52:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2023-04-13 08:23:52 UTC
pyparted fails to build with Python 3.12.0a7.

make: *** [Makefile:42: test] Segmentation fault (core dumped)

https://docs.python.org/3.12/whatsnew/3.12.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.12/fedora-rawhide-x86_64/05771208-pyparted/

For all our attempts to build pyparted with Python 3.12, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.12/package/pyparted/

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.12:
https://copr.fedorainfracloud.org/coprs/g/python/python3.12/

Let us know here if you have any questions.

Python 3.12 is planned to be included in Fedora 39. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.12.
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 Dave Cantrell 2023-06-14 15:05:55 UTC
Unable to reproduce this in rawhide now.  It is building fine it seems.

Comment 3 Dave Cantrell 2023-06-14 17:06:15 UTC
My mistake, got it now.

Comment 4 Dave Cantrell 2023-06-14 19:31:47 UTC
I've got an environment now with Python 3.12 and am able to reproduce this locally.  It looks like the C API for extension modules has changed behavior in some way.  But that's just my first take at it.  I will get in to this in more detail tomorrow.

Comment 5 Dave Cantrell 2023-06-15 14:41:56 UTC
Further investigation leads me to my test suite.  The test suite has some tests that cause a SIGSEGV in the _ped module.  It worked fine with Python <= 3.11.  Getting closer here.

Comment 6 Dave Cantrell 2023-06-21 17:46:41 UTC
I have fixed this upstream and made a new release of pyparted called pyparted-3.13.0.  I've upgraded rawhide and I did a test mock build locally using the Python 3.12 Copr and that worked.

Comment 7 Miro Hrončok 2023-06-21 20:58:42 UTC
https://src.fedoraproject.org/rpms/pyparted/commits/rawhide does not seem to be 3.13.0 and still fails to build in the f39-python side tag.

Comment 8 Tomáš Hrnčiar 2023-06-22 12:52:35 UTC
3.13.0 sources were commited into dist-git and I've successfully built it in the side-tag. Thank you.

Comment 9 Dave Cantrell 2023-06-22 13:18:44 UTC
Thanks for the side-tag rebuild.  I had commented here and closed the bug, *but* neglected to git push my changes for the package.  I had done a number of scratch builds and then a number of test builds with the python 3.12 copr, but forgot to push to rawhide and do a real non-scratch build there.  Ooops.


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