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

            Bug ID: 69149
           Summary: Segmentation fault during compile of libre office with
                    debug
           Product: gcc
           Version: 5.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hauf.johannes at gmail dot com
  Target Milestone: ---

Command line:
S=/home/johannes/core && I=$S/instdir && W=$S/workdir &&  mkdir -p
$W/CxxObject/sw/source/uibase/app/ $W/Dep/CxxObject/sw/source/uibase/app/ && cd
/home/johannes/core &&   g++ -DBOOST_ERROR_CODE_HEADER_ONLY
-DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DINTEL -DLINUX
-DOSL_DEBUG_LEVEL=1 -DSAL_LOG_INFO -DSAL_LOG_WARN -DUNIX -DUNX -DX86
-D_PTHREADS -D_REENTRANT   -DSW_DLLIMPLEMENTATION
-DSWUI_DLL_NAME=\"libswuilo.so\"  -DSYSTEM_LIBXML  
-DHAVE_GCC_VISIBILITY_FEATURE -fvisibility=hidden   -Wall -Wno-missing-braces
-Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunused-macros
-fmessage-length=0 -fno-common -pipe  -fvisibility-inlines-hidden
-fstack-protector-strong -fPIC -Wshadow -Woverloaded-virtual -std=gnu++14  
-DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -O0 -fstrict-aliasing
-fstrict-overflow -ggdb2 -finline-limit=0 -fno-inline -fno-default-inline 
-DLIBO_INTERNAL_ONLY  -c $S/sw/source/uibase/app/apphdl.cxx -o
$W/CxxObject/sw/source/uibase/app/apphdl.o -MMD -MT
$W/CxxObject/sw/source/uibase/app/apphdl.o -MP -MF
$W/Dep/CxxObject/sw/source/uibase/app/apphdl.d_ -I$S/sw/source/uibase/app/
-I$W/UnpackedTarball/icu/source -I$W/UnpackedTarball/icu/source/i18n
-I$W/UnpackedTarball/icu/source/common -I$W/UnpackedTarball/boost
-I$S/sw/source/core/inc -I$S/sw/source/filter/inc -I$S/sw/source/uibase/inc
-I$S/sw/inc -I$W/SdiTarget/sw/sdi  -I$S/include 
-I/usr/lib/jvm/java-7-openjdk-i386/include
-I/usr/lib/jvm/java-7-openjdk-i386/include/linux -I$S/config_host  
-I$W/CustomTarget/officecfg/registry -I$W/CustomTarget/sw/generated
-I$W/UnoApiHeadersTarget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal  
 -isystem /usr/include/libxml2 -save-temps 

Output:
g++: warning: -pipe ignored because -save-temps specified
In file included from
/home/johannes/core/sw/source/uibase/app/apphdl.cxx:117:0:
/home/johannes/core/workdir/SdiTarget/sw/sdi/swslots.hxx:1870:87:   in
constexpr expansion of ‘operator|<SfxSlotMode>((SfxSlotMode)1,
(SfxSlotMode)16)’
/home/johannes/core/workdir/SdiTarget/sw/sdi/swslots.hxx:1933:1: internal
compiler error: Segmentation fault
 };
 ^
0x84579b6 crash_signal
        ../../src/gcc/toplev.c:383
0x8a87449 bool vec_safe_reserve<tree_node*, va_gc>(vec<tree_node*, va_gc,
vl_embed>*&, unsigned int, bool)
        ../../src/gcc/vec.h:575
0x8a87449 tree_node** vec_safe_push<tree_node*, va_gc>(vec<tree_node*, va_gc,
vl_embed>*&, tree_node* const&)
        ../../src/gcc/vec.h:669
0x8a87449 add_local_decl(function*, tree_node*)
        ../../src/gcc/function.c:6703
0x8be2b09 remap_decls
        ../../src/gcc/tree-inline.c:653
0x8e82282 remap_block
        ../../src/gcc/tree-inline.c:721
0x8be175e copy_bind_expr
        ../../src/gcc/tree-inline.c:794
0x8be175e copy_tree_body_r(tree_node**, int*, void*)
        ../../src/gcc/tree-inline.c:1128
0x8ce20ea walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hashset_traits>*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hashset_traits>*))
        ../../src/gcc/tree.c:11092
0x8e8351c copy_tree_body
        ../../src/gcc/tree-inline.c:2966
0x8e8351c copy_fn(tree_node*, tree_node*&, tree_node*&)
        ../../src/gcc/tree-inline.c:6044
0x8980127 cxx_eval_call_expression
        ../../src/gcc/cp/constexpr.c:1387
0x897b848 cxx_eval_constant_expression
        ../../src/gcc/cp/constexpr.c:3161
0x897c4ba cxx_eval_constant_expression
        ../../src/gcc/cp/constexpr.c:3219
0x897ff24 cxx_bind_parameters_in_call
        ../../src/gcc/cp/constexpr.c:1115
0x897ff24 cxx_eval_call_expression
        ../../src/gcc/cp/constexpr.c:1305
0x897b848 cxx_eval_constant_expression
        ../../src/gcc/cp/constexpr.c:3161
0x897c4ba cxx_eval_constant_expression
        ../../src/gcc/cp/constexpr.c:3219
0x897ff24 cxx_bind_parameters_in_call
        ../../src/gcc/cp/constexpr.c:1115
0x897ff24 cxx_eval_call_expression
        ../../src/gcc/cp/constexpr.c:1305
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.

gcc Version:
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/5/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.3.1-5ubuntu1'
--with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-5 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-i386/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-i386
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-i386
--with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-targets=all --enable-multiarch --disable-werror
--with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-checking=release --build=i686-linux-gnu
--host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 5.3.1 20160101 (Ubuntu 5.3.1-5ubuntu1) 

Same behaviour can be seen using version 5.2.1
When compiling without debug no crash happens.
This happens when compiling libre office code from master branch with debug in
module sw.

Reply via email to