Gentoo Archives: gentoo-user

From: tastytea <gentoo@××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How do I get a core dump from seg-faulting software?
Date: Thu, 16 Dec 2021 23:18:31
Message-Id: 20211217001812.24a862cd@ventiloplattform.tastytea.de
In Reply to: [gentoo-user] How do I get a core dump from seg-faulting software? by Alan Mackenzie
1 On 2021-12-16 15:55+0000 Alan Mackenzie <acm@×××.de> wrote:
2
3 > Hello, Gentoo.
4 >
5 > I'm developing software, and it crashes in its build process. I want
6 > a core dump, to help find out where and why it's crashing.
7 >
8 > I've got CONFIG_ELF_CORE and CONFIG_COREDUMP both configured to yes in
9 > my kernel.
10 >
11 > When I do
12 >
13 > $ uclimit -H -c
14 >
15 > , it tells me "unlimited".
16 >
17 > But still, no dump. :-(
18 >
19 > What am I missing?
20 >
21
22 You need to enable them explicitly. If you're using PAM:
23 echo '* soft core unlimited' > /etc/security/limits.conf
24
25 It only has an effect after your next login. For more information, see
26 <https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces#Core_dumps>.
27
28 Kind regards, tastytea
29
30 --
31 Get my PGP key with `gpg --locate-keys tastytea@××××××××.de` or at
32 <https://tastytea.de/tastytea.asc>.

Replies

Subject Author
Re: [gentoo-user] How do I get a core dump from seg-faulting software? Alan Mackenzie <acm@×××.de>