Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put stripped debug symbols back into bluecherry-dbg #681

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

andrey-utkin
Copy link
Contributor

Previously, the debug symbols were discarded by our building environment.

With this change, bluecherry-dbg packages again contain the debug symbols stripped from the built code.

Alternatively, we could change this code to "dh_strip --keep-debug" which adds 7 MB to bluecherry.deb, taking it from 28M to 35M.

The situation with instant access to crash backtraces enriched with debug symbols is now the following: the stack trace logged by bc-server itself lists the libraries for every stack frame, but not function names or line nubmers. This info is in the debug info shipped, but it is not used by glibc's backtrace() (wouldn't even if we avoid stripping overall).

The ways to use all the debug info are:

sudo -u bluecherry gdb -ex run -ex bt --args /usr/sbin/bc-server -s
sudo -u bluecherry rr record /usr/sbin/bc-server -s
sudo -u bluecherry rr replay # there: continue, bt...

Previously, the debug symbols were discarded by our building
environment.

With this change, bluecherry-dbg packages again contain the debug
symbols stripped from the built code.

Alternatively, we could change this code to "dh_strip --keep-debug"
which adds 7 MB to bluecherry.deb, taking it from 28M to 35M.

The situation with instant access to crash backtraces enriched with
debug symbols is now the following: the stack trace logged by bc-server
itself lists the libraries for every stack frame, but not function names
or line nubmers. This info is in the debug info shipped, but it is not
used by glibc's backtrace() (wouldn't even if we avoid stripping
overall).

The ways to use all the debug info are:

sudo -u bluecherry gdb -ex run -ex bt --args /usr/sbin/bc-server -s

sudo -u bluecherry rr record /usr/sbin/bc-server -s
sudo -u bluecherry rr replay # there: continue, bt...
@andrey-utkin andrey-utkin requested a review from curtishall April 24, 2024 15:13
@curtishall curtishall merged commit 0cc20a5 into bluecherrydvr:master Apr 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants