From 5a49870fc984645c092632571d41d73be12e8370 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Fri, 5 Oct 2018 23:30:17 -0400 Subject: [PATCH] docs: add coredumpctl systemd-coredumpctl collects core files for later analysis with gdb. It's a convenient thing if the keys you use to encrypt /var/lib/systemd/coredump are the same as the keys you use to encrypt the filesystem where you're running bees. Add it to the documentation just before the hand-rolled version. Signed-off-by: Zygo Blaxell --- docs/wrong.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/wrong.md b/docs/wrong.md index cf3d4c9..95309bf 100644 --- a/docs/wrong.md +++ b/docs/wrong.md @@ -96,7 +96,15 @@ bees Crashes **Note that this output may include filenames or data from your filesystem.** - * If the crash happens often (or you just want to be extra prepared), + * If you have `systemd-coredump` installed, you can use `coredumpctl`: + + (echo set pagination off; + echo info shared; + echo bt; + echo thread apply all bt; + echo thread apply all bt full) | coredumpctl gdb bees + + * If the crash happens often (or don't want to use coredumpctl), you can run automate the gdb data collection with this wrapper script: