Bug 1483222
Summary: | GDB doesn't find Python 3 debug symbols even though they are installed | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Sam Thursfield <ssssam> |
Component: | python3 | Assignee: | Iryna Shcherbina <ishcherb> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 26 | CC: | bkabrda, cstratak, ishcherb, mcyprian, mhroncok, pviktori, rkuska, tomspur, torsava |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python3-3.6.2-7.fc26 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-09-25 00:52:21 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: |
Description
Sam Thursfield
2017-08-19 11:33:27 UTC
If I build Python 3.6.0 from source with debug info enabled and install into a separate prefix, debug info works as expected. Let me look into this. This seems to be related, to the fact, that we have recently enabled lto and pgo optimizations. The lto optimizations adds `-flto` flag during compilation, which according to gcc docs [0] does not work well with -g flag: "Link-time optimization does not work well with generation of debugging information. Combining -flto with -g is currently experimental and expected to produce unexpected results."[0] And without -g option, no or insufficient information for debuginfo packages is generated, thus the debugging symbols are missing. [0] https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/Optimize-Options.html#Optimize-Options Rawhide and f27 are fixed. I will try to backport the change to F26 sometime this or the next week. python3-3.6.2-7.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-21119b637e python3-3.6.2-7.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-21119b637e python3-3.6.2-7.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. |