Messages in this thread | | | Subject | Re: Dumb question: Why are exceptions such as SIGSEGV not logged | From | Valdis.Kletnieks@vt ... | Date | Sat, 16 Aug 2003 16:49:57 -0400 |
| |
On Sun, 17 Aug 2003 04:10:30 +0800, Michael Frank <mhf@linuxmail.org> said: > Linux logs almost everything, why not exceptions such as SIGSEGV in userspace which > may be very informative?
Consider this code:
char *foo = 0; sigset(SIGSEGV,SIG_IGNORE); for(;;) { *foo = '\5'; }
Your logfiles just got DoS'ed....
(Your syslog will just print 'last message repeated 11934 times'? OK, put two different signals in the loop.. ;)
And yes, I've worked on systems that will log SEGV... and the logs get ugly. [unhandled content-type:application/pgp-signature] | |