gdb: How to get coredumps with FULL debug symbols? #6602
Unanswered
JackNickholson
asked this question in
Q&A
Replies: 1 comment 3 replies
-
while G is active
didnt help either. Loads firejails debug symbols, not evolution's |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi the community!
Pre-requisites done:
A) Without firejail, make evolution get started
B) ensure that GDB is enabled (Ref a & c & d)
C) Ensure the debug symbols are enabled in the system repos and installed via the them
D)
gdb is to show also the loaded dependencies debug symbols
Questions:
Q1) AFAIK, steps A-D ensures that WITHOUT firejail, one can get the good quality coredumps with FULL debug symbols. Any corrections?
If the answer to Q1 is yes, then the next step is to make GDB to work USING evolution started by firejail
Pre-requisites done:
E) To fix https://gitlab.gnome.org/GNOME/evolution/-/issues/2936#note_2303513, edit /etc/firejail/evolution.profile to make it look like:
F) To help GDB to find the dbg symbols for the dependencies, copy
G) firejail --private=$HOME/firejail/homes/evolution --profile=evolution.profile gdb --tui --args evolution %U
H) At the time of G, firejail process is running for evolution with gdb with PID 45474
QUESTIONS
Q2) Looking at G & H, gdb process runs under evolutions process, is this the problem?
Q3) Looking at G & H, Can an be GDB debugged under firejail? Which firejail process to debug? 45475, 45483 or 45474?
Q4) Looking at G, F didnt work. Is F needed to enable the debugging via GDB?
Q5) What other step(s) are needed to enable GDB coredumps via firejail?
REFs
a. https://handbook.gnome.org/issues/stack-traces.html
b. https://firejail.wordpress.com/2017/05/15/linux-mint-sandboxing-guide/#launchers
c. https://ubuntu.com/server/docs/about-debuginfod
d. https://ubuntu.com/server/docs/debug-symbol-packages
Beta Was this translation helpful? Give feedback.
All reactions