public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/102474] New: [12 regression] Crash in ipa-modref compiling Go code
Date: Thu, 23 Sep 2021 20:34:39 +0000	[thread overview]
Message-ID: <bug-102474-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 102474
           Summary: [12 regression] Crash in ipa-modref compiling Go code
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ian at airs dot com
  Target Milestone: ---

Compiling this Go program with -O1 -fno-strict-aliasing crashes the compiler in
ipa-modref.

package p

type S struct {
        f1 string
        f2 interface{}
        f3 string
        f4 struct {
                f41 uint32
                f42 struct {
                        f421 int32
                        f422 uint32
                }
        }
        f5 struct {
                f51 *byte
                f52 *byte
                f53 *byte
        }
        f6 struct {
                f61 int32
        }
        f7 struct {
                f71 uint64
                f72 int64
                f73 *byte
        }
        f8 *byte
}

The crash I see is:

during IPA pass: modref
go1: internal compiler error: in forced_merge, at ipa-modref-tree.h:351
0xcbaff1 modref_access_node::forced_merge(modref_access_node const&, bool)
        ../../trunk/gcc/ipa-modref-tree.h:351
0xcbe389 modref_ref_node<int>::insert_access(modref_access_node, unsigned long,
bool)
        ../../trunk/gcc/ipa-modref-tree.h:575
0xcbe8e3 modref_tree<int>::insert(int, int, modref_access_node, bool)
        ../../trunk/gcc/ipa-modref-tree.h:844
0xcb65de propagate_unknown_call
        ../../trunk/gcc/ipa-modref.c:3418
0xcb6a69 modref_propagate_in_scc
        ../../trunk/gcc/ipa-modref.c:3598
0xcb740e execute
        ../../trunk/gcc/ipa-modref.c:3968
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

             reply	other threads:[~2021-09-23 20:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-23 20:34 ian at airs dot com [this message]
2021-09-24  0:40 ` [Bug tree-optimization/102474] " pinskia at gcc dot gnu.org
2021-09-24  0:42 ` [Bug ipa/102474] " pinskia at gcc dot gnu.org
2021-09-24  6:53 ` rguenth at gcc dot gnu.org
2021-09-27 12:38 ` marxin at gcc dot gnu.org
2021-09-28 23:24 ` ian at airs dot com
2021-09-30 11:55 ` marxin at gcc dot gnu.org
2021-10-06 14:57 ` hubicka at gcc dot gnu.org
2021-10-07 18:50 ` ian at airs dot com

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-102474-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).