Article View: gnu.gcc.bug
Article #1272enums and gcc-2.3.1 (but not 2.2.2) cause dbx to dump core
From: Cliff Krumvieda
Date: Thu, 05 Nov 1992 07:03
Date: Thu, 05 Nov 1992 07:03
51 lines
2082 bytes
2082 bytes
Howdy:
The executable created by running gcc-2.3.1 on the short program below
causes dbx to dump core; the one created by gcc-2.2.2 works fine.
We're running gcc on sparcs and SunOS 4.1.1; configure was run as
"configure --target=sparc-sun-sunos4.1". Also, "fixincludes" has been
installed.
======================================================================
#include <stdio.h>
typedef enum {HI, ALLO} greetings;
main()
{
printf ("hello world\n");
}
======================================================================
Here's a script; note that gdb works ok:
======================================================================
[~] gemini% which dbx
/usr/ucb/dbx
[~] gemini% gcc -v
gcc version 2.3.1
[~] gemini% gcc -g bug.c
[~] gemini% a.out
hello world
[~] gemini% dbx a.out
Reading symbolic information...
Segmentation fault
[~/bug/kalantar] gemini% gdb a.out
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.7, Copyright 1992 Free Software Foundation, Inc...
(gdb) quit
[~] gemini% gcc-2.2.2 -v
Reading specs from /usr/local/gnu/gcc-2.2.2/lib/gcc-lib/sparc-sun-sunos4.1/2.2.2/specs
gcc version 2.2.2
[~] gemini% gcc-2.2.2 -g bug.c
[~] gemini% a.out
hello world
[~] gemini% dbx a.out
Reading symbolic information...
Read 108 symbols
(dbx) quit
======================================================================
--Cliff
Technical Details
Message-ID:
<9211051703.AA05418@ask.cs.cornell.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.cornell.edu!cliffShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.cornell.edu!cliff From: cliff@cs.cornell.edu (Cliff Krumvieda) Subject: enums and gcc-2.3.1 (but not 2.2.2) cause dbx to dump core Message-ID: <9211051703.AA05418@ask.cs.cornell.edu> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Thu, 5 Nov 1992 07:03:36 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 52