Hi, I hope this newsgroup is appropriate enough for a
hopefully simple Linux development question.
I am using Linux as a development platform at work but
for some reason, Linux does NOT generate a coredump
when a program crashes.
It would be nice to say, "Well, that's because no
programs are ever crashing." Unfortunately, that is
not the case. :)
Is there something I need to do in the kernel, or
compiler (gcc) to enable coredumps or something?
In my understanding the abort() function should always
generate a coredump, yet no core file is created by the
following program:
#include <stdlib.h>
int main( int argc, char * argv[] )
{
abort();
return 0;
}
When that program is compiled and run on HP/UX version
9.05, it DOES generate a coredump. So, theoretically
that program "works."
Unless the core files are being very cleverly hidden
someplace on my system and I simply cannot find them,
of course. :)
I'm running Linux version 1.2.13 (outdated, I'm sure!)
and using gcc version 2.7.0 on this machine.
Thanks for your help!
--
+====================+==============================+
| Programmer +------------------------------+
| Kesmai Corporation | Opinions are mine, ALL mine! |
+====================+==============================+