public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/105097] New: hashtab_chk_error when using g3 option to compile some C program
@ 2022-03-29 13:09 jiangtaijin at acoinfo dot com
  2022-03-29 13:50 ` [Bug c/105097] " mpolacek at gcc dot gnu.org
  2022-11-30 20:27 ` [Bug debug/105097] " pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: jiangtaijin at acoinfo dot com @ 2022-03-29 13:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105097
           Summary: hashtab_chk_error when using g3 option to compile some
                    C program
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jiangtaijin at acoinfo dot com
  Target Milestone: ---

I gets hashtab_chk_error error when using "-g3" option to compile some C
program. But when I use "-g" option to compile, it is OK.

Follow is the command and output: 

H://RealEvo-Compiler/installer/compiler/loongarch64-sylixos-toolchain/bin/loongarch64-sylixos-elf-gcc
 -fPIC  -Wall -Werror -fmessage-length=0 -fsigned-char -O2 -g3 -gdwarf-2 
-DSYLIXOS -DSYLIXOS_LIB -DIN_LIBGCOV=1 -DGCOV_LOCKED=0 -DBITS_PER_UNIT=32
-DLONG_LONG_TYPE_SIZE=64 -DCROSS_DIRECTORY_STRUCTURE -DUSE_TM_CLONE_REGISTRY=0
-D__LIBGCC_VTABLE_USES_DESCRIPTORS__=0 -DL_gcov -DL_gcov_merge_add
-DL_gcov_merge_topn -DL_gcov_merge_ior -DL_gcov_merge_time_profile
-DL_gcov_interval_profiler -DL_gcov_interval_profiler_atomic
-DL_gcov_pow2_profiler -DL_gcov_pow2_profiler_atomic
-DL_gcov_topn_values_profiler -DL_gcov_topn_values_profiler_atomic
-DL_gcov_average_profiler -DL_gcov_average_profiler_atomic
-DL_gcov_ior_profiler -DL_gcov_ior_profiler_atomic
-DL_gcov_indirect_call_profiler_v4 -DL_gcov_time_profiler -DL_gcov_dump
-DL_gcov_flush -DL_gcov_execl -DL_gcov_execlp -DL_gcov_execle -DL_gcov_execv
-DL_gcov_execvp -DL_gcov_execve -DL_gcov_reset
-I"H:/RealEvo-Compiler/src/libsylixos/SylixOS"
-I"H:/RealEvo-Compiler/src/libsylixos/SylixOS/include"
-I"H:/RealEvo-Compiler/src/libsylixos/SylixOS/include/network" -o
loongarch64/libgcov/pic/libgcov-interface.o -c src/libgcov/libgcov-interface.c
-v -save-temps
Using built-in specs.
COLLECT_GCC=H:\RealEvo-Compiler\installer\compiler\loongarch64-sylixos-toolchain\bin\loongarch64-sylixos-elf-gcc.exe
Target: loongarch64-sylixos-elf
Configured with:
/home/user/toolchains/loongarch/gcc-loongarch64-sylixos-elf-10-2020-q4-major/src/gcc/configure
--build=x86_64-linux-gnu --host=i686-w64-mingw32
--target=loongarch64-sylixos-elf
--prefix=/home/user/toolchains/loongarch/gcc-loongarch64-sylixos-elf-10-2020-q4-major/install-mingw
--libexecdir=/home/user/toolchains/loongarch/gcc-loongarch64-sylixos-elf-10-2020-q4-major/install-mingw/lib
--infodir=/home/user/toolchains/loongarch/gcc-loongarch64-sylixos-elf-10-2020-q4-major/install-mingw/share/doc/gcc-loongarch64-sylixos-elf/info
--mandir=/home/user/toolchains/loongarch/gcc-loongarch64-sylixos-elf-10-2020-q4-major/install-mingw/share/doc/gcc-loongarch64-sylixos-elf/man
--htmldir=/home/user/toolchains/loongarch/gcc-loongarch64-sylixos-elf-10-2020-q4-major/install-mingw/share/doc/gcc-loongarch64-sylixos-elf/html
--pdfdir=/home/user/toolchains/loongarch/gcc-loongarch64-sylixos-elf-10-2020-q4-major/install-mingw/share/doc/gcc-loongarch64-sylixos-elf/pdf
--enable-languages=c,c++ --enable-mingw-wildcard --disable-decimal-float
--disable-libffi --enable-libgomp --disable-libmudflap --disable-libquadmath
--disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared
--enable-threads=posix --disable-tls --with-gnu-as --with-gnu-ld
--with-headers=yes --with-newlib
--with-python-dir=share/gcc-loongarch64-sylixos-elf
--with-sysroot=/home/user/toolchains/loongarch/gcc-loongarch64-sylixos-elf-10-2020-q4-major/install-mingw/loongarch64-sylixos-elf
--with-libiconv-prefix=/home/user/toolchains/loongarch/gcc-loongarch64-sylixos-elf-10-2020-q4-major/build-mingw/host-libs/usr
--with-gmp=/home/user/toolchains/loongarch/gcc-loongarch64-sylixos-elf-10-2020-q4-major/build-mingw/host-libs/usr
--with-mpfr=/home/user/toolchains/loongarch/gcc-loongarch64-sylixos-elf-10-2020-q4-major/build-mingw/host-libs/usr
--with-mpc=/home/user/toolchains/loongarch/gcc-loongarch64-sylixos-elf-10-2020-q4-major/build-mingw/host-libs/usr
--with-isl=/home/user/toolchains/loongarch/gcc-loongarch64-sylixos-elf-10-2020-q4-major/build-mingw/host-libs/usr
--with-libelf=/home/user/toolchains/loongarch/gcc-loongarch64-sylixos-elf-10-2020-q4-major/build-mingw/host-libs/usr
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
--with-pkgversion='GNU Loongarch SylixOS Toolchain 12-2022-q1-update'
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.1 20220317 (experimental) (GNU Loongarch SylixOS Toolchain
12-2022-q1-update)
COLLECT_GCC_OPTIONS='-fPIC' '-Wall' '-Werror' '-fmessage-length=0'
'-fsigned-char' '-O2' '-g3' '-gdwarf-2' '-D' 'SYLIXOS' '-D' 'SYLIXOS_LIB' '-D'
'IN_LIBGCOV=1' '-D' 'GCOV_LOCKED=0' '-D' 'BITS_PER_UNIT=32' '-D'
'LONG_LONG_TYPE_SIZE=64' '-D' 'CROSS_DIRECTORY_STRUCTURE' '-D'
'USE_TM_CLONE_REGISTRY=0' '-D' '__LIBGCC_VTABLE_USES_DESCRIPTORS__=0' '-D'
'L_gcov' '-D' 'L_gcov_merge_add' '-D' 'L_gcov_merge_topn' '-D'
'L_gcov_merge_ior' '-D' 'L_gcov_merge_time_profile' '-D'
'L_gcov_interval_profiler' '-D' 'L_gcov_interval_profiler_atomic' '-D'
'L_gcov_pow2_profiler' '-D' 'L_gcov_pow2_profiler_atomic' '-D'
'L_gcov_topn_values_profiler' '-D' 'L_gcov_topn_values_profiler_atomic' '-D'
'L_gcov_average_profiler' '-D' 'L_gcov_average_profiler_atomic' '-D'
'L_gcov_ior_profiler' '-D' 'L_gcov_ior_profiler_atomic' '-D'
'L_gcov_indirect_call_profiler_v4' '-D' 'L_gcov_time_profiler' '-D'
'L_gcov_dump' '-D' 'L_gcov_flush' '-D' 'L_gcov_execl' '-D' 'L_gcov_execlp' '-D'
'L_gcov_execle' '-D' 'L_gcov_execv' '-D' 'L_gcov_execvp' '-D' 'L_gcov_execve'
'-D' 'L_gcov_reset' '-I' 'H:/RealEvo-Compiler/src/libsylixos/SylixOS' '-I'
'H:/RealEvo-Compiler/src/libsylixos/SylixOS/include' '-I'
'H:/RealEvo-Compiler/src/libsylixos/SylixOS/include/network' '-o'
'loongarch64/libgcov/pic/libgcov-interface.o' '-c' '-v' '-save-temps'
'-mabi=lp64d' '-march=loongarch64' '-mfpu=64' '-mcmodel=normal' '-mtune=la464'
'-dumpdir' 'loongarch64/libgcov/pic/'

