preprocessor/758: -AQUESTION(ANSWER) seg fault under gcc-2.96 (RedHat 7.0)
sbytnar@stg.com
sbytnar@stg.com
Thu Nov 9 09:06:00 GMT 2000
>Number: 758
>Category: preprocessor
>Synopsis: -AQUESTION(ANSWER) seg fault under gcc-2.96 (RedHat 7.0)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 09 09:06:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Steven Bytnar
>Release: gcc version 2.96 20000731 (Red Hat Linux 7.0)
>Organization:
>Environment:
Linux 2.2.16-22 #2 i686
UP, 128MB RAM.
>Description:
ksh-2.04$ cc -Ae -E -</dev/null
cc: Internal error: Segmentation fault (program cpp0)
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
ksh-2.04$ gdb /usr/lib/gcc-lib/i386-redhat-linux/2.96/cpp0 core
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or 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.
This GDB was configured as "i386-redhat-linux"...(no debugging symbols found)...
Core was generated by `/usr/lib/gcc-lib/i386-redhat-linux/2.96/cpp0 -lang-c -Ae -D__GNUC__=2 -D__GNUC_'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0 0x8052861 in strcpy () at ../sysdeps/generic/strcpy.c:31
31 ../sysdeps/generic/strcpy.c: No such file or directory.
(gdb) where
#0 0x8052861 in strcpy () at ../sysdeps/generic/strcpy.c:31
#1 0x7 in ?? ()
#2 0x804d610 in strcpy () at ../sysdeps/generic/strcpy.c:31
#3 0x8052ae4 in strcpy () at ../sysdeps/generic/strcpy.c:31
#4 0x804f27d in strcpy () at ../sysdeps/generic/strcpy.c:31
#5 0x80495c5 in strcpy () at ../sysdeps/generic/strcpy.c:31
#6 0x40039b65 in __libc_start_main (main=0x80494b0 <strcpy+252>, argc=22, ubp_av=0xbffff9c4, init=0x8048f84,
fini=0x805965c <__umoddi3+492>, rtld_fini=0x4000df24 <_dl_fini>, stack_end=0xbffff9bc) at ../sysdeps/generic/libc-start.c:111
(gdb)
>How-To-Repeat:
cc -Ae -E -</dev/null
>Fix:
Dont pass bad(?) arguments through -A.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list