public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "doko at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/61474] New: ICE (segfault) in preprocessor
Date: Wed, 11 Jun 2014 12:39:00 -0000	[thread overview]
Message-ID: <bug-61474-4@http.gcc.gnu.org/bugzilla/> (raw)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61474

            Bug ID: 61474
           Summary: ICE (segfault) in preprocessor
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org

seen on any version back to 4.4

$ cat a.c 
#include "b.h"
#include "c.h"
$ cat b.h 
# 1 "c.h" 1
$ gcc -E a.c
# 1 "a.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
# 1 "a.c"
# 1 "b.h" 1
# 1 "c.h" 1
# 1 "b.h" 2
In file included from a.c:1:0:
b.h:1:0: internal compiler error: Segmentation fault
 # 1 "c.h" 1
 ^
Please submit a full bug report,
with preprocessed source if appropriate.


Program received signal SIGSEGV, Segmentation fault.
0x0000000000d990a8 in ?? ()
(gdb) bt
#0  0x0000000000d990a8 in ?? ()
#1  0x0000000000d997e8 in ?? ()
#2  0x0000000000d9a3ab in _cpp_stack_file ()
#3  0x0000000000d9a844 in _cpp_stack_include ()
#4  0x0000000000d92666 in ?? ()
#5  0x0000000000d931e8 in _cpp_handle_directive ()
#6  0x0000000000d9fa1d in _cpp_lex_token ()
#7  0x0000000000da42d0 in ?? ()
#8  0x00000000005d5af8 in preprocess_file(cpp_reader*) ()
#9  0x00000000005d4591 in c_common_init() ()
#10 0x000000000057faee in c_objc_common_init() ()
#11 0x00000000008b4fe7 in toplev_main(int, char**) ()
#12 0x00007ffff69e8ec5 in __libc_start_main (main=0x5526e0 <main>, argc=12,
argv=0x7fffffffe5e8, 
    init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>,
stack_end=0x7fffffffe5d8)
    at libc-start.c:287
#13 0x0000000000552915 in _start ()


             reply	other threads:[~2014-06-11 12:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-11 12:39 doko at gcc dot gnu.org [this message]
2014-06-12  9:22 ` [Bug preprocessor/61474] " rguenth at gcc dot gnu.org
2021-03-09 17:04 ` doko at debian dot org
2023-09-20 20:46 ` cvs-commit at gcc dot gnu.org
2023-09-20 20:49 ` lhyatt at gcc dot gnu.org

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=bug-61474-4@http.gcc.gnu.org/bugzilla/ \
    --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).