Linux kernel keeps logging segfaults in ring buffer.
a.out[25415]: segfault at 8049604 ip 08049604 sp bf88e3fc error 15 in a.out[8049000+1000]
Is there a way to temporarily disable it? My usecase is that I'm running a testsuite that does all sorts of crazy things and I don't want to see segfaults in dmesg
from that time period. dmesg -c
is not an option because the test framework I'm forced to use is analyzing dmesg output and I cannot just clear it in the middle.
I was going through sysctl -a
output if there's some kernel parameter, but I don't see anything that appears to be useful. kernel.print-fatal-signals
looked promising but it's just for showing more detailed info.
Best Answer
Okay, I eventually found it. It's called
debug.exception-trace
.sysctl -w debug.exception-trace=0
orecho 0 > /proc/sys/debug/exception-trace
will turn it off.The last segfault is not logged.