Re: core dumps being overwritten

From: Alexander Best <alexbestms_at_math.uni-muenster.de>
Date: Fri, 24 Jul 2009 01:15:04 +0200 (CEST)
i was thinking about this issue the other day again. if /var/crash/bounds gets
corrupted vital crash/debug information could be lost (like in my case).

why don't we check for existing core dumps instead of using bounds? doing
something like in this pseudo code:

i = 0;
while(exist("vmcore."i) || exist("core.txt."i) || exist("info."i))
    i++;
write("vmcore."i);
write(""core.txt."i);
write("info."i);

or how about using /dev/random to create unique filenames so core dumps never
get overwritten?

cheers.
Received on Thu Jul 23 2009 - 21:15:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:52 UTC