This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug pch/12610] ICE after creating PCH the second time


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12610



------- Additional Comments From jneuheisel at equinoxsensors dot com  2003-10-30 14:05 -------
I'm having the same problem:

0:BUG:0$ uname -a
Linux --- 2.4.20 #15 SMP Mon Oct 27 10:26:40 EST 2003 i686 i686 i386 GNU/Linux

0:BUG:0$ gcc-3.4 -v
Reading specs from /home/joshua/src/gcc/LOCAL/lib/gcc/i686-pc-linux-gnu/3.4/specs
Configured with: /home/joshua/src/gcc/gcc/configure
--prefix=/home/joshua/src/gcc/LOCAL --program-suffix=-3.4 --enable-languages=c,c++
Thread model: posix
gcc version 3.4 20031029 (experimental)

0:BUG:0$ cat main.h 
#ifndef MAIN_H
#define MAIN_H

int main ();

#endif

0:BUG:0$ gcc-3.4 main.h 

0:BUG:0$ gcc-3.4 main.h 
<command line>:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

>From gdb:
Program received signal SIGSEGV, Segmentation fault.
0x080b141f in _cpp_create_definition (pfile=0x84dabd0, node=0x404320cc) at
/home/joshua/src/gcc/gcc/gcc/cppmacro.c:1491
1491      macro->syshdr = pfile->map->sysp != 0;
(gdb) bt
#0  0x080b141f in _cpp_create_definition (pfile=0x84dabd0, node=0x404320cc) at
/home/joshua/src/gcc/gcc/gcc/cppmacro.c:1491
#1  0x084dabd0 in ?? ()
#2  0x080bb747 in cpp_read_state (r=0x84dabd0, name=0x84e6f58 "main.h",
f=0x84e8dd0, data=0x84e5d60)
    at /home/joshua/src/gcc/gcc/gcc/cpppch.c:693
#3  0x080aa4c2 in c_common_read_pch (pfile=0x84dabd0, name=0x0, fd=0,
orig_name=0x84e5d50 "main.h.gch")
    at /home/joshua/src/gcc/gcc/gcc/c-pch.c:385
#4  0x080b50d1 in _cpp_stack_file (pfile=0x84dabd0, file=0x84e8c00) at
/home/joshua/src/gcc/gcc/gcc/cppfiles.c:560
#5  0x080b780a in cpp_push_main_file (pfile=0x84dabd0) at
/home/joshua/src/gcc/gcc/gcc/cppinit.c:490
#6  0x0809c6da in push_command_line_include () at
/home/joshua/src/gcc/gcc/gcc/c-opts.c:1469
#7  0x0809c920 in c_common_parse_file (set_yydebug=0) at
/home/joshua/src/gcc/gcc/gcc/c-opts.c:1223
#8  0x082e0e5d in toplev_main (argc=0, argv=0x84dabd0) at
/home/joshua/src/gcc/gcc/gcc/toplev.c:1836
#9  0x080bc28e in main (argc=0, argv=0x0) at /home/joshua/src/gcc/gcc/gcc/main.c:35
#10 0x40039a07 in __libc_start_main () from /lib/i686/libc.so.6


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]