On 2018-05-22 08:02, Per Jessen wrote:
Carlos E. R. wrote:
No, the user doesn't need to fiddle. Just access the directory where the dumps are stored, but currently he doesn't get permission.
I thought that is working as designed. When I googled, I came across this page:
It says that it is file "/etc/sysctl.d/50-coredump.conf" which creates the pipe in "/proc/sys/kernel/core_pattern", but that conf file does not exist in my system. There is, however, "/usr/lib/sysctl.d/50-coredump.conf"
A quick browse suggest coredumpctl is used to access core dumps.
Now, that is very interesting! "coredumpctl list" prints the list of coredumps. For instance, I get (452 entries): ... Tue 2018-05-15 16:20:18 CEST 11484 1000 100 11 /usr/lib/tracker-store Tue 2018-05-15 21:29:37 CEST 30545 1000 100 11 /home/cer/MovistarTV.Server.2.0.13-alpha-indep/Kodi_MovistarTV_Server.pvr Wed 2018-05-16 17:28:27 CEST 24928 1000 100 11 /usr/lib/tracker-store Thu 2018-05-17 13:48:00 CEST 6122 1000 100 11 /usr/lib/tracker-store Fri 2018-05-18 16:04:23 CEST 18341 1000 100 11 /usr/lib/tracker-store Sat 2018-05-19 13:00:02 CEST 31511 1000 100 11 * /usr/lib/tracker-store Sun 2018-05-20 13:38:05 CEST 12251 1000 100 11 * /usr/lib/tracker-store Sun 2018-05-20 22:59:02 CEST 30036 1000 100 11 * /usr/lib64/kodi/kodi.bin Mon 2018-05-21 13:38:26 CEST 26768 1000 100 11 * /home/cer/MovistarTV.Server.2.0.13-alpha-indep/Kodi_MovistarTV_Server.pvr Mon 2018-05-21 18:17:08 CEST 25411 1000 100 11 * /usr/lib/tracker-store So I try to obtain one or two, but the file is empty: cer@Isengard:~> coredumpctl -o kodi.core dump /usr/lib64/kodi/kodi.bin PID: 30036 (kodi.bin) UID: 1000 (cer) GID: 100 (users) Signal: 11 (SEGV) Timestamp: Sun 2018-05-20 22:58:11 CEST (1 day 14h ago) Command Line: /usr/lib64/kodi/kodi.bin Executable: /usr/lib64/kodi/kodi.bin Control Group: / Slice: -.slice Boot ID: 499842fc44574e29abc11e0d2eb4ac27 Machine ID: af5da4da5956dc08183725bc583a0cd5 Hostname: Isengard Coredump: /var/lib/systemd/coredump/core.kodi\x2ebin.1000.499842fc44574e29abc11e0d2eb4ac27.30036.1526849891000000 Message: Process 30036 (kodi.bin) of user 1000 dumped core. More than one entry matches, ignoring rest. cer@Isengard:~> man coredumpctl cer@Isengard:~> l kodi.core -rw-r--r-- 1 cer users 0 May 22 13:32 kodi.core cer@Isengard:~> I try specifying the PID, per the man page: cer@Isengard:~> coredumpctl -o kodi.core dump 30036 /usr/lib64/kodi/kodi.bin PID: 30036 (kodi.bin) UID: 1000 (cer) GID: 100 (users) Signal: 11 (SEGV) Timestamp: Sun 2018-05-20 22:58:11 CEST (1 day 14h ago) Command Line: /usr/lib64/kodi/kodi.bin Executable: /usr/lib64/kodi/kodi.bin Control Group: / Slice: -.slice Boot ID: 499842fc44574e29abc11e0d2eb4ac27 Machine ID: af5da4da5956dc08183725bc583a0cd5 Hostname: Isengard Coredump: /var/lib/systemd/coredump/core.kodi\x2ebin.1000.499842fc44574e29abc11e0d2eb4ac27.30036.1526849891000000 Message: Process 30036 (kodi.bin) of user 1000 dumped core. More than one entry matches, ignoring rest. cer@Isengard:~> l kodi.core -rw-r--r-- 1 cer users 0 May 22 13:38 kodi.core cer@Isengard:~> or cer@Isengard:~> coredumpctl -o kodi.core dump 30036 PID: 30036 (kodi.bin) UID: 1000 (cer) GID: 100 (users) Signal: 11 (SEGV) Timestamp: Sun 2018-05-20 22:58:11 CEST (1 day 14h ago) Command Line: /usr/lib64/kodi/kodi.bin Executable: /usr/lib64/kodi/kodi.bin Control Group: / Slice: -.slice Boot ID: 499842fc44574e29abc11e0d2eb4ac27 Machine ID: af5da4da5956dc08183725bc583a0cd5 Hostname: Isengard Coredump: /var/lib/systemd/coredump/core.kodi\x2ebin.1000.499842fc44574e29abc11e0d2eb4ac27.30036.1526849891000000 Message: Process 30036 (kodi.bin) of user 1000 dumped core. More than one entry matches, ignoring rest. cer@Isengard:~> l kodi.core -rw-r--r-- 1 cer users 0 May 22 13:41 kodi.core cer@Isengard:~> Although there is only one hit for that PID: cer@Isengard:~> coredumpctl list | grep 30036 Sun 2018-05-20 22:59:02 CEST 30036 1000 100 11 * /usr/lib64/kodi/kodi.bin cer@Isengard:~> The core file exists: cer@Isengard:~> l /var/lib/systemd/coredump/core.kodi\\x2ebin.1000.499842fc44574e29abc11e0d2eb4ac27.30036.1526849891000000 -rw-r-----+ 1 root root 1073741824 May 20 22:58 /var/lib/systemd/coredump/core.kodi\x2ebin.1000.499842fc44574e29abc11e0d2eb4ac27.30036.1526849891000000 cer@Isengard:~> Same result as root. Is this a bug?
The thing is, if now other apps dump core, you will have to go find them all over the disk.
I guess it might depend on the environment, but we don't have enough for that to be a real problem :-)
cer@Isengard:~> coredumpctl list | wc -l 452 cer@Isengard:~> My disk would be full by now :-o -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)