Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Cliff Krumvieda
Thu, 05 Nov 1992 07:03
enums and gcc-2.3.1 (but not 2.2.2) cause dbx to dump core
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads