You are not logged in.

#1 2019-04-22 21:33:14

miomio
Member
Registered: 2016-01-17
Posts: 167

[SOLVED] Where do core dump files get dumped to?

A program is ending with a segmentation fault, apparently there's a core dump of it, however it isn't in the cwd.

`cat /proc/sys/kernel/core_pattern` returns

/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %e

Where does systemd-coredump output the coredump to?

Last edited by miomio (2019-04-23 01:38:27)

Offline

#2 2019-04-22 22:03:54

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Where do core dump files get dumped to?

/var/lib/systemd/coredump/

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2019-04-22 22:29:50

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] Where do core dump files get dumped to?


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#4 2019-04-22 22:31:26

miomio
Member
Registered: 2016-01-17
Posts: 167

Re: [SOLVED] Where do core dump files get dumped to?

Does this gdb backtrace suggest that not all of the params I specified had been sent to  echoping?

echoping -w 1 -p 6 -t 1 -6 -m /usr/lib/echoping/dns.so -n 20 facebook.com -t AAAA --tcp facebook.com
Segmentation fault (core dumped)
 gdb /usr/bin/echoping /var/lib/systemd/coredump/core.echoping.1000.514b500cab5783d7baaca6a221accd5.24749.1555966228000000
GNU gdb (GDB) 8.2.1
...
Reading symbols from /usr/bin/echoping...(no debugging symbols found)...done.
[New LWP 24749]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `echoping -w 1 -p 6 -t 1 -6 -m /usr/lib/echoping/dns.so -n 20 facebook.com -t AA'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fd6fe1c446a in init () from /usr/lib/echoping/dns.so
(gdb) bt full
#0  0x00007fd6fe1c446a in init () from /usr/lib/echoping/dns.so
No symbol table info available.
#1  0x00005570e1331d58 in main ()
No symbol table info available.

But if I run the partial command shown in gdb I get:

$ echoping -w 1 -p 6 -t 1 -6 -m /usr/lib/echoping/dns.so -n 20 facebook.com -t AA
Error: Mandatory request missing
Usage: [-?] [-t|--type=type] [--tcp] [--no-recurse] [-?|--help] [--usage]
  request

So not sure what to believe.

Last edited by miomio (2019-04-22 22:33:27)

Offline

#5 2019-04-22 23:34:44

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Offline

Board footer

Powered by FluxBB