This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Segfault on empty file
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Segfault on empty file
- From: James Macnicol <jamesm at ee dot adfa dot edu dot au>
- Date: Wed, 15 Nov 2000 22:25:06 +1100 (EST)
When trying to compile a zero length file, I get the following segfault :
Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.8/2.97/specs
Configured with: ./configure --prefix=/usr/local --with-gnu-as --with-gnu-ld --with-dwarf2 --enable-haifa --enable-libstdcxx-v3
gcc version 2.97 20001113 (experimental)
/usr/local/lib/gcc-lib/i386-pc-solaris2.8/2.97/cc1 -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=97 -D__GNUC_PATCHLEVEL__=0 -Dunix -D__svr4__ -D__SVR4 -Dsun -D__unix__ -D__svr4__ -D__SVR4 -D__sun__ -D__unix -D__sun -Asystem=svr4 -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i386__ foo.c -quiet -dumpbase foo.c -version -o /var/tmp/cccQTjLf.s
GNU CPP version 2.97 20001113 (experimental) (cpplib) (i386 System V Release 4)
GNU C version 2.97 20001113 (experimental) (i386-pc-solaris2.8) compiled by GNU C version 2.97 20001113 (experimental).
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/local/lib/gcc-lib/i386-pc-solaris2.8/2.97/include
/usr/local/i386-pc-solaris2.8/include
/usr/include
End of search list.
foo.c:0: Internal error: Segmentation Fault.
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
This is Solaris x86 8. (There isn't anything else I can send for this
bug report....)
--
James Macnicol
j-macnicol@adfa.edu.au