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 preprocessor/11361] [3.4 regression] ICE (segfault) in c-lex.c with one-liner


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

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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-06-28 16:28:50
               date|                            |
            Summary|[3.4 regression] ICE        |[3.4 regression] ICE
                   |(segfault) in c-lex.c with  |(segfault) in c-lex.c with
                   |one-liner                   |one-liner


------- Additional Comments From pinskia at physics dot uc dot edu  2003-06-28 16:28 -------
I can confirm this on the mainline (20030628) with the c++ and c frontends.
With the FORTRAN frontend I get an error:
[omni:~/src/gccPRs] pinskia% g77 pr11361.f
eval.c:30: error: #-lines for entering and leaving files don't match

Here is the backtrace for the c frontend (looks like pfile->map is not being initialized):
#0  fe_file_change (new_map=0x0) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/
c-lex.c:207
#1  0x00035610 in cb_file_change (pfile=0x0, new_map=0x0) at /Volumes/UFS_Partition/pinskia/
src/fsf/gcc-clean/src/gcc/c-opts.c:1415
#2  0x000485c8 in _cpp_do_file_change (pfile=0xc32c70, reason=LC_ENTER, to_file=0x35610 
"\210\037", file_line=31, sysp=12803959) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/
src/gcc/cpplib.c:889
#3  0x00048528 in do_linemarker (pfile=0xc32c70) at /Volumes/UFS_Partition/pinskia/src/fsf/
gcc-clean/src/gcc/cpplib.c:873
#4  0x00047850 in _cpp_handle_directive (pfile=0xc32c70, indented=0) at /Volumes/
UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cpplib.c:424
#5  0x00041fb8 in _cpp_lex_token (pfile=0xc32c70) at /Volumes/UFS_Partition/pinskia/src/fsf/
gcc-clean/src/gcc/cpplex.c:659
#6  0x0003fde0 in cpp_get_token (pfile=0xc32c70) at /Volumes/UFS_Partition/pinskia/src/fsf/
gcc-clean/src/gcc/cppmacro.c:1064
#7  0x0000ce2c in c_lex (value=0x3cb028) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/
src/gcc/c-lex.c:307
#8  0x00007ac4 in _yylex () at c-parse.y:2966
#9  0x000078f4 in yylex () at c-parse.y:3074
#10 0x00002d28 in yyparse () at /usr/share/bison.simple:432
#11 0x00034dc0 in c_common_parse_file (set_yydebug=0) at /Volumes/UFS_Partition/pinskia/
src/fsf/gcc-clean/src/gcc/c-opts.c:1179
#12 0x0006fa3c in compile_file () at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/
toplev.c:2075
#13 0x00075448 in do_compile () at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/
toplev.c:5147
#14 0x000754d8 in toplev_main (argc=14, argv=0xbffffbdc) at /Volumes/UFS_Partition/pinskia/
src/fsf/gcc-clean/src/gcc/toplev.c:5176
#15 0x00001cb8 in _start (argc=14, argv=0xbffffbdc, envp=0xbffffc18) at /SourceCache/Csu/
Csu-45/crt.c:267
#16 0x00001b38 in start ()


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