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

From: Ihar 'Philips' Filipau
Date: Sun Aug 17 2003 - 07:55:54 EST


Alan Cox wrote:
On Sul, 2003-08-17 at 00:06, David D. Hagood wrote:

Your logfiles just got DoS'ed....


Why not then just log uncaught exceptions?


man acct


Sorry, probably I'm missing smth. man acct(2) says:

"DESCRIPTION
"When called with the name of an existing file as argument, ccounting is turned on, records for each terminating process are appended to filename as it terminates. An argument of NULL causes accounting to be turned off".

I do not see how it relates to abends.
It logs _everything_, what is not that useful. Having some kind of filter what to log - whould be just great. Or alternatively ability to pass file descriptor - not file name.

And this mysterious NOTES:

"No accounting is produced for programs running when a crash occurs. In particular, nonterminating processes are never accounted for".

Sounds like acct() does reverse? No crashes are logged.
Or it is about Linux crash?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/