core dump volumes
With a yet not perfectly working (X-)application I happen to get X-server crashes and core dumps.
(1.) The sheer volume of those "core.nnnn" dumps is flabbergasting:
tendentially, they fill up all available volume of the main Linux partition - and some of these dumps did, and this apparently "spilled over" and damaged some of the X setup -, and they are in the range of 600+ MB.
I have some trouble to understand this:
-- The "core" (how much is this identical with the loaded kernel?)
couldn't be possibly that large; there's only just a bit more than half of that RAM installed in the machine (320 MB), definitely not 600 MB or more.
-- What is it that gets dumped, really ?
(2.) Using "mc" (the Midnight Commander), I found such a "core.1216" dump indicated as a file with a size of "637164K", and deleted it.
Running "df" before and after, I get quite different data:
Before deleting: 1875228 1K-blocks in use After deleting: 1429892 1K-blocks in use
Difference thus: 445336 1K-blocks
-- clearly less than the 637164K of the deleted file according to MC.
Where have the missing 192828K been/vanished ?
Who is correct here, "df" or "mc" ? And what/whom is to be believed ?
// Heimo Claasen // Brussels 2002-11-24
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
For whatever it's worth, I'm told that core dumps are an obvious target for denial of service attacks, and so they are best not generated if you don't think you will use them. This from Bastille, which offers to disable core dumping.
Haines Brown
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 4 lines · Haines Brown
For whatever it's worth, I'm told that core dumps are an obvious target for denial of service attacks, and so they are best not generated if you don't think you will use them. This from Bastille, which offers to disable core dumping.
Well, maybe. But, in general core files include debugging information in order to identify where and why an application crashed. You can use gdb to examine a core file; it has been mentioned lots of times in linux-newbie.
As far as security is concerned, a cracker will probably try to use a buffer overflow exploit. If he/she doesn't succeed (i.e. if he/she hasn't make correct calculations) there is a great chance to simply crash the valnurable application. Programs that segfault can be taken under control and, if they are suid root, can give someone access to a system.
Elias
Signature · 6 lines
http://gnewtellium.sourceforge.net MP3 is not a crime. - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs