From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29700 invoked by alias); 14 Oct 2003 01:14:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 29693 invoked by uid 48); 14 Oct 2003 01:14:21 -0000 Date: Tue, 14 Oct 2003 01:14:00 -0000 From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20031014011420.12610.pinskia@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug pch/12610] New: ICE after creating PCH the second time X-Bugzilla-Reason: CC X-SW-Source: 2003-10/txt/msg00924.txt.bz2 List-Id: 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 Summary: ICE after creating PCH the second time Product: gcc Version: 3.4 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P2 Component: pch AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org Create an empty file called pch.h run the following: gcc pch.h gcc pch.h GCC will produce a seg fault: 0x0004f9a4 in _cpp_create_definition (pfile=0x41003800, node=0x46e1cc) at /Volumes/ UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cppmacro.c:1491 1491 macro->syshdr = pfile->map->sysp != 0; (gdb) bt #0 0x0004f9a4 in _cpp_create_definition (pfile=0x41003800, node=0x46e1cc) at /Volumes/ UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cppmacro.c:1491 #1 0x0005c7b4 in cpp_read_state (r=0x41003800, name=0x40c01850 "pch.h", f=0xa0009870, data=0x40c01a10) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cpppch.c:693 #2 0x0005c7b4 in cpp_read_state (r=0x41003800, name=0x40c01850 "pch.h", f=0xa0009870, data=0x40c01a10) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cpppch.c:693 #3 0x0004aa44 in c_common_read_pch (pfile=0x41003800, name=0xa0009870 "A\001v?", fd=1, orig_name=0x1
) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc- clean/src/gcc/c-pch.c:270 #4 0x00059ad0 in _cpp_stack_file (pfile=0x0, file=0x410057bc, import=true) at /Volumes/ UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cppfiles.c:560 #5 0x00058450 in cpp_push_main_file (pfile=0x41003800) at /Volumes/UFS_Partition/pinskia/ src/fsf/gcc-clean/src/gcc/cppinit.c:490 #6 0x0003fc34 in c_common_parse_file (set_yydebug=1090541500) at /Volumes/UFS_Partition/ pinskia/src/fsf/gcc-clean/src/gcc/c-opts.c:1223 #7 0x0009d628 in toplev_main (argc=1078457488, argv=0x1) at /Volumes/UFS_Partition/ pinskia/src/fsf/gcc-clean/src/gcc/toplev.c:1815 #8 0x00002124 in _start (argc=15, argv=0xbffffba0, envp=0xbffffbe0) at /SourceCache/Csu/ Csu-46/crt.c:267 #9 0x00001f98 in start () (gdb)