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

            Bug ID: 116511
           Summary: ICE segmentation fault (regression, possibly in
                    glibc?)
           Product: gcc
           Version: 14.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tsnorri at icloud dot com
  Target Milestone: ---

Created attachment 59019
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59019&action=edit
Compiler input

Attached is the input processed with cvise. g++ exited with a segmentation
fault but based on the stack trace I'm not sure if the problem is indeed in g++
or in glibc.


Command line:

g++-14 -c -std=c++2b -Wall -Wextra -o test.o int_vector.ii
int_vector.ii: In instantiation of 'void int_vector_trait<
<template-parameter-1-1>, t_bits, <template-parameter-1-3> >::push_back()
requires 0 != int_vector_trait< <template-parameter-1-1>, t_bits,
<template-parameter-1-3> >::._anon_1::ELEMENT_BITS [with
<template-parameter-1-1> = int_vector_tpl<1, int, int_vector_trait>; int t_bits
= 8; <template-parameter-1-3> = int]':
int_vector.ii:9:8: internal compiler error: Segmentation fault
    9 |   void push_back()
      |        ^~~~~~~~~
0x715296a4251f ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x715296a29d8f __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x715296a29e3f __libc_start_main_impl
        ../csu/libc-start.c:392
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://github.com/Homebrew/homebrew-core/issues> for instructions.


Triggered with following versions:
g++-14 (Homebrew GCC 14.2.0) 14.2.0 (both GNU/Linux on x86_64 and macOS on
arm64)
g++ (conda-forge gcc 14.1.0-1) 14.1.0 (tested GNU/Linux only)


Not triggered with any of the following on either platform:
g++-13 (Homebrew GCC 13.3.0) 13.3.0
g++-12 (Homebrew GCC 12.4.0) 12.4.0

(Unfortunately I don't have access to GCC 14 installed with the operating
system's package manager.)


Configuration options for the GCC 14 builds tested on Linux:

g++-14 -v
Reading specs from
/home/linuxbrew/.linuxbrew/Cellar/gcc/14.2.0/bin/../lib/gcc/current/gcc/x86_64-pc-linux-gnu/14/specs
COLLECT_GCC=/home/linuxbrew/.linuxbrew/bin/g++-14
COLLECT_LTO_WRAPPER=/home/linuxbrew/.linuxbrew/Cellar/gcc/14.2.0/bin/../libexec/gcc/x86_64-pc-linux-gnu/14/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure --prefix=/home/linuxbrew/.linuxbrew/opt/gcc
--libdir=/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current --disable-nls
--enable-checking=release --with-gcc-major-version-only
--enable-languages=c,c++,objc,obj-c++,fortran,m2 --program-suffix=-14
--with-gmp=/home/linuxbrew/.linuxbrew/opt/gmp
--with-mpfr=/home/linuxbrew/.linuxbrew/opt/mpfr
--with-mpc=/home/linuxbrew/.linuxbrew/opt/libmpc
--with-isl=/home/linuxbrew/.linuxbrew/opt/isl
--with-zstd=/home/linuxbrew/.linuxbrew/opt/zstd --with-pkgversion='Homebrew GCC
14.2.0' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues
--with-system-zlib --with-boot-ldflags='-static-libstdc++ -static-libgcc '
--disable-multilib --enable-default-pie
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.2.0 (Homebrew GCC 14.2.0) 


gcc -v
Reading specs from
/home/tnorri/.conda/envs/mamba/envs/clang/bin/../lib/gcc/x86_64-conda-linux-gnu/14.1.0/specs
could not find specs file conda.specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/tnorri/.conda/envs/mamba/envs/clang/bin/../libexec/gcc/x86_64-conda-linux-gnu/14.1.0/lto-wrapper
Target: x86_64-conda-linux-gnu
Configured with: ../configure
--prefix=/home/conda/feedstock_root/build_artifacts/gcc_compilers_1724798733686/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho
--with-slibdir=/home/conda/feedstock_root/build_artifacts/gcc_compilers_1724798733686/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib
--libdir=/home/conda/feedstock_root/build_artifacts/gcc_compilers_1724798733686/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib
--mandir=/home/conda/feedstock_root/build_artifacts/gcc_compilers_1724798733686/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/man
--build=x86_64-conda-linux-gnu --host=x86_64-conda-linux-gnu
--target=x86_64-conda-linux-gnu --enable-languages=c,c++,fortran,objc,obj-c++
--enable-__cxa_atexit --disable-libmudflap --enable-libgomp --disable-libssp
--enable-libquadmath --enable-libquadmath-support --enable-lto
--enable-target-optspace --enable-plugin --enable-gold --disable-nls
--disable-bootstrap --disable-multilib --enable-long-long
--with-sysroot=/home/conda/feedstock_root/build_artifacts/gcc_compilers_1724798733686/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/x86_64-conda-linux-gnu/sysroot
--with-build-sysroot=/home/conda/feedstock_root/build_artifacts/gcc_compilers_1724798733686/work/cf-compilers/x86_64-conda-linux-gnu/sysroot
--with-native-system-header-dir=/usr/include
--with-gxx-include-dir=/home/conda/feedstock_root/build_artifacts/gcc_compilers_1724798733686/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/gcc/x86_64-conda-linux-gnu/14.1.0/include/c++
--with-pkgversion='conda-forge gcc 14.1.0-1'
--with-bugurl=https://github.com/conda-forge/ctng-compilers-feedstock/issues/new/choose
--enable-libsanitizer --enable-default-pie --enable-threads=posix
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.1.0 (conda-forge gcc 14.1.0-1)

Reply via email to