public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at physics dot uc dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/11361] [3.4 regression] ICE (segfault) in c-lex.c with one-liner
Date: Sat, 28 Jun 2003 16:28:00 -0000	[thread overview]
Message-ID: <20030628162851.20949.qmail@sources.redhat.com> (raw)
In-Reply-To: <20030628161840.11361.giovannibajo@libero.it>

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 ()


  reply	other threads:[~2003-06-28 16:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-28 16:18 [Bug preprocessor/11361] New: " giovannibajo at libero dot it
2003-06-28 16:28 ` pinskia at physics dot uc dot edu [this message]
2003-06-28 20:06 ` Neil Booth
2003-06-28 20:06 ` [Bug preprocessor/11361] " neil at daikokuya dot co dot uk
2003-06-28 20:14 ` giovannibajo at libero dot it
2003-07-15 15:21 ` pinskia at physics dot uc dot edu
2003-07-22 23:11 ` cvs-commit at gcc dot gnu dot org
2003-07-22 23:16 ` pinskia at physics dot uc dot edu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030628162851.20949.qmail@sources.redhat.com \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).