Bug 2021798 - python-bitcoinlib fails to build with Python 3.11: Segmentation fault (core dumped)
Summary: python-bitcoinlib fails to build with Python 3.11: Segmentation fault (core d...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: python-bitcoinlib
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pablo Greco
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2046863 2098849 (view as bug list)
Depends On:
Blocks: F36FTBFS PYTHON3.11 F37FTBFS F37FailsToInstall
TreeView+ depends on / blocked
 
Reported: 2021-11-10 08:57 UTC by Tomáš Hrnčiar
Modified: 2022-07-23 19:03 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-23 19:03:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-11-10 08:57:57 UTC
python-bitcoinlib fails to build with Python 3.11.0a2.

+ /usr/bin/python3 -m unittest discover
......E..........................EEE.......EE.....EE.......................................E......EE.................EEEE......E/var/tmp/rpm-tmp.eAA0fO: line 32:   560 Segmentation fault      (core dumped) /usr/bin/python3 -m unittest discover

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/02939596-python-bitcoinlib/

For all our attempts to build python-bitcoinlib with Python 3.11, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-bitcoinlib/

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

Let us know here if you have any questions.

Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11.
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 Ben Cotton 2022-02-08 21:30:57 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 2 Pablo Greco 2022-03-30 20:05:15 UTC
This crash affects Stream 9, F36 and rawhide. It's not related to  python-bitcoinlib or python itself. The crash is inside openssl code, and it's specific to openssl 3.0. Who do we need to ping for the openssl guys to take a look?

Comment 3 Pablo Greco 2022-03-30 20:09:21 UTC
btw, I have a workaround for this crash inside python-bitcoinlib, which avoids calling the offending function on certain cases, but even after that, some tests fail due to changes in behavior from openssl 3.0

Comment 4 Miro Hrončok 2022-06-20 10:17:14 UTC
*** Bug 2098849 has been marked as a duplicate of this bug. ***

Comment 5 Miro Hrončok 2022-06-27 14:52:20 UTC
Hello,

This is the first reminder (step 3 from https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs).

If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.

Comment 6 Pablo Greco 2022-06-27 20:02:55 UTC
This is not a bug in python-bitcoinlib, it's a problem with openssl3. https://bugzilla.redhat.com/show_bug.cgi?id=2021798#c2 and https://bugzilla.redhat.com/show_bug.cgi?id=2021798#c3 are still valid. I can workaround the crash and disable the rest of the failing tests, but that's not a "solution"

Comment 7 Pablo Greco 2022-06-29 20:52:22 UTC
*** Bug 2046863 has been marked as a duplicate of this bug. ***

Comment 8 Miro Hrončok 2022-07-18 22:24:54 UTC
Hello,

This is the second reminder (step 4 from https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs).

If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.

Comment 9 Pablo Greco 2022-07-19 00:18:27 UTC
Again, this is a problem with openssl3 and not in this package. I have a version that fixes the crash and removes some failing tests, but I know it's not the right solution. Do you prefer if I keep it failing until openssl problem is solved or should I push the "fix"?

Comment 10 Miro Hrončok 2022-07-19 09:27:49 UTC
Honestly, if this isn't fixed near beta freeze, I'd consider retiring the package until it is fixed. Better than shipping it uninstallable in Fedora 37.

Comment 11 Miro Hrončok 2022-07-23 19:03:18 UTC
Hello,

Please note that this comment was generated automatically. If you feel that this output has mistakes, please contact me via email (mhroncok).

All subpackages of a package against which this bug was filled are now installable or removed from Fedora 37.

Thanks for taking care of it!


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