public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100002] New: internal compiler error: in hashtab_chk_error,  at hash-table.c:137
@ 2021-04-09 16:26 hjl.tools at gmail dot com
  2021-04-17  6:04 ` [Bug c++/100002] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2021-04-09 16:26 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100002
           Summary: internal compiler error: in hashtab_chk_error, at
                    hash-table.c:137
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: nathan at acm dot org
  Target Milestone: ---

On Linux/x86-64, r11-8071 gave:

[hjl@gnu-clx-1 g++]$ cat /tmp/doit0
/export/build/gnu/tools-build/gcc/build-x86_64-linux/gcc/testsuite/g++/../../xg++
-B/export/build/gnu/tools-build/gcc/build-x86_64-linux/gcc/testsuite/g++/../../
/export/gnu/import/git/gitlab/x86-gcc/gcc/testsuite/g++.dg/modules/xtreme-tr1_a.H
-m32 -fdiagnostics-plain-output -nostdinc++
-I/export/build/gnu/tools-build/gcc/build-x86_64-linux/x86_64-pc-linux-gnu/32/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/export/build/gnu/tools-build/gcc/build-x86_64-linux/x86_64-pc-linux-gnu/32/libstdc++-v3/include
-I/export/gnu/import/git/gitlab/x86-gcc/libstdc++-v3/libsupc++
-I/export/gnu/import/git/gitlab/x86-gcc/libstdc++-v3/include/backward
-I/export/gnu/import/git/gitlab/x86-gcc/libstdc++-v3/testsuite/util
-fmessage-length=0 -std=c++17 -pedantic-errors -Wno-long-long -fmodule-header
-S -o xtreme-tr1_a.s
[hjl@gnu-clx-1 g++]$ sh /tmp/doit0
[hjl@gnu-clx-1 g++]$ cat /tmp/doit
/export/build/gnu/tools-build/gcc/build-x86_64-linux/gcc/testsuite/g++/../../xg++
-B/export/build/gnu/tools-build/gcc/build-x86_64-linux/gcc/testsuite/g++/../../
/export/gnu/import/git/gitlab/x86-gcc/gcc/testsuite/g++.dg/modules/xtreme-tr1_b.C
-m32 -fdiagnostics-plain-output -nostdinc++
-I/export/build/gnu/tools-build/gcc/build-x86_64-linux/x86_64-pc-linux-gnu/32/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/export/build/gnu/tools-build/gcc/build-x86_64-linux/x86_64-pc-linux-gnu/32/libstdc++-v3/include
-I/export/gnu/import/git/gitlab/x86-gcc/libstdc++-v3/libsupc++
-I/export/gnu/import/git/gitlab/x86-gcc/libstdc++-v3/include/backward
-I/export/gnu/import/git/gitlab/x86-gcc/libstdc++-v3/testsuite/util
-fmessage-length=0 -std=c++17 -pedantic-errors -Wno-long-long -fmodules-ts
-fno-module-lazy -S -o xtreme-tr1_b.s -march=skylake-avx512 -mrtm
[hjl@gnu-clx-1 g++]$ sh /tmp/doit
hash table checking failed: equal operator returns true for a pair of values
with a different hash value
/export/gnu/import/git/gitlab/x86-gcc/gcc/testsuite/g++.dg/modules/xtreme-tr1_b.C:4:25:
internal compiler error: in hashtab_chk_error, at hash-table.c:137
0x8f2583 hashtab_chk_error()
        /export/gnu/import/git/sources/gcc/gcc/hash-table.c:137
0xb01265 hash_table<spec_hasher, false, xcallocator>::verify(spec_entry*
const&, unsigned int)
        /export/gnu/import/git/sources/gcc/gcc/hash-table.h:1033
0xb017ee hash_table<spec_hasher, false,
xcallocator>::find_slot_with_hash(spec_entry* const&, unsigned int,
insert_option)
        /export/gnu/import/git/sources/gcc/gcc/hash-table.h:968
0xabe57b match_mergeable_specialization(bool, spec_entry*)
        /export/gnu/import/git/sources/gcc/gcc/cp/pt.c:29961
0xa37998 trees_in::key_mergeable(int, merge_kind, tree_node*, tree_node*,
tree_node*, tree_node*, bool)
        /export/gnu/import/git/sources/gcc/gcc/cp/module.cc:10670
0xa3b594 trees_in::decl_value()
        /export/gnu/import/git/sources/gcc/gcc/cp/module.cc:7903
0xa343f7 trees_in::tree_node(bool)
        /export/gnu/import/git/sources/gcc/gcc/cp/module.cc:9153
0xa3aa1b module_state::read_cluster(unsigned int)
        /export/gnu/import/git/sources/gcc/gcc/cp/module.cc:14811
0xa3af1d module_state::load_section(unsigned int, binding_slot*)
        /export/gnu/import/git/sources/gcc/gcc/cp/module.cc:18082
0xa3d6b5 module_state::read_language(bool)
        /export/gnu/import/git/sources/gcc/gcc/cp/module.cc:18011
0xa3d87e direct_import
        /export/gnu/import/git/sources/gcc/gcc/cp/module.cc:18877
0xaa4f97 cp_parser_translation_unit
        /export/gnu/import/git/sources/gcc/gcc/cp/parser.c:4907
0xaa4f97 c_parse_file()
        /export/gnu/import/git/sources/gcc/gcc/cp/parser.c:45268
0xbc9a9d c_common_parse_file()
        /export/gnu/import/git/sources/gcc/gcc/c-family/c-opts.c:1218
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.
[hjl@gnu-clx-1 g++]$ 

Remove -mrtm makes ICE go away:

[hjl@gnu-clx-1 g++]$
/export/build/gnu/tools-build/gcc/build-x86_64-linux/gcc/testsuite/g++/../../xg++
-B/export/build/gnu/tools-build/gcc/build-x86_64-linux/gcc/testsuite/g++/../../
/export/gnu/import/git/gitlab/x86-gcc/gcc/testsuite/g++.dg/modules/xtreme-tr1_b.C
-m32 -fdiagnostics-plain-output -nostdinc++
-I/export/build/gnu/tools-build/gcc/build-x86_64-linux/x86_64-pc-linux-gnu/32/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/export/build/gnu/tools-build/gcc/build-x86_64-linux/x86_64-pc-linux-gnu/32/libstdc++-v3/include
-I/export/gnu/import/git/gitlab/x86-gcc/libstdc++-v3/libsupc++
-I/export/gnu/import/git/gitlab/x86-gcc/libstdc++-v3/include/backward
-I/export/gnu/import/git/gitlab/x86-gcc/libstdc++-v3/testsuite/util
-fmessage-length=0 -std=c++17 -pedantic-errors -Wno-long-long -fmodules-ts
-fno-module-lazy -S -o xtreme-tr1_b.s -march=skylake-avx512
[hjl@gnu-clx-1 g++]$

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/100002] internal compiler error: in hashtab_chk_error, at hash-table.c:137
  2021-04-09 16:26 [Bug c++/100002] New: internal compiler error: in hashtab_chk_error, at hash-table.c:137 hjl.tools at gmail dot com
@ 2021-04-17  6:04 ` pinskia at gcc dot gnu.org
  2022-01-01  4:19 ` pinskia at gcc dot gnu.org
  2022-01-01  4:19 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-04-17  6:04 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So just a quick look into this (not reproduced though).

This would mean comp_template_args is returning true but the hash give by
iterative_hash_template_arg is different.

The only thing -mrtm changes would change is the DECL_UIDs which is the
starting hash.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/100002] internal compiler error: in hashtab_chk_error, at hash-table.c:137
  2021-04-09 16:26 [Bug c++/100002] New: internal compiler error: in hashtab_chk_error, at hash-table.c:137 hjl.tools at gmail dot com
  2021-04-17  6:04 ` [Bug c++/100002] " pinskia at gcc dot gnu.org
@ 2022-01-01  4:19 ` pinskia at gcc dot gnu.org
  2022-01-01  4:19 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-01  4:19 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 103769.

*** This bug has been marked as a duplicate of bug 103769 ***

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/100002] internal compiler error: in hashtab_chk_error, at hash-table.c:137
  2021-04-09 16:26 [Bug c++/100002] New: internal compiler error: in hashtab_chk_error, at hash-table.c:137 hjl.tools at gmail dot com
  2021-04-17  6:04 ` [Bug c++/100002] " pinskia at gcc dot gnu.org
  2022-01-01  4:19 ` pinskia at gcc dot gnu.org
@ 2022-01-01  4:19 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-01  4:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Sorry PR 100052.

*** This bug has been marked as a duplicate of bug 100052 ***

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-01  4:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09 16:26 [Bug c++/100002] New: internal compiler error: in hashtab_chk_error, at hash-table.c:137 hjl.tools at gmail dot com
2021-04-17  6:04 ` [Bug c++/100002] " pinskia at gcc dot gnu.org
2022-01-01  4:19 ` pinskia at gcc dot gnu.org
2022-01-01  4:19 ` pinskia at gcc dot gnu.org

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