I've been asking around my department and can't get a good answer,
maybe someone here can help.
I'm in a groupware development project in which we will typically have
3 or more processes running and communicating with each other. Then
one program will crash resulting in another one of the programs
crashing. There is a core file, but it inevitably ends up being the
dump of the _second_ crash, not the first.
My question is this: Why should all core files be "core"? I can't
believe this is the first time anyone has had this problem. The best
answer I've gotten is "It's just a holdover from the old days." Even
it you are debugging only one program, I'd rather generate several
cores, then go and look at them. It's annoying to have to keep moving
them or changing its name to something unique..
Would it be hard to change things so that the name would be "core.PID"
where PID is replaced by the pid of the crashing program? It seems
like a very small change, to me, but I'm no kernel hacker.
If Linux could do this it would be a big win. Most of our development
is on Solaris and IRIX and this would give Linux something that I
could really sell to the rest of the development group.
What do you think? Am I way off base about the dificulty of
Michael D, Hirsch Work: (404) 727-4969
Emory University, Atlanta, GA 30322 FAX: (404) 727-5611
Public key for encrypted mail available upon request (or finger