h:/realevo-compiler/installer/compiler/loongarch64-sylixos-toolchain/bin/../lib/gcc/loongarch64-sylixos-elf/12.0.1/cc1.exe
-E -quiet -v -I H:/RealEvo-Compiler/src/libsylixos/SylixOS -I
H:/RealEvo-Compiler/src/libsylixos/SylixOS/include -I
H:/RealEvo-Compiler/src/libsylixos/SylixOS/include/network -imultilib lp64d/pic
-iprefix
h:\realevo-compiler\installer\compiler\loongarch64-sylixos-toolchain\bin\../lib/gcc/loongarch64-sylixos-elf/12.0.1/
-isysroot
h:\realevo-compiler\installer\compiler\loongarch64-sylixos-toolchain\bin\../loongarch64-sylixos-elf
-dD -D SYLIXOS -D SYLIXOS_LIB -D IN_LIBGCOV=1 -D GCOV_LOCKED=0 -D
BITS_PER_UNIT=32 -D LONG_LONG_TYPE_SIZE=64 -D CROSS_DIRECTORY_STRUCTURE -D
USE_TM_CLONE_REGISTRY=0 -D __LIBGCC_VTABLE_USES_DESCRIPTORS__=0 -D L_gcov -D
L_gcov_merge_add -D L_gcov_merge_topn -D L_gcov_merge_ior -D
L_gcov_merge_time_profile -D L_gcov_interval_profiler -D
L_gcov_interval_profiler_atomic -D L_gcov_pow2_profiler -D
L_gcov_pow2_profiler_atomic -D L_gcov_topn_values_profiler -D
L_gcov_topn_values_profiler_atomic -D L_gcov_average_profiler -D
L_gcov_average_profiler_atomic -D L_gcov_ior_profiler -D
L_gcov_ior_profiler_atomic -D L_gcov_indirect_call_profiler_v4 -D
L_gcov_time_profiler -D L_gcov_dump -D L_gcov_flush -D L_gcov_execl -D
L_gcov_execlp -D L_gcov_execle -D L_gcov_execv -D L_gcov_execvp -D
L_gcov_execve -D L_gcov_reset src/libgcov/libgcov-interface.c -mabi=lp64d
-march=loongarch64 -mfpu=64 -mcmodel=normal -mtune=la464 -Wall -Werror -fPIC
-fmessage-length=0 -fsigned-char -g3 -gdwarf-2 -fworking-directory -O2
-fpch-preprocess -o loongarch64/libgcov/pic/libgcov-interface.i
ignoring duplicate directory
"h:/realevo-compiler/installer/compiler/loongarch64-sylixos-toolchain/lib/gcc/../../lib/gcc/loongarch64-sylixos-elf/12.0.1/include"
ignoring nonexistent directory
"h:\realevo-compiler\installer\compiler\loongarch64-sylixos-toolchain\bin\../loongarch64-sylixos-elf/home/user/toolchains/loongarch/gcc-loongarch64-sylixos-elf-10-2020-q4-major/install-mingw/lib/gcc/loongarch64-sylixos-elf/12.0.1/../../../../include"
ignoring duplicate directory
"h:/realevo-compiler/installer/compiler/loongarch64-sylixos-toolchain/lib/gcc/../../lib/gcc/loongarch64-sylixos-elf/12.0.1/include-fixed"
ignoring duplicate directory
"h:/realevo-compiler/installer/compiler/loongarch64-sylixos-toolchain/lib/gcc/../../lib/gcc/loongarch64-sylixos-elf/12.0.1/../../../../loongarch64-sylixos-elf/include"
ignoring nonexistent directory
"h:\realevo-compiler\installer\compiler\loongarch64-sylixos-toolchain\bin\../loongarch64-sylixos-elf/usr/include"
#include "..." search starts here:
#include <...> search starts here:
 H:/RealEvo-Compiler/src/libsylixos/SylixOS
 H:/RealEvo-Compiler/src/libsylixos/SylixOS/include
 H:/RealEvo-Compiler/src/libsylixos/SylixOS/include/network

