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

Non-static binaries #49

Open
beorn- opened this issue Apr 27, 2020 · 5 comments
Open

Non-static binaries #49

beorn- opened this issue Apr 27, 2020 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@beorn-
Copy link

beorn- commented Apr 27, 2020

Currently, when a binary crashes and is detected as C binary i have found a few issues :

  • *.so libs are not sent along with the binary
  • debugging symbols table are not sent too. usually they are available in separate files such as /usr/lib/debug/.build-id/59/b262a6710ac89c3b4e53cccd6387f4b56c7d0c.debug

Make next to impossible for the gdb instance to work. Especially when the rcoredumpd runs on FreeBSD and the crashing binary runs on a linux based system

@elwinar elwinar added the enhancement New feature or request label Apr 28, 2020
@elwinar elwinar added this to the v0.12.0 milestone Apr 28, 2020
@elwinar elwinar removed this from the v0.12.0 milestone May 9, 2020
@elwinar elwinar self-assigned this Aug 30, 2020
@elwinar
Copy link
Owner

elwinar commented Sep 15, 2020

@elwinar
Copy link
Owner

elwinar commented Sep 15, 2020

GDB command to run (example): gdb ./run/store/executables/6cee5fd5cb624fd66a115f8ed58cff6ef4a70da0 -ex "set sysroot /no/such/file" -ex "set solib-search-path ./run/store/links/6cee5fd5cb624fd66a115f8ed58cff6ef4a70da0:/lib:/usr/lib" -ex "core ./run/store/cores/bt5ndcil19le1bns8t00"

@elwinar
Copy link
Owner

elwinar commented Sep 15, 2020

The build id can be found in the .note.gnu.build-id section of an ELF file objdump -j .note.gnu.build-id -s /usr/bin/ls

@elwinar
Copy link
Owner

elwinar commented Sep 15, 2020

To load debug files in GDB set debug-file-directory <directory>

@elwinar
Copy link
Owner

elwinar commented Sep 15, 2020

TODO: change the copy & debug script for a script that download the full package of related files, ungzip it then run the debugger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants