How to catch SIGSEGV of any program?

There are programs in Fedora and Fedora called abrt (https://fedorahosted.org/abrt/). It captures fatal signals on a large scale, saves a coredump and analyzes it.

  • How can abrt catch signals from other programs? As far as I know, you can only catch the signals of your process.
  • How does abrt save the kernel file after it caught the signal if ulimit -c is set to 0 by default?
+3
source share
1 answer

It does not recognize signals and does not read kernel files. Instead, ABRT uses /proc/sys/kernel/core_patternto capture the main file as it is created.

$ cat /proc/sys/kernel/core_pattern 
|/usr/libexec/abrt-hook-ccpp /var/spool/abrt %p %s %u %c
+1
source

All Articles