This is the mail archive of the
mailing list for the GCC project.
Re: core file not created
- To: Katherine Meiszer <katherine at mil dot ufl dot edu>
- Subject: Re: core file not created
- From: "Zack Weinberg" <zackw at stanford dot edu>
- Date: Fri, 25 May 2001 10:56:13 -0700
- Cc: gcc-help at gcc dot gnu dot org, gcc at gcc dot gnu dot org
On Fri, May 25, 2001 at 01:27:32PM -0400, Katherine Meiszer wrote:
> I am running code compiled with g++ using gcc version egcs-2.91.66 on a
> Linux system. When I get a segmentation fault, no core file is
> created. I have never before seen an instance of where a segmentation
> fault is not accompanied by a core dump. I wrote a simple test program
> that does nothing but incorrectly index an array and it also does create
> a core file when it crashes.
I'm a little confused. What is crashing, the program you compiled, or
the compiler itself?
If it's the compiler, we deliberately disable core dumps because they
tend to be huge and less than helpful. You should use -v -save-temps
to get the command line for the internal executable (cc1plus,
probably) that's actually crashing, then run it under the debugger.
If it's your program, check your user limits. The core dump is
probably too big for them.
Note that egcs-2.91.66 is very old, you may wish to try gcc-2.95.3 or
a 3.0 prerelease snapshot.
zw The beginning of almost every story is actually a bone, something with
which to court the dog, which may bring you closer to the lady.
-- Amos Oz, _The Story Begins_