[Bug debug/70578] internal compiler error: in output_index_string, at dwarf2out.c with -gsplit-dwarf
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70578 H.J. Lu changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |DUPLICATE --- Comment #10 from H.J. Lu --- Dup. *** This bug has been marked as a duplicate of bug 79342 ***
[Bug debug/70578] internal compiler error: in output_index_string, at dwarf2out.c with -gsplit-dwarf
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70578 Matthias Klose changed: What|Removed |Added CC||doko at gcc dot gnu.org --- Comment #9 from Matthias Klose --- PR79342 might be related (with a reduced test case of the 20170131 preprocessed source)
[Bug debug/70578] internal compiler error: in output_index_string, at dwarf2out.c with -gsplit-dwarf
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70578 --- Comment #8 from ishikawa,chiaki --- As for gcc-5 ICE, I observe an important thing after a little experimentation. This is a shortened command line that causes the ICE. /usr/bin/gcc-5 -std=gnu99 -o vp9_dsubexp.o -c -DNDEBUG=1 -DTRIMMED=1 \ -DHAVE_CONFIG_H=vpx_config.h -fPIC -DMOZILLA_CLIENT \ -fno-builtin-strlen -Wl,--gdb-index -Dfdatasync=fdatasync\ -DDEBUG_4GB_CHECK -DUSEHELGRIND=1\ -gsplit-dwarf -g3 -Og ./vp9_dsubexp.i If I remove -gsplit-dwarf, I don't get the ICE. ishikawa@debian-vbox-ci:/tmp$ /usr/bin/gcc-5 -std=gnu99 -o vp9_dsubexp.o -c -DNDEBUG=1 -DTRIMMED=1 \ -DHAVE_CONFIG_H=vpx_config.h -fPIC -DMOZILLA_CLIENT \ -fno-builtin-strlen -Wl,--gdb-index -Dfdatasync=fdatasync\ -DDEBUG_4GB_CHECK -DUSEHELGRIND=1\ -g3 -Og ./vp9_dsubexp.i > > > > ishikawa@debian-vbox-ci:/tmp$ But then, leaving -gsplit-dwarf intact, if I change "-g3" to "-g", I don't get an ICE. ishikawa@debian-vbox-ci:/tmp$ /usr/bin/gcc-5 -std=gnu99 -o vp9_dsubexp.o -c -DNDEBUG=1 -DTRIMMED=1 \ -DHAVE_CONFIG_H=vpx_config.h -fPIC -DMOZILLA_CLIENT \ -fno-builtin-strlen -Wl,--gdb-index -Dfdatasync=fdatasync\ -DDEBUG_4GB_CHECK -DUSEHELGRIND=1\ -gsplit-dwarf -g -Og ./vp9_dsubexp.i > > > > ishikawa@debian-vbox-ci:/tmp$ So it could be a combination of -gsplit-dwarf and -g3 in my GCC-5 case. I have no idea what the cause of ICE for G++-6 case, though. TIA
[Bug debug/70578] internal compiler error: in output_index_string, at dwarf2out.c with -gsplit-dwarf
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70578 --- Comment #7 from ishikawa,chiaki --- Created attachment 40643 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40643=edit preprocessed file that caused gcc-5 to experience the similar ICE. The uploaded file was created by passing -savetemps option when gcc-5 experienced the ICE as reported earlier. The following simplified command line caused gcc-5 to experience the ICE. /usr/bin/gcc-5 -std=gnu99 -o vp9_dsubexp.o -c -DNDEBUG=1 \ -DTRIMMED=1 -DHAVE_CONFIG_H=vpx_config.h\ -fPIC \ -DMOZILLA_CLIENT\ -Wall -Wempty-body -Wignored-qualifiers \ -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code \ -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations \ -Wno-error=array-bounds -fno-builtin-strlen -Wl,--gdb-index \ -Dfdatasync=fdatasync -DDEBUG_4GB_CHECK -DUSEHELGRIND=1 \ -Werror=sign-compare -fno-strict-aliasing -fno-math-errno -pthread \ -pipe -gsplit-dwarf -g3 -Og -freorder-blocks -fno-omit-frame-pointer\ -Wno-sign-compare -Wno-unused-function \ ./vp9_dsubexp.i > > > > > > > > > > > > /new-hd1/extra/ishikawa/TB-3HG/NEW-COMMSRC/mozilla/media/libvpx/libvpx/vp9/decoder/vp9_dsubexp.c:72:1: > > > > > > > > > > > > internal compiler error: in output_index_string, at > > > > > > > > > > > > dwarf2out.c:22895 } ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. gcc-5 -v Using built-in specs. COLLECT_GCC=gcc-5 COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 5.4.1-4' --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-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 5.4.1 20161202 (Debian 5.4.1-4) ishikawa@debian-vbox-ci:/tmp$ TIA
[Bug debug/70578] internal compiler error: in output_index_string, at dwarf2out.c with -gsplit-dwarf
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70578 --- Comment #6 from ishikawa,chiaki --- (In reply to ishikawa,chiaki from comment #5) > I have found that g++-5 can compile this without ICE. > So this is a regression in gcc-6. > > The version that worked is: > > g++-5 -v > Using built-in specs. > COLLECT_GCC=g++-5 > COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper > Target: x86_64-linux-gnu > Configured with: ../src/configure -v --with-pkgversion='Debian 5.4.1-4' > --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-amd64/jre --enable-java-home > --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 > --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 > --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar > --enable-objc-gc --enable-multiarch --with-arch-32=i686 --with-abi=m64 > --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic > --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu > --target=x86_64-linux-gnu > Thread model: posix > gcc version 5.4.1 20161202 (Debian 5.4.1-4) > ishikawa@debian-vbox-ci:/tmp$ Ouch, NO. GCC-5 is also vulnerable. gcc-5 also experienced an ICE on a different source file. So it is a problem with deeper root. /new-hd1/extra/ishikawa/TB-3HG/NEW-COMMSRC/mozilla/media/libvpx/libvpx/vp9/decoder/vp9_dsubexp.c:72:1: internal compiler error: in output_index_string, at dwarf2out.c:22895 } ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. In the directory /home/ishikawa/objdir-tb3/media/libvpx The following command failed to execute properly: /usr/bin/ccache /usr/bin/gcc-5 -std=gnu99 -o vp9_dsubexp.o -c -I/home/ishikawa/objdir-tb3/dist/system_wrappers -include /new-hd1/extra/ishikawa/TB-3HG/NEW-COMMSRC/mozilla/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DHAVE_CONFIG_H=vpx_config.h -I/new-hd1/extra/ishikawa/TB-3HG/NEW-COMMSRC/mozilla/media/libvpx -I/home/ishikawa/objdir-tb3/media/libvpx -I/home/ishikawa/objdir-tb3/dist/include -I/home/ishikawa/objdir-tb3/dist/include/nspr -I/home/ishikawa/objdir-tb3/dist/include/nss -fPIC -include /home/ishikawa/objdir-tb3/mozilla-config.h -DMOZILLA_CLIENT -MD -MP -MF .deps/vp9_dsubexp.o.pp -Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -fno-builtin-strlen -Wl,--gdb-index -Dfdatasync=fdatasync -DDEBUG_4GB_CHECK -DUSEHELGRIND=1 -Werror=sign-compare -fno-strict-aliasing -fno-math-errno -pthread -pipe -gsplit-dwarf -g3 -Og -freorder-blocks -fno-omit-frame-pointer -I/new-hd1/extra/ishikawa/TB-3HG/NEW-COMMSRC/mozilla/media/libvpx/config/linux/x64/ -Wno-sign-compare -Wno-unused-function -I/new-hd1/extra/ishikawa/TB-3HG/NEW-COMMSRC/mozilla/media/libvpx/libvpx -I/new-hd1/extra/ishikawa/TB-3HG/NEW-COMMSRC/mozilla/media/libvpx/config /new-hd1/extra/ishikawa/TB-3HG/NEW-COMMSRC/mozilla/media/libvpx/libvpx/vp9/decoder/vp9_dsubexp.c I am going to upload the preprocessed file.
[Bug debug/70578] internal compiler error: in output_index_string, at dwarf2out.c with -gsplit-dwarf
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70578 --- Comment #5 from ishikawa,chiaki --- I have found that g++-5 can compile this without ICE. So this is a regression in gcc-6. The version that worked is: g++-5 -v Using built-in specs. COLLECT_GCC=g++-5 COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 5.4.1-4' --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-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 5.4.1 20161202 (Debian 5.4.1-4) ishikawa@debian-vbox-ci:/tmp$
[Bug debug/70578] internal compiler error: in output_index_string, at dwarf2out.c with -gsplit-dwarf
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70578 --- Comment #4 from ishikawa,chiaki --- I found that the following simplified command line causes ICE while the next command line where I have removed "-fno-exception" does not cause ICE even though I still keep -gdwarf-output. Hope this may shed some light on the issue. command line and output ICE. /usr/bin/g++-6 -std=gnu++11 -o uvectr64.o -c-gsplit-dwarf -DNDEBUG=1 -DTRIMMED=1 -DU_COMMON_IMPLEMENTATION -DLOCALE_SNAME=92 -DUCONFIG_NO_BREAK_ITERATION -DUCONFIG_NO_TRANSLITERATION -DUCONFIG_NO_REGULAR_EXPRESSIONS -DUCONFIG_NO_LEGACY_CONVERSION -DU_USING_ICU_NAMESPACE=0 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DU_CHARSET_IS_UTF8 -MD -MP -MF -Wall -Wc++11-compat -fno-builtin-strlen -Wl,--gdb-index -Dfdatasync=fdatasync -DDEBUG_4GB_CHECK -DUSEHELGRIND=1 -fno-strict-aliasing -fno-rtti -fno-exceptions -pthread -g3 -Og uvectr64.ii /new-hd1/extra/ishikawa/TB-3HG/NEW-COMMSRC/mozilla/intl/icu/source/common/uvectr64.cpp:213:3: internal compiler error: in output_index_string, at dwarf2out.c:25635 U_NAMESPACE_END ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Command line without ICE. /usr/bin/g++-6 -std=gnu++11 -o uvectr64.o -c-gsplit-dwarf -DNDEBUG=1 -DTRIMMED=1 -DU_COMMON_IMPLEMENTATION -DLOCALE_SNAME=92 -DUCONFIG_NO_BREAK_ITERATION -DUCONFIG_NO_TRANSLITERATION -DUCONFIG_NO_REGULAR_EXPRESSIONS -DUCONFIG_NO_LEGACY_CONVERSION -DU_USING_ICU_NAMESPACE=0 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DU_CHARSET_IS_UTF8 -MD -MP -MF -Wall -Wc++11-compat -fno-builtin-strlen -Wl,--gdb-index -Dfdatasync=fdatasync -DDEBUG_4GB_CHECK -DUSEHELGRIND=1 -fno-strict-aliasing -fno-rtti -pthread -g3 -Og uvectr64.ii (Not sure though, if the object is correct or not.) TIA
[Bug debug/70578] internal compiler error: in output_index_string, at dwarf2out.c with -gsplit-dwarf
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70578 --- Comment #3 from ishikawa,chiaki --- I noticed that in my case, it could be related to a name space issue since U_NAMESPACE_END "}}" is to close the corresponding U_NAMESPACE_BEGIN "extern "C++" "{ namespace U_ICU_NAMESPACE {".
[Bug debug/70578] internal compiler error: in output_index_string, at dwarf2out.c with -gsplit-dwarf
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70578 ishikawa,chiaki changed: What|Removed |Added CC||ishikawa at yk dot rim.or.jp --- Comment #2 from ishikawa,chiaki --- Created attachment 40633 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40633=edit preprocessed file that triggers the ICE. I have also seen this bug with gcc version 6.3.0 20170124 (Debian 6.3.0-5) I am attaching a preprocessed file uvectr64.ii gcc version (distributed under Debian GNU/Linux) gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-5' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --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 --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 6.3.0 20170124 (Debian 6.3.0-5) ishikawa@debian-vbox-ci:/tmp$ I encountered a bug during a compilation of mozilla thunderbird. I used the following command to compile the attached .ii file, and I got the following ICE. COMMAND LINE: /usr/bin/g++-6 -std=gnu++11 -o uvectr64.o -c-gsplit-dwarf \ -DNDEBUG=1 -DTRIMMED=1 -DU_COMMON_IMPLEMENTATION -DLOCALE_SNAME=92 \ -DUCONFIG_NO_BREAK_ITERATION -DUCONFIG_NO_TRANSLITERATION \ -DUCONFIG_NO_REGULAR_EXPRESSIONS -DUCONFIG_NO_LEGACY_CONVERSION \ -DU_USING_ICU_NAMESPACE=0 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 \ -DU_CHARSET_IS_UTF8 -MD -MP -MF -Wall -Wc++11-compat\ -fno-builtin-strlen -Wl,--gdb-index -Dfdatasync=fdatasync \ -DDEBUG_4GB_CHECK -DUSEHELGRIND=1 -fno-exceptions \ -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno \ -pthread -g3 -Og -freorder-blocks \ -fno-omit-frame-pointer -frtti -fdiagnostics-color \ ./uvectr64.ii ICE error: new-hd1/extra/ishikawa/TB-3HG/NEW-COMMSRC/mozilla/intl/icu/source/common/uvectr64.cpp:213:3: internal compiler error: in output_index_string, at dwarf2out.c:25635 U_NAMESPACE_END ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. However, if I remove "-gsplit-dwarf" from my command line, it seems to compile. TIA
[Bug debug/70578] internal compiler error: in output_index_string, at dwarf2out.c with -gsplit-dwarf
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70578 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2016-04-08 Assignee|unassigned at gcc dot gnu.org |ccoutant at gmail dot com Ever confirmed|0 |1
[Bug debug/70578] internal compiler error: in output_index_string, at dwarf2out.c with -gsplit-dwarf
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70578 Marek Polacek changed: What|Removed |Added Attachment #38211|0 |1 is obsolete|| --- Comment #1 from Marek Polacek --- Created attachment 38212 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38212=edit preprocessed Updated preprocessed file.