Re: renaming core dumps

Talvola@aol.com
Fri, 23 Feb 1996 22:38:55 -0500


At my old job, we installed turnkey systems for various clients. These
systems were supposed to require basically no system management except for
making backup tapes. Now, the system consisted of about 50 applications
run
under our own scheduler on a VMS system. Now, to handle core dumps on
this
machine, we make all the applications start with the same current
directory,
and put a version limit of 50 on the directory, so we would always keep 50
copies of the core file (actually CRASH.DMP, but the purpose is the same).

Now, just as I was leaving my job, we had finished porting our code to
Unix.
I'm not sure how they solved the problem, but just writing 'core' to a
directory obviously won't work - we will overwrite them on the next run.
Having 'core.pid' or 'program_name.pid.core' or something like that would
have made life a lot easier.

Does anyone know of a better way to handle this situation? Should there
be a
way for a process to tell the kernel the name of its core file? That
seemed
like a good idea to me, and I was going to play with it in Linux, but
switched jobs and never got the chance to play with it.

I guess we could have used some sort of daemon which would look for the
'core' files and file them away some place too. What do major software
vendors do to handle this situation? Assume their code never crashes :-)?

-- Erik
talvola@gnu.ai.mit.edu
(or in case of last resort, talvola@aol.com)