I've got CONFIG_ELF_CORE and CONFIG_COREDUMP both configured to yes in
my kernel.
When I do
$ uclimit -H -c
, it tells me "unlimited".
But still, no dump. :-(
What am I missing?
But still, no dump. :-(
What am I missing?
Hello, Gentoo.
I'm developing software, and it crashes in its build process. I want
a core dump, to help find out where and why it's crashing.
I've got CONFIG_ELF_CORE and CONFIG_COREDUMP both configured to yes in
my kernel.
When I do
$ uclimit -H -c
, it tells me "unlimited".
But still, no dump. :-(
What am I missing?
On Thu, Dec 16, 2021 at 10:55 AM Alan Mackenzie <acm@muc.de> wrote:
But still, no dump. :-(
What am I missing?
Are you using systemd? It has a mechanism to consolidate core dumps
to a system directory with a tool to view/debug them and retention
policies. I think that all is enabled by default, but it has been a
while since I touched it. If it is enabled then that might explain
why dumps aren't where you expect them.
--
Rich
On 2021-12-16 15:55+0000 Alan Mackenzie <acm@muc.de> wrote:
Hello, Gentoo.
I'm developing software, and it crashes in its build process. I want
a core dump, to help find out where and why it's crashing.
I've got CONFIG_ELF_CORE and CONFIG_COREDUMP both configured to yes in
my kernel.
When I do
$ uclimit -H -c
, it tells me "unlimited".
But still, no dump. :-(
What am I missing?
You need to enable them explicitly. If you're using PAM:
echo '* soft core unlimited' > /etc/security/limits.conf
It only has an effect after your next login. For more information, see <https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces#Core_dumps>.
Kind regards, tastytea
--
Get my PGP key with `gpg --locate-keys tastytea@tastytea.de` or at <https://tastytea.de/tastytea.asc>.
Alex:
I've got CONFIG_ELF_CORE and CONFIG_COREDUMP both configured to yes in
my kernel.
When I do
$ uclimit -H -c
, it tells me "unlimited".
But still, no dump. :-(
What am I missing?
Have you tried:
$ man gcore
$ man 5 core
Regards,
/Karl Hammar
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 61:27:33 |
Calls: | 6,654 |
Files: | 12,200 |
Messages: | 5,331,528 |