Catch SIGSEGV from Linux kernel
- From: "F.Julien" <stopspam@xxxxxxxxxxxx>
- Date: Wed, 20 Feb 2008 23:30:01 +0100
Hi All
I'd like to catch all processes that end because of a segmentation fault. My goal is to print a kernel log when a process exit in that case.
I did look into the kernel code and the only solution I found is to patch the function "send_signal" (file kernel/signal.c).
I did also search on google an existing kernel patch but I only found a very old patch for 2.2 kernel.
I'm surprised that nobody wants to monitor this (especially sysadmin). Maybe I missed something and a solution is already available.
So, is it possible to catch process that SIGSEGV with the 2.6.X kernel ? I can patch the kernel but I feel that a simplest solution already exist...
Any thought would me appreciated.
--
Julian.
.
- Follow-Ups:
- Re: Catch SIGSEGV from Linux kernel
- From: Rainer Weikusat
- Re: Catch SIGSEGV from Linux kernel
- From: David Schwartz
- Re: Catch SIGSEGV from Linux kernel
- Prev by Date: Re: ioctl call fails with unknown command
- Next by Date: Re: Catch SIGSEGV from Linux kernel
- Previous by thread: ioctl call fails with unknown command
- Next by thread: Re: Catch SIGSEGV from Linux kernel
- Index(es):
Relevant Pages
|