I need to debug a crash in a flatpak application and even I have installed debug symbols those are not found by gdb. My steps: $ flatpak install flathub org.gnome.Evolution $ flatpak install flathub org.gnome.Evolution.Devel Install also the Sdk for it. $ flatpak run --devel --command=sh org.gnome.Evolution [📦 org.gnome.Evolution ~]$ gdb /app/bin/evolution.bin The gdb claims it cannot find the debug symbols. There are two reasons: 1) the debug symbols are under /app/lib/debug, not under /usr/lib/debug, where gdb looks for them 2) the symbols construct a wrong hierarchy, they are as /app/lib/debug/bin, but they should be as /app/lib/debug/app/bin (the 'app' is repeated there). When I correct these two things (for 1) I tell gdb about a different debug directory with `set debug-file-directory /app/lib/debug`; for 2) I move the files under the `app` directory), then following `(gdb) file /app/bin/evolution.bin` reads the debug symbols properly. It cannot find source files, but this is a good start on its own. These things should work out of the box, there should not be needed any such changes to have the symbols properly loaded by gdb, from my point of view. Some resources: https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html P.S.: I've no GitHub account, thus I file it here.
This message is a reminder that Fedora 33 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '33'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 33 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 33 changed to end-of-life (EOL) status on 2021-11-30. Fedora 33 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.