public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/60085] New: ICE in get_frame_type on weird code
Date: Wed, 05 Feb 2014 21:32:00 -0000	[thread overview]
Message-ID: <bug-60085-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 60085
           Summary: ICE in get_frame_type on weird code
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org

void
foo (void)
{
  void weirdo (a)
    char a[({ char b = 0; b; })];
  {
  }
}

$ ./cc1 -quiet weirdo.c
weirdo.c: In function ‘foo’:
weirdo.c:2:1: internal compiler error: Segmentation fault
 foo (void)
 ^
0xb40cf1 crash_signal
    /home/marek/src/gcc/gcc/toplev.c:337
0xbd9b8f get_frame_type
    /home/marek/src/gcc/gcc/tree-nested.c:234
0xbda267 get_chain_decl
    /home/marek/src/gcc/gcc/tree-nested.c:342
0xbdb919 get_nonlocal_debug_decl
    /home/marek/src/gcc/gcc/tree-nested.c:856
0xbdc017 convert_nonlocal_reference_op
    /home/marek/src/gcc/gcc/tree-nested.c:934
0xdffd3d walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, pointer_set_t*, tree_node* (*)(tree_node**, int*, tree_node*
(*)(tree_node**, int*, void*), void*, pointer_set_t*))
    /home/marek/src/gcc/gcc/tree.c:10920
0x8d0496 walk_gimple_op(gimple_statement_base*, tree_node* (*)(tree_node**,
int*, void*), walk_stmt_info*)
    /home/marek/src/gcc/gcc/gimple-walk.c:221
0x8d1093 walk_gimple_stmt(gimple_stmt_iterator*, tree_node*
(*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**,
int*, void*), walk_stmt_info*)
    /home/marek/src/gcc/gcc/gimple-walk.c:535
0x8cfcfe walk_gimple_seq_mod(gimple_statement_base**, tree_node*
(*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**,
int*, void*), walk_stmt_info*)
    /home/marek/src/gcc/gcc/gimple-walk.c:58
0x8d10eb walk_gimple_stmt(gimple_stmt_iterator*, tree_node*
(*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**,
int*, void*), walk_stmt_info*)
    /home/marek/src/gcc/gcc/gimple-walk.c:545
0x8cfcfe walk_gimple_seq_mod(gimple_statement_base**, tree_node*
(*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**,
int*, void*), walk_stmt_info*)
    /home/marek/src/gcc/gcc/gimple-walk.c:58
0x8d10eb walk_gimple_stmt(gimple_stmt_iterator*, tree_node*
(*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**,
int*, void*), walk_stmt_info*)
    /home/marek/src/gcc/gcc/gimple-walk.c:545
0x8cfcfe walk_gimple_seq_mod(gimple_statement_base**, tree_node*
(*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**,
int*, void*), walk_stmt_info*)
    /home/marek/src/gcc/gcc/gimple-walk.c:58
0xbdafff walk_body
    /home/marek/src/gcc/gcc/tree-nested.c:603
0xbdb041 walk_function
    /home/marek/src/gcc/gcc/tree-nested.c:614
0xbdb382 walk_all_functions
    /home/marek/src/gcc/gcc/tree-nested.c:679
0xbe1f85 lower_nested_functions(tree_node*)
    /home/marek/src/gcc/gcc/tree-nested.c:2724
0x71b6e4 analyze_function
    /home/marek/src/gcc/gcc/cgraphunit.c:656
0x71c793 analyze_functions
    /home/marek/src/gcc/gcc/cgraphunit.c:1017
0x71ff46 finalize_compilation_unit()
    /home/marek/src/gcc/gcc/cgraphunit.c:2320
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-442759-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 05 21:42:38 2014
Return-Path: <gcc-bugs-return-442759-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5846 invoked by alias); 5 Feb 2014 21:42:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 5805 invoked by uid 48); 5 Feb 2014 21:42:35 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/56458] support for crash on invalid array access
Date: Wed, 05 Feb 2014 21:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.7.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution
Message-ID: <bug-56458-4-pKCDEbvLlQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56458-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56458-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-02/txt/msg00516.txt.bz2
Content-length: 523

http://gcc.gnu.org/bugzilla/show_bug.cgi?idV458

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |mpolacek at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
We have ASAN, so "fixed".


             reply	other threads:[~2014-02-05 21:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-05 21:32 mpolacek at gcc dot gnu.org [this message]
2014-02-05 21:32 ` [Bug middle-end/60085] " mpolacek at gcc dot gnu.org
2021-12-13  4:31 ` pinskia at gcc dot gnu.org
2021-12-13  4:33 ` pinskia at gcc dot gnu.org
2021-12-13  4:35 ` pinskia 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-60085-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).