1 |
Hello, tastytea. |
2 |
|
3 |
On Fri, Dec 17, 2021 at 00:18:12 +0100, tastytea wrote: |
4 |
> On 2021-12-16 15:55+0000 Alan Mackenzie <acm@×××.de> wrote: |
5 |
|
6 |
> > Hello, Gentoo. |
7 |
|
8 |
> > I'm developing software, and it crashes in its build process. I want |
9 |
> > a core dump, to help find out where and why it's crashing. |
10 |
|
11 |
> > I've got CONFIG_ELF_CORE and CONFIG_COREDUMP both configured to yes in |
12 |
> > my kernel. |
13 |
|
14 |
> > When I do |
15 |
|
16 |
> > $ uclimit -H -c |
17 |
|
18 |
> > , it tells me "unlimited". |
19 |
|
20 |
> > But still, no dump. :-( |
21 |
|
22 |
> > What am I missing? |
23 |
|
24 |
|
25 |
> You need to enable them explicitly. If you're using PAM: |
26 |
> echo '* soft core unlimited' > /etc/security/limits.conf |
27 |
|
28 |
> It only has an effect after your next login. For more information, see |
29 |
> <https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces#Core_dumps>. |
30 |
|
31 |
Thanks greatly! This was a very helpful answer. I've now edited that |
32 |
file, and will be ready next time there's a problem like this. |
33 |
|
34 |
As half expected when you ask a question like this, I found the problem |
35 |
in my build software anyhow. I was doing one too many pointer |
36 |
dereferences on a (in C) **bool. |
37 |
|
38 |
> Kind regards, tastytea |
39 |
|
40 |
> -- |
41 |
> Get my PGP key with `gpg --locate-keys tastytea@××××××××.de` or at |
42 |
> <https://tastytea.de/tastytea.asc>. |
43 |
|
44 |
-- |
45 |
Alan Mackenzie (Nuremberg, Germany). |