Re-enabling kernel segfault messages

Kernels & Hardware, configuring network, installing services

Re-enabling kernel segfault messages

Postby bariumbitmap » 2018-02-15 18:17

I used to get segfault messages like this in dmesg:

Code: Select all
pstree[25678]: segfault at 0 ip 00007f58be0b3ae4 sp 00007ffe65b700a0 error 4 in libc-2.24.so[7f58be04d000+195000]


But since I've tried packages like systemd-coredump and corekeeper, the kernel messages have disappeared.

Do I re-enable them with a kernel argument or something like that?
bariumbitmap
 
Posts: 13
Joined: 2014-03-17 21:59

Re: Re-enabling kernel segfault messages

Postby bariumbitmap » 2018-02-20 14:10

For posterity, the relevant kernel parameter is "debug.exception-trace".

Code: Select all
$ sysctl debug.exception-trace
debug.exception-trace = 1


My issue was actually different; I was using a test program that raised SIGSEGV and created a core dump, but didn't actually access invalid memory. More details here:

https://unix.stackexchange.com/question ... s-in-dmesg
bariumbitmap
 
Posts: 13
Joined: 2014-03-17 21:59


Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable