Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903872 - kde-plasma/kwin-5.27.4 makes GCC 13 (13.0.1_pre20230402) segfault while performing LTO optimizations
Summary: kde-plasma/kwin-5.27.4 makes GCC 13 (13.0.1_pre20230402) segfault while perf...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2023-04-05 15:05 UTC by Adrien Dessemond
Modified: 2023-04-18 22:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Full build.log (compressed) (build.log.xz,54.35 KB, application/x-xz)
2023-04-05 15:08 UTC, Adrien Dessemond
Details
environment (compressed) (environment.xz,25.05 KB, application/x-xz)
2023-04-05 15:08 UTC, Adrien Dessemond
Details
emerge --info (emerge-info,7.56 KB, text/plain)
2023-04-05 15:09 UTC, Adrien Dessemond
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrien Dessemond 2023-04-05 15:05:38 UTC
Build aborts with:

[976/1517] : && /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -O3 -pipe -march=native -fomit-frame-pointer -fopt-info-vec -fcf-protection=return -flto=auto -ffat-lto-objects -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fdiagnostics-color=always  -Wl,--no-undefined -Wl,--enable-new-dtags -flto=auto   -pthread -shared  -o bin/kcm_kwin4_genericscripted.so src/scripting/CMakeFiles/kcm_kwin4_genericscripted.dir/kcm_kwin4_genericscripted_autogen/mocs_compilation.cpp.o src/scripting/CMakeFiles/kcm_kwin4_genericscripted.dir/genericscriptedconfig.cpp.o src/scripting/CMakeFiles/kcm_kwin4_genericscripted.dir/kwineffects_interface.cpp.o  -Wl,-rpath,/var/tmp/portage/kde-plasma/kwin-5.27.4/work/kwin-5.27.4_build/bin:  /usr/lib64/libKF5ConfigWidgets.so.5.104.0  /usr/lib64/libKF5Service.so.5.104.0  bin/libkwineffects.so.5.27.4  /usr/lib64/libKF5WidgetsAddons.so.5.104.0  /usr/lib64/libKF5ConfigGui.so.5.104.0  /usr/lib64/libKF5Codecs.so.5.104.0  /usr/lib64/libKF5Auth.so.5.104.0  /usr/lib64/libKF5AuthCore.so.5.104.0  /usr/lib64/libQt5Xml.so.5.15.8  /usr/lib64/libQt5UiTools.a  /usr/lib64/libQt5Widgets.so.5.15.8  /usr/lib64//libQt5Widgets.so  /usr/lib64//libQt5Gui.so  /usr/lib64//libQt5Core.so  /usr/lib64//libQt5Widgets.so  /usr/lib64//libQt5Gui.so  /usr/lib64//libQt5Core.so  /usr/lib64/libGL.so  /usr/lib64/libKF5I18n.so.5.104.0  /usr/lib64/libKF5ConfigCore.so.5.104.0  /usr/lib64/libKF5CoreAddons.so.5.104.0  /usr/lib64/libQt5DBus.so.5.15.8  /usr/lib64/libKF5WindowSystem.so.5.104.0  /usr/lib64/libX11.so  /usr/lib64/libQt5Gui.so.5.15.8  /usr/lib64/libQt5Core.so.5.15.8  /usr/lib64/libxcb.so  -Wl,-rpath-link,/var/tmp/portage/kde-plasma/kwin-5.27.4/work/kwin-5.27.4_build/bin && :
FAILED: bin/kcm_kwin4_genericscripted.so 
: && /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -O3 -pipe -march=native -fomit-frame-pointer -fopt-info-vec -fcf-protection=return -flto=auto -ffat-lto-objects -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fdiagnostics-color=always  -Wl,--no-undefined -Wl,--enable-new-dtags -flto=auto   -pthread -shared  -o bin/kcm_kwin4_genericscripted.so src/scripting/CMakeFiles/kcm_kwin4_genericscripted.dir/kcm_kwin4_genericscripted_autogen/mocs_compilation.cpp.o src/scripting/CMakeFiles/kcm_kwin4_genericscripted.dir/genericscriptedconfig.cpp.o src/scripting/CMakeFiles/kcm_kwin4_genericscripted.dir/kwineffects_interface.cpp.o  -Wl,-rpath,/var/tmp/portage/kde-plasma/kwin-5.27.4/work/kwin-5.27.4_build/bin:  /usr/lib64/libKF5ConfigWidgets.so.5.104.0  /usr/lib64/libKF5Service.so.5.104.0  bin/libkwineffects.so.5.27.4  /usr/lib64/libKF5WidgetsAddons.so.5.104.0  /usr/lib64/libKF5ConfigGui.so.5.104.0  /usr/lib64/libKF5Codecs.so.5.104.0  /usr/lib64/libKF5Auth.so.5.104.0  /usr/lib64/libKF5AuthCore.so.5.104.0  /usr/lib64/libQt5Xml.so.5.15.8  /usr/lib64/libQt5UiTools.a  /usr/lib64/libQt5Widgets.so.5.15.8  /usr/lib64//libQt5Widgets.so  /usr/lib64//libQt5Gui.so  /usr/lib64//libQt5Core.so  /usr/lib64//libQt5Widgets.so  /usr/lib64//libQt5Gui.so  /usr/lib64//libQt5Core.so  /usr/lib64/libGL.so  /usr/lib64/libKF5I18n.so.5.104.0  /usr/lib64/libKF5ConfigCore.so.5.104.0  /usr/lib64/libKF5CoreAddons.so.5.104.0  /usr/lib64/libQt5DBus.so.5.15.8  /usr/lib64/libKF5WindowSystem.so.5.104.0  /usr/lib64/libX11.so  /usr/lib64/libQt5Gui.so.5.15.8  /usr/lib64/libQt5Core.so.5.15.8  /usr/lib64/libxcb.so  -Wl,-rpath-link,/var/tmp/portage/kde-plasma/kwin-5.27.4/work/kwin-5.27.4_build/bin && :
lto1: internal compiler error: Segmentation fault
0xb818d3 crash_signal
        /usr/src/debug/sys-devel/gcc-13.0.1_pre20230402/gcc-13-20230402/gcc/toplev.cc:314
0x7f52c3bde5df ???
        /usr/src/debug/sys-libs/glibc-2.37-r1/glibc-2.37/signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x720d80 bp_unpack_string(data_in*, bitpack_d*)
        /usr/src/debug/sys-devel/gcc-13.0.1_pre20230402/gcc-13-20230402/gcc/data-streamer-in.cc:112
0xa9011f cl_optimization_stream_in(data_in*, bitpack_d*, cl_optimization*)
        /usr/src/debug/sys-devel/gcc-13.0.1_pre20230402/build/gcc/options-save.cc:13501
0xdae7d2 streamer_read_tree_bitfields(lto_input_block*, data_in*, tree_node*)
        /usr/src/debug/sys-devel/gcc-13.0.1_pre20230402/gcc-13-20230402/gcc/tree-streamer-in.cc:562
0x9f576b lto_read_tree_1
        /usr/src/debug/sys-devel/gcc-13.0.1_pre20230402/gcc-13-20230402/gcc/lto-streamer-in.cc:1713
0x9f56d7 lto_read_tree
        /usr/src/debug/sys-devel/gcc-13.0.1_pre20230402/gcc-13-20230402/gcc/lto-streamer-in.cc:1760
0x9f56d7 lto_input_tree_1(lto_input_block*, data_in*, LTO_tags, unsigned int)
        /usr/src/debug/sys-devel/gcc-13.0.1_pre20230402/gcc-13-20230402/gcc/lto-streamer-in.cc:1901
0x9f5bfb lto_input_scc(lto_input_block*, data_in*, unsigned int*, unsigned int*, bool)
        /usr/src/debug/sys-devel/gcc-13.0.1_pre20230402/gcc-13-20230402/gcc/lto-streamer-in.cc:1789
0x6909c2 lto_read_decls
        /usr/src/debug/sys-devel/gcc-13.0.1_pre20230402/gcc-13-20230402/gcc/lto/lto-common.cc:1908
0x6909c2 lto_file_finalize
        /usr/src/debug/sys-devel/gcc-13.0.1_pre20230402/gcc-13-20230402/gcc/lto/lto-common.cc:2288
0x6909c2 lto_create_files_from_ids
        /usr/src/debug/sys-devel/gcc-13.0.1_pre20230402/gcc-13-20230402/gcc/lto/lto-common.cc:2298
0x6909c2 lto_file_read
        /usr/src/debug/sys-devel/gcc-13.0.1_pre20230402/gcc-13-20230402/gcc/lto/lto-common.cc:2353
0x6909c2 read_cgraph_and_symbols(unsigned int, char const**)
        /usr/src/debug/sys-devel/gcc-13.0.1_pre20230402/gcc-13-20230402/gcc/lto/lto-common.cc:2801
0x69228c lto_main()
        /usr/src/debug/sys-devel/gcc-13.0.1_pre20230402/gcc-13-20230402/gcc/lto/lto.cc:654
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
lto-wrapper: fatal error: /usr/bin/x86_64-pc-linux-gnu-g++ returned 1 exit status
compilation terminated.
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed
Comment 1 Adrien Dessemond 2023-04-05 15:08:29 UTC
Created attachment 859547 [details]
Full build.log (compressed)
Comment 2 Adrien Dessemond 2023-04-05 15:08:41 UTC
Created attachment 859548 [details]
environment (compressed)
Comment 3 Adrien Dessemond 2023-04-05 15:09:13 UTC
Created attachment 859549 [details]
emerge --info
Comment 4 Adrien Dessemond 2023-04-05 15:26:40 UTC
Might be related to bug #903868 and bug #903873 (same symptoms)
Comment 5 Adrien Dessemond 2023-04-18 22:40:37 UTC
Unable to reproduce it with the latest sys-devel/gcc-13.0.1_pre20230416.

Issue fixed. Nothing more to do for this bug.