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

            Bug ID: 127238
           Summary: [16/17 Regression] ICE: in hashtab_chk_error, at
                    hash-table.cc:126 with -fopenacc -fanalyzer
                    -fcondition-coverage
                    --param=hash-table-verification-limit=1073741824
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

Created attachment 65518
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65518&action=edit
reduced testcase

The original testcase didn't have the NULLs as the string functions operands ;
I  can try to reduce a testcase without those, if needed.

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O -fopenacc -fanalyzer -fcondition-coverage
--param=hash-table-verification-limit=1073741824 testcase.c
hash table checking failed: equal operator returns true for a pair of values
with a different hash value
during IPA pass: analyzer
testcase.c: In function 'foo':
testcase.c:9:8: internal compiler error: in hashtab_chk_error, at
hash-table.cc:126
    9 |     do __builtin_strcat(0, 1 + &a);
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
0x2f095dd internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
0xe5c287 fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostics/context.cc:1813
0xe5bee4 hashtab_chk_error()
        /repo/gcc-trunk/gcc/hash-table.cc:126
0x1b55b38 hash_table<hash_map<ana::point_and_state const*, ana::exploded_node*,
ana::eg_hash_map_traits>::hash_entry, false,
xcallocator>::verify(ana::point_and_state const* const&, unsigned int)
        /repo/gcc-trunk/gcc/hash-table.h:1122
0x1b55da0 hash_map<ana::point_and_state const*, ana::exploded_node*,
ana::eg_hash_map_traits>::get(ana::point_and_state const* const&)
        /repo/gcc-trunk/gcc/hash-table.h:998
0x1b4aba7 ana::exploded_graph::get_or_create_node(ana::program_point const&,
ana::program_state const&, ana::exploded_node*, bool)
        /repo/gcc-trunk/gcc/analyzer/engine.cc:2576
0x1b4d695 ana::exploded_graph::process_node(ana::exploded_node*)
        /repo/gcc-trunk/gcc/analyzer/engine.cc:3531
0x1b4db3a ana::exploded_graph::process_worklist()
        /repo/gcc-trunk/gcc/analyzer/engine.cc:3147
0x1b5041b ana::impl_run_checkers(ana::logger*)
        /repo/gcc-trunk/gcc/analyzer/engine.cc:4846
0x1b51246 ana::run_checkers()
        /repo/gcc-trunk/gcc/analyzer/engine.cc:4937
0x1b428a8 execute
        /repo/gcc-trunk/gcc/analyzer/analyzer-pass.cc:81
/repo/gcc-trunk/binary-trunk-20260907023252-r17-3967-gd6c3e489d368da-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/17.0.0/cc1
-quiet -iprefix
/repo/gcc-trunk/binary-trunk-20260907023252-r17-3967-gd6c3e489d368da-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../lib/gcc/x86_64-pc-linux-gnu/17.0.0/
-D_REENTRANT testcase.c -quiet -dumpdir a- -dumpbase testcase.c -dumpbase-ext
.c -mtune=generic -march=x86-64 -O -fopenacc -fanalyzer -fcondition-coverage
--param=hash-table-verification-limit=1073741824 -fprofile-update=prefer-atomic
-o /tmp/ccbPp20T.s
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-20260907023252-r17-3967-gd6c3e489d368da-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/17.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --enable-libsanitizer --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-20260907023252-r17-3967-gd6c3e489d368da-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 17.0.0 20260907 (experimental) (GCC)

Reply via email to