h:\realevo-compiler\installer\compiler\loongarch64-sylixos-toolchain\bin\../lib/gcc/loongarch64-sylixos-elf/12.0.1/include

h:\realevo-compiler\installer\compiler\loongarch64-sylixos-toolchain\bin\../lib/gcc/loongarch64-sylixos-elf/12.0.1/include-fixed

h:\realevo-compiler\installer\compiler\loongarch64-sylixos-toolchain\bin\../lib/gcc/loongarch64-sylixos-elf/12.0.1/../../../../loongarch64-sylixos-elf/include
End of search list.
COLLECT_GCC_OPTIONS='-fPIC' '-Wall' '-Werror' '-fmessage-length=0'
'-fsigned-char' '-O2' '-g3' '-gdwarf-2' '-D' 'SYLIXOS' '-D' 'SYLIXOS_LIB' '-D'
'IN_LIBGCOV=1' '-D' 'GCOV_LOCKED=0' '-D' 'BITS_PER_UNIT=32' '-D'
'LONG_LONG_TYPE_SIZE=64' '-D' 'CROSS_DIRECTORY_STRUCTURE' '-D'
'USE_TM_CLONE_REGISTRY=0' '-D' '__LIBGCC_VTABLE_USES_DESCRIPTORS__=0' '-D'
'L_gcov' '-D' 'L_gcov_merge_add' '-D' 'L_gcov_merge_topn' '-D'
'L_gcov_merge_ior' '-D' 'L_gcov_merge_time_profile' '-D'
'L_gcov_interval_profiler' '-D' 'L_gcov_interval_profiler_atomic' '-D'
'L_gcov_pow2_profiler' '-D' 'L_gcov_pow2_profiler_atomic' '-D'
'L_gcov_topn_values_profiler' '-D' 'L_gcov_topn_values_profiler_atomic' '-D'
'L_gcov_average_profiler' '-D' 'L_gcov_average_profiler_atomic' '-D'
'L_gcov_ior_profiler' '-D' 'L_gcov_ior_profiler_atomic' '-D'
'L_gcov_indirect_call_profiler_v4' '-D' 'L_gcov_time_profiler' '-D'
'L_gcov_dump' '-D' 'L_gcov_flush' '-D' 'L_gcov_execl' '-D' 'L_gcov_execlp' '-D'
'L_gcov_execle' '-D' 'L_gcov_execv' '-D' 'L_gcov_execvp' '-D' 'L_gcov_execve'
'-D' 'L_gcov_reset' '-I' 'H:/RealEvo-Compiler/src/libsylixos/SylixOS' '-I'
'H:/RealEvo-Compiler/src/libsylixos/SylixOS/include' '-I'
'H:/RealEvo-Compiler/src/libsylixos/SylixOS/include/network' '-o'
'loongarch64/libgcov/pic/libgcov-interface.o' '-c' '-v' '-save-temps'
'-mabi=lp64d' '-march=loongarch64' '-mfpu=64' '-mcmodel=normal' '-mtune=la464'
'-dumpdir' 'loongarch64/libgcov/pic/'

h:/realevo-compiler/installer/compiler/loongarch64-sylixos-toolchain/bin/../lib/gcc/loongarch64-sylixos-elf/12.0.1/cc1.exe
-fpreprocessed loongarch64/libgcov/pic/libgcov-interface.i -quiet -dumpdir
loongarch64/libgcov/pic/ -dumpbase libgcov-interface.c -dumpbase-ext .c
-mabi=lp64d -march=loongarch64 -mfpu=64 -mcmodel=normal -mtune=la464 -g3
-gdwarf-2 -O2 -Wall -Werror -version -fPIC -fmessage-length=0 -fsigned-char -o
loongarch64/libgcov/pic/libgcov-interface.s
GNU C17 (GNU Loongarch SylixOS Toolchain 12-2022-q1-update) version 12.0.1
20220317 (experimental) (loongarch64-sylixos-elf)
        compiled by GNU C version 5.3.1 20160211, GMP version 6.1.0, MPFR
version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C17 (GNU Loongarch SylixOS Toolchain 12-2022-q1-update) version 12.0.1
20220317 (experimental) (loongarch64-sylixos-elf)
        compiled by GNU C version 5.3.1 20160211, GMP version 6.1.0, MPFR
version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 8d581eeb77dee402f28bf01fa129d522
hash table checking failed: equal operator returns true for a pair of values
with a different hash value
src/libgcov/libgcov-interface.c:316:1: internal compiler error: in
hashtab_chk_error, at hash-table.cc:137
  316 | }
      | ^
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.

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

* [Bug c/105097] hashtab_chk_error when using g3 option to compile some C program
  2022-03-29 13:09 [Bug c/105097] New: hashtab_chk_error when using g3 option to compile some C program jiangtaijin at acoinfo dot com
@ 2022-03-29 13:50 ` mpolacek at gcc dot gnu.org
  2022-11-30 20:27 ` [Bug debug/105097] " pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2022-03-29 13:50 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-03-29
     Ever confirmed|0                           |1
                 CC|                            |mpolacek at gcc dot gnu.org
             Status|UNCONFIRMED                 |WAITING

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.

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

* [Bug debug/105097] hashtab_chk_error when using g3 option to compile some C program
  2022-03-29 13:09 [Bug c/105097] New: hashtab_chk_error when using g3 option to compile some C program jiangtaijin at acoinfo dot com
  2022-03-29 13:50 ` [Bug c/105097] " mpolacek at gcc dot gnu.org
@ 2022-11-30 20:27 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-30 20:27 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
No feedback in 8 months. I tried to bootstrap with -O2 -g3 on x86_64-linux-gnu
and didn't run into this ICE. So closing as invalid.

If you can reproduce still, please reopen the bug and attach the preprocessed
source as requsted in comment #1

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

end of thread, other threads:[~2022-11-30 20:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-29 13:09 [Bug c/105097] New: hashtab_chk_error when using g3 option to compile some C program jiangtaijin at acoinfo dot com
2022-03-29 13:50 ` [Bug c/105097] " mpolacek at gcc dot gnu.org
2022-11-30 20:27 ` [Bug debug/105097] " 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).