Hello, tastytea.
On Fri, Dec 17, 2021 at 00:18:12 +0100, tastytea wrote:
On 2021-12-16 15:55+0000 Alan Mackenzie <[email protected]> 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>.
Thanks greatly! This was a very helpful answer. I've now edited that
file, and will be ready next time there's a problem like this.
As half expected when you ask a question like this, I found the problem
in my build software anyhow. I was doing one too many pointer
dereferences on a (in C) **bool.
Kind regards, tastytea
--
Get my PGP key with `gpg --locate-keys [email protected]` or at <https://tastytea.de/tastytea.asc>.
--
Alan Mackenzie (Nuremberg, Germany).
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)