Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6129

Ubuntu 22.04 - How to store Core Dump files in same directory as executable

$
0
0

I am using Ubuntu 22.04.

cat /proc/sys/kernel/core_pattern|/lib/systemd/systemd-coredump %P %u %g %s %t 9223372036854775808 %h

As far as I understand I am using systemd-coredump to generate coredump files when my C++ program crashes. However the coredump files are stored here /var/lib/systemd/coredump

I would like to change the coredump storing location to be at the same place where the executable is.

This thing drives me crazy, I red alot over stackoverflow but all info looks to be for older versions of Ubuntu not for 22.04.

Is there anyway I can achieve that?

P.S.I have uninstalled apport by running sudo apt-get remove apport


Viewing all articles
Browse latest Browse all 6129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>