https://bugs.kde.org/show_bug.cgi?id=460572

--- Comment #26 from Andrew Udvare <audv...@gmail.com> ---
(In reply to Andreas Sturmlechner from comment #24)
> This is the moment where you provide upstream with more information about
> your toolchain and optimisation flags.

More details:

# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/12/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-12.2.1_p20230121-r1/work/gcc-12-20230121/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/12
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/12/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/12/python
--enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--disable-libunwind-exceptions --enable-checking=release
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened
12.2.1_p20230121-r1 p10' --with-gcc-major-version-only --enable-esp
--enable-libstdcxx-time --disable-libstdcxx-pch --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point
--enable-targets=all --enable-libgomp --disable-libssp --disable-libada
--disable-cet --disable-systemtap --disable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --with-zstd --enable-lto --without-isl
--enable-default-pie --enable-default-ssp --with-build-config=bootstrap-lto
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.2.1 20230121 (Gentoo Hardened 12.2.1_p20230121-r1 p10)

Building with -march=x86-64-v4 is what makes this break. -fsanitize=undefined
gives the following on startup:

$ kwin_x11 --replace
/var/tmp/portage/kde-plasma/kwin-5.27.1/work/kwin-5.27.1/src/main_x11.cpp:113:46:
runtime error: member call on address 0x7faff8006310 which does not point to an
object of type 'KWinSelectionOwner'
0x7faff8006310: note: object has invalid vptr
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
00 00 00  25 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              invalid vptr
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2
OpenGL version string:                  3.1.0 NVIDIA 525.89.02
OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         525.89.2
GPU class:                              Unknown
OpenGL version:                         3.1
GLSL version:                           1.40
X server version:                       1.21.1
Linux kernel version:                   6.2
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no

Kwin runs and triggering the behaviour does not make further output.

-fsanitize=address gives the following and Kwin aborts:

$ kwin_x11 --replace
=================================================================
==20622==ERROR: AddressSanitizer: odr-violation (0x7fc35434f780):
  [1] size=48 'staticMetaObject'
/var/tmp/portage/kde-plasma/kwin-5.27.1/work/kwin-5.27.1_build/src/kwin_autogen/7HEHEGDA3T/moc_common.cpp:119:38
  [2] size=48 'staticMetaObject'
/var/tmp/portage/kde-plasma/kwin-5.27.1/work/kwin-5.27.1_build/src/libkwineffects/kwineffects_autogen/include/moc_kwinglobals.cpp:108:38
These globals were registered at these points:
  [1]:
    #0 0x7fc35463a628 in __asan_register_globals
/var/tmp/portage/sys-devel/gcc-12.2.1_p20230121-r1/work/gcc-12-20230121/libsanitizer/asan/asan_globals.cpp:341
    #1 0x7fc354d8ec0d in call_init
/var/tmp/portage/sys-libs/glibc-2.36-r7/work/glibc-2.36/elf/dl-init.c:70
    #2 0x7fc354d8ec0d in call_init
/var/tmp/portage/sys-libs/glibc-2.36-r7/work/glibc-2.36/elf/dl-init.c:26

  [2]:
    #0 0x7fc35463a628 in __asan_register_globals
/var/tmp/portage/sys-devel/gcc-12.2.1_p20230121-r1/work/gcc-12-20230121/libsanitizer/asan/asan_globals.cpp:341
    #1 0x7fc354d8ec0d in call_init
/var/tmp/portage/sys-libs/glibc-2.36-r7/work/glibc-2.36/elf/dl-init.c:70
    #2 0x7fc354d8ec0d in call_init
/var/tmp/portage/sys-libs/glibc-2.36-r7/work/glibc-2.36/elf/dl-init.c:26

==20622==HINT: if you don't care about these errors you may set
ASAN_OPTIONS=detect_odr_violation=0
SUMMARY: AddressSanitizer: odr-violation: global 'staticMetaObject' at
/var/tmp/portage/kde-plasma/kwin-5.27.1/work/kwin-5.27.1_build/src/kwin_autogen/7HEHEGDA3T/moc_common.cpp:119:38
==20622==ABORTING

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to