Bug 2250652
Summary: | gdb fails to build with Python 3.13: error: ‘_PyOS_ReadlineTState’ was not declared in this scope; did you mean ‘PyOS_Readline’ | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Karolina Surma <ksurma> |
Component: | gdb | Assignee: | Alexandra Petlanová Hájková <ahajkova> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | ahajkova, fweimer, guinevere, jan, keiths, kevinb, ksurma, mcermak, mhroncok, mjg, mkolar, vstinner |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | gdb-14.1-2.fc40 gdb-14.1-4.fc39 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2024-01-10 18:25:01 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: | 2244836 |
Description
Karolina Surma
2023-11-20 11:00:10 UTC
_PyOS_ReadlineTState was removed in https://github.com/python/cpython/pull/107034 Victor, what should gdb use instead? Oh, another surprising side effect of removing private APIs. I created https://github.com/python/cpython/issues/112446 upstream to discuss the issue. Right now, I don't know what is a good replacement. I discussed the issue in private with aburgess directly who worked on a fix using PyGILState_Ensure() and PyGILState_Release() when gdb readline callbacks has to set an exception. FEDORA-2024-775c2c657f has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2024-775c2c657f FEDORA-2024-775c2c657f has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-775c2c657f` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-775c2c657f See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. Reopening, as the linked update doesn't apply to this bugzilla (F38 vs Rawhide). gdb 14.1 still doesn't build with Python 3.13 with the above failure. Works, thanks. FEDORA-2024-8f10f96169 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-8f10f96169 FEDORA-2024-8f10f96169 has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-8f10f96169` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8f10f96169 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-8f10f96169 has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report. |