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

            Bug ID: 96611
           Summary: ICE in get_or_create_cluster
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: pmatos at gcc dot gnu.org
  Target Milestone: ---

On GCC tip of master from 20200814.
While static analyzing the racket source (github.com/racket/racket), it fails
on (reduced):
struct {
  long a;
} * b;
void c();
int d() {
  c();
  c(&b->a);
  return 1;
}

with message:
~/racket/racket/src/bc/rktio# /gcc/libexec/gcc/x86_64-pc-linux-gnu/11.0.0/cc1
-fpreprocessed rktio_sleep.i -quiet -dumpbase rktio_sleep.c -dumpbase-ext .c
-mtune=generic -march=x86-64 -g -O2 -Wall -version -Werror -Wfatal-errors
-fanalyzer -o rktio_sleep.s
GNU C17 (GCC) version 11.0.0 20200814 (experimental) (x86_64-pc-linux-gnu)
        compiled by GNU C version 8.3.0, GMP version 6.1.2, MPFR version 4.0.2,
MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C17 (GCC) version 11.0.0 20200814 (experimental) (x86_64-pc-linux-gnu)
        compiled by GNU C version 8.3.0, GMP version 6.1.2, MPFR version 4.0.2,
MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: bca87f5421b78e00047ba8f5a58d16b4
during IPA pass: analyzer
rktio_sleep.i: In function 'd':
rktio_sleep.i:7:3: internal compiler error: in get_or_create_cluster, at
analyzer/store.cc:1613
    7 |   c(&b->a);
      |   ^~~~~~~~
0x735ea1 ana::store::get_or_create_cluster(ana::region const*)
        ../../gcc/gcc/analyzer/store.cc:1613
0x115ca10 ana::store::mark_as_escaped(ana::region const*)
        ../../gcc/gcc/analyzer/store.cc:1694
0x115237b ana::reachable_regions::mark_escaped_clusters()
        ../../gcc/gcc/analyzer/region-model-reachability.cc:218
0x113e3fc ana::region_model::handle_unrecognized_call(gcall const*,
ana::region_model_context*)
        ../../gcc/gcc/analyzer/region-model.cc:773
0x113e5bd ana::region_model::on_call_post(gcall const*, bool,
ana::region_model_context*)
        ../../gcc/gcc/analyzer/region-model.cc:707
0x111af7c ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode
const*, gimple const*, ana::program_state*) const
        ../../gcc/gcc/analyzer/engine.cc:1105
0x111bd22 ana::exploded_graph::process_node(ana::exploded_node*)
        ../../gcc/gcc/analyzer/engine.cc:2526
0x111c69a ana::exploded_graph::process_worklist()
        ../../gcc/gcc/analyzer/engine.cc:2341
0x111e6bc ana::impl_run_checkers(ana::logger*)
        ../../gcc/gcc/analyzer/engine.cc:4107
0x111f8bd ana::run_checkers()
        ../../gcc/gcc/analyzer/engine.cc:4175
0x11142b8 execute
        ../../gcc/gcc/analyzer/analyzer-pass.cc:84
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 via email to