public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug analyzer/107210] New: [13 Regression] ICE in tree_to_uhwi, at tree.cc:6392
Date: Tue, 11 Oct 2022 04:39:37 +0000	[thread overview]
Message-ID: <bug-107210-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 107210
           Summary: [13 Regression] ICE in tree_to_uhwi, at tree.cc:6392
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gfortran 13.0.0 20221009 snapshot (g:e95e91eccd022a4a3a86da2749809fbad9afd20e)
ICEs when compiling the following testcase, reduced from
gcc/testsuite/gfortran.dg/sizeof.f90, w/ -O1 -fanalyzer:

subroutine check_int (j)
  INTEGER(4) :: i, ia(5), ib(5,4), ip, ipa(:)
  target :: ib
  POINTER :: ip, ipa
  logical :: l(5)

  l = (/ sizeof(i) == 4, sizeof(ia) == 20, sizeof(ib) == 80, &
       sizeof(ip) == 4, sizeof(ipa) == 8 /)

  if (any(.not.l)) STOP 4

end subroutine check_int

% gfortran-13 -O1 -fanalyzer -c twz5zkp4.f90
during IPA pass: analyzer
twz5zkp4.f90:8:43:

    8 |        sizeof(ip) == 4, sizeof(ipa) == 8 /)
      |                                           ^
internal compiler error: in tree_to_uhwi, at tree.cc:6392
0x7ad4c3 tree_to_uhwi(tree_node const*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/tree.cc:6392
0x7ad4c3 tree_to_uhwi(tree_node const*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/tree.cc:6390
0x13dbc17 ana::constant_svalue::maybe_fold_bits_within(tree_node*,
ana::bit_range const&, ana::region_model_manager*) const
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/svalue.cc:891
0x13dbc17 ana::constant_svalue::maybe_fold_bits_within(tree_node*,
ana::bit_range const&, ana::region_model_manager*) const
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/svalue.cc:870
0x13a089d ana::region_model_manager::maybe_fold_bits_within_svalue(tree_node*,
ana::bit_range const&, ana::svalue const*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/region-model-manager.cc:1025
0x13a11aa ana::region_model_manager::get_or_create_bits_within(tree_node*,
ana::bit_range const&, ana::svalue const*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/region-model-manager.cc:1116
0x13cc1e3 ana::binding_cluster::maybe_get_compound_binding(ana::store_manager*,
ana::region const*) const
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/store.cc:1736
0x1374a96 ana::region_model::get_store_value(ana::region const*,
ana::region_model_context*) const
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/region-model.cc:3210
0x137537c ana::region_model::get_rvalue(ana::path_var,
ana::region_model_context*) const
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/region-model.cc:3104
0x137c717 ana::region_model::on_assignment(gassign const*,
ana::region_model_context*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/region-model.cc:1088
0x134f294 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode
const*, gimple const*, ana::program_state*, ana::uncertainty_t*,
ana::path_context*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/engine.cc:1447
0x135233f ana::exploded_graph::process_node(ana::exploded_node*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/engine.cc:4033
0x13531fa ana::exploded_graph::process_worklist()
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/engine.cc:3436
0x13558ec ana::impl_run_checkers(ana::logger*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/engine.cc:6084
0x135693e ana::run_checkers()
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/engine.cc:6158
0x13451f8 execute
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/analyzer-pass.cc:86

             reply	other threads:[~2022-10-11  4:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-11  4:39 asolokha at gmx dot com [this message]
2022-10-11  7:23 ` [Bug analyzer/107210] [13 Regression] ICE in tree_to_uhwi, at tree.cc:6392 since r13-3168-gf09b99550a3c6cd1 marxin at gcc dot gnu.org
2022-10-11  7:27 ` rguenth at gcc dot gnu.org
2022-10-13 20:06 ` cvs-commit at gcc dot gnu.org
2022-10-13 20:11 ` dmalcolm 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-107210-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).