Re: Dumb question: Why are exceptions such as SIGSEGV not logged

From: Valdis . Kletnieks
Date: Sat Aug 16 2003 - 15:54:02 EST


On Sun, 17 Aug 2003 04:10:30 +0800, Michael Frank <mhf@xxxxxxxxxxxxx> 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.

Attachment: pgp00001.pgp
Description: PGP signature