public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug pch/12610] New: ICE after creating PCH the second time
@ 2003-10-14 1:14 pinskia at gcc dot gnu dot org
2003-10-30 14:10 ` [Bug pch/12610] " jneuheisel at equinoxsensors dot com
2003-11-18 7:29 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-14 1:14 UTC (permalink / raw)
To: gcc-bugs
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 <Address 0x1 out of bounds>) 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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug pch/12610] ICE after creating PCH the second time
2003-10-14 1:14 [Bug pch/12610] New: ICE after creating PCH the second time pinskia at gcc dot gnu dot org
@ 2003-10-30 14:10 ` jneuheisel at equinoxsensors dot com
2003-11-18 7:29 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: jneuheisel at equinoxsensors dot com @ 2003-10-30 14:10 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug pch/12610] ICE after creating PCH the second time
2003-10-14 1:14 [Bug pch/12610] New: ICE after creating PCH the second time pinskia at gcc dot gnu dot org
2003-10-30 14:10 ` [Bug pch/12610] " jneuheisel at equinoxsensors dot com
@ 2003-11-18 7:29 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-18 7:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-18 07:29 -------
It works now.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12610
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-11-18 7:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-14 1:14 [Bug pch/12610] New: ICE after creating PCH the second time pinskia at gcc dot gnu dot org
2003-10-30 14:10 ` [Bug pch/12610] " jneuheisel at equinoxsensors dot com
2003-11-18 7:29 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).