#857300 Please add a dump-core script

Package:
kdump-tools
Source:
kdump-tools
Description:
scripts and tools for automating kdump (Linux crash dumps)
Submitter:
Benjamin Drung
Date:
2021-02-01 21:48:32 UTC
Severity:
wishlist
Tags:
#857300#5
Date:
2017-03-09 18:40:12 UTC
From:
To:
Hi,

Some users might want to store core dumps in the same place as kernel
dumps (especially when storing them on a remote machine). To avoid
having to configure two scripts, add a dump-core script to kdump-tools.
It will use the same configuration file as kdump-tools.

Set /proc/sys/kernel/core_pattern to pipe the core dumps to dump-core.
You can use following sysctl configuration file:

  $ cat /etc/sysctl.d/50-dump-core.conf
  kernel.core_pattern = |/usr/share/kdump-tools/dump-core %e-pid%p-sig%s-%t
  # 2 = "suidsafe": Any binary which normally would not be dumped (see "0")
  # is dumped readable by root only.
  fs.suid_dumpable = 2
  $ sysctl -p /etc/sysctl.d/50-dump-core.conf

A patch is attached. Please review it carefully. Some could is
duplicated and probably should be placed in a shell library file.

#857300#10
Date:
2017-03-10 13:16:09 UTC
From:
To:
Hi,

I enhanced the dump-core script to collect meta-data information in
apport's crash file format to ease the crash file analysis. An updated
patch is attached.