Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895750 - kde-plasma/kwin: windows snapped to left side of display correctly but have content shifted virtually
Summary: kde-plasma/kwin: windows snapped to left side of display correctly but have c...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 915000
  Show dependency tree
 
Reported: 2023-02-21 20:18 UTC by Andrew Udvare
Modified: 2024-01-27 18:33 UTC (History)
3 users (show)

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


Attachments
Explanation screenshot (attachment.png,107.17 KB, image/png)
2023-02-21 20:18 UTC, Andrew Udvare
Details
Kwin debug log (debug.log,15.86 KB, text/x-log)
2023-02-21 20:19 UTC, Andrew Udvare
Details
Correct behaviour screenshot (20230221-0001.png,24.07 KB, image/png)
2023-02-21 20:25 UTC, Andrew Udvare
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Udvare 2023-02-21 20:18:07 UTC
When I let a window snap into place along the left screen side (and only left on the left screen), the contents are assumed to be about 5-17 pixels to the right.

I have reported this bug to KDE but I am fairly certain the cause of this issue is on Gentoo's side. Please see the original bug:

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

Two demonstration videos:

https://youtu.be/Qup9ifJSCnc
https://youtu.be/vwKTbOtpEkI

When I run a locally built copy of Kwin 5.27.0 with --replace, the problem is completely resolved.

I have 2 systems showing this issue. Only happens in X11.

Reproducible: Always

Steps to Reproduce:
1. Drag a window that is re-sizeable and let it snap to the left side.
2. Attempt to resize the window once on the right side of it at the expected location, like the side of the window.
Actual Results:  
Nothing happens. The cursor is off the UI elements by about 17px in the x direction.

Expected Results:  
The resize cursor should display and resizing should work.

Portage 3.0.44 (python 3.10.10-final-0, default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr, gcc-12, glibc-2.36-r7, 6.2.0-gentoo-limelight x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.2.0-gentoo-limelight-x86_64-11th_Gen_Intel-R-_Core-TM-_i9-11900K_@_3.50GHz-with-glibc2.36
KiB Mem:    65710104 total,  36582164 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 21 Feb 2023 17:46:59 +0000
Head commit of repository gentoo: 95866b9a69d74b60b6a641425fe555cee8b16196

Timestamp of repository brave-overlay: Sun, 19 Feb 2023 19:48:37 +0000
Head commit of repository brave-overlay: b0ae93b5f4aed046b99ea08ef8f9aa5ca5ea9d28

Head commit of repository guru: 47936a0f50468cce092fabcdb2caa18104792835

Timestamp of repository menelkir: Sun, 19 Feb 2023 19:48:40 +0000
Head commit of repository menelkir: 198f96c0c7cdae7b11b365e98584acf01bca0658

Timestamp of repository steam-overlay: Sun, 19 Feb 2023 19:48:24 +0000
Head commit of repository steam-overlay: 2cb7179b10d3d5e34dbd872765d75a0887111c16

Head commit of repository tatsh-overlay: c7a6ca8017174ed2a2a5980f6a5aa9416e3883d3

sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.40 p2) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           3.10.10_p1::gentoo, 3.11.2_p1::gentoo, 3.12.0_alpha5::gentoo
dev-lang/rust:             1.67.1::gentoo
dev-util/cmake:            3.25.2::gentoo
dev-util/meson:            1.0.0::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-apps/systemd:          253::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.40-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo
sys-devel/gcc:             12.2.1_p20230121-r1::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo, 15.0.7::gentoo
sys-devel/make:            4.4::gentoo
sys-kernel/linux-headers:  6.2::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    volatile: True
    sync-git-verify-commit-signature: no

brave-overlay
    location: /var/db/repos/brave-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brave-overlay.git
    masters: gentoo
    volatile: True

crossdev
    location: /var/db/repos/crossdev
    masters: gentoo
    volatile: True

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: git+ssh://git@git.gentoo.org/repo/proj/guru.git
    masters: gentoo
    volatile: True
    sync-git-verify-commit-signature: no

menelkir
    location: /var/db/repos/menelkir
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/menelkir.git
    masters: gentoo
    volatile: True

rcvpn
    location: /var/db/repos/rcvpn
    masters: gentoo
    volatile: True

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: True

tatsh-overlay
    location: /var/db/repos/tatsh
    sync-type: git
    sync-uri: https://github.com/Tatsh/tatsh-overlay.git
    masters: gentoo
    volatile: True
    sync-git-verify-commit-signature: no

Installed sets: @admin, @android, @bashcomp, @cdr, @charles, @chrome, @cups, @dbeaver, @docker, @emulators, @exfat, @firefox, @fonts, @gimp, @git, @i3, @ibus, @kde, @kernel, @kodi, @libimobiledevice, @libreoffice, @media, @misc, @mlocate, @mupen64plus, @nfs, @pass, @portage-utilities, @python, @qemu, @rar, @retroarch, @ringcentral, @sm64, @steam, @stepmania, @thunderbird, @tmux, @vim, @virtualbox, @vlc, @vscode, @wine, @x11, @xirvik-vpn, @yt-dlp
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -ggdb -march=native -mtune=native -pipe -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/clonehero/Custom /opt/clonehero/Screenshots /opt/clonehero/Songs /opt/clonehero/settings.ini /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -ggdb -march=native -mtune=native -pipe -ftree-vectorize"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 17 --load-average 17 --quiet-build=y --usepkg --verbose-conflicts --buildpkg-exclude 'acct-group/* acct-user/* app-arch/rar app-editors/vscode app-emulation/virtualbox-extpack-oracle app-emulation/virtualbox-modules app-text/cpdf */*-bin dev-libs/openssl-compat dev-qt/qtwebengine dev-util/intel-ocl-sdk games-emulation/snes9x games-util/steam-launcher media-fonts/* media-libs/openh264 media-video/ffmpeg media-video/magewell-pro-capture media-video/makemkv net-im/ripcord net-misc/socat sys-apps/baselayout sys-auth/pambase sys-kernel/linux-firmware sys-kernel/*-sources virtual/* media-video/cxadc www-client/google-chrome-beta x11-drivers/nvidia-drivers'"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live cgroup clean-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ https://mirrors.rit.edu/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo"
INSTALL_MASK="/etc/conf.d /etc/grub.d /etc/init.d /etc/cron.daily /etc/cron.monthly /etc/cron.weekly /lib/rc /lib/modules-load.d/joycond.conf /etc/dracut.conf /lib/modules-load.d/fwupd-msr.conf"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en en_GB en_US"
MAKEOPTS="--jobs=17 --load-average=17"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac aacs acl acpi activities aio alsa amd64 aptx avahi bash-completion bluetooth bluray branding bzip2 cairo cdda cddb cdio cdr cjk clang cli colord crypt cups curl dav1d dbus declarative dri dts dvb dvd dvdr egl encode exif faudio ffmpeg flac fluidsynth fortran gamepad gdbm gif gles2 gpm gsm gstreamer gui hardened heif hwaccel ibus iconv icu idn ipv6 jack jemalloc joystick jpeg jpeg2k kde kwallet lame lcms ldac libass libcaca libglvnd libnotify libretro libtirpc lm-sensors lto lv2 lvm lz4 lzma mad man matroska mng mod modplug mp3 mp4 mpeg multilib ncurses nls nptl nvenc ogg opencl opengl openmp opus pam pango pcre pdf pgo pipewire plasma png policykit ppds pulseaudio qml qt5 rar readline samba screencast sdl seccomp semantic-desktop snappy sound speex spell ssl startup-notification svg syslog system-av1 system-binutils system-boost system-bootloader system-cmark system-crontab system-ffmpeg system-harfbuzz system-heimdal system-info system-ipxe system-jpeg system-jsoncpp system-lcms system-leveldb system-libcxx system-libevent system-libs system-libvpx system-libyaml system-llvm system-lua system-lz4 system-mathjax system-mesa system-mitkrb5 system-numpy system-png system-python system-qemu system-seabios system-sqlite system-ssl system-tbb system-webp system-wfconfig system-wide system-wlroots system-zlib systemd taglib test-rust theora threads tiff tpm truetype twolame udev udisks unicode upower usb v4l vaapi vcd vdpau vim-syntax vlc vorbis vpx vulkan wavpack wayland webengine webp widgets wmf wxwidgets x264 x265 xattr xcb xft xinerama xml xpm xv xvid xxhash zeroconf zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev libinput joystick wacom" KERNEL="linux" L10N="en en-GB en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="nvidia v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

kde-plasma/kwin-5.27.0::gentoo was built with the following:
USE="accessibility caps lock multimedia plasma screencast -debug -gles2-only -handbook -test" ABI_X86="(64)"
CFLAGS="-O2 -ggdb -march=native -pipe"
CXXFLAGS="-O2 -ggdb -march=native -pipe"
FEATURES="binpkg-multi-instance news clean-logs pid-sandbox ipc-sandbox usersync strict parallel-fetch config-protect-if-modified buildpkg protect-owned unmerge-logs unknown-features-warn usersandbox splitdebug multilib-strict sfperms ebuild-locks preserve-libs distlocks merge-sync assume-digests cgroup sandbox xattr network-sandbox binpkg-dostrip binpkg-logs buildpkg-live unmerge-orphans strict-keepdir userpriv qa-unresolved-soname-deps userfetch binpkg-docompress compressdebug fixlafiles"
Comment 1 Andrew Udvare 2023-02-21 20:18:56 UTC
Created attachment 853516 [details]
Explanation screenshot
Comment 2 Andrew Udvare 2023-02-21 20:19:27 UTC
Created attachment 853518 [details]
Kwin debug log
Comment 3 Andrew Udvare 2023-02-21 20:25:16 UTC
Created attachment 853520 [details]
Correct behaviour screenshot
Comment 4 Andreas Sturmlechner gentoo-dev 2023-02-22 10:51:08 UTC
Highly unlikely. Please test with 5.27.1 which just entered Gentoo repository.
Comment 5 Andrew Udvare 2023-02-22 22:11:16 UTC
(In reply to Andreas Sturmlechner from comment #4)
> Highly unlikely. Please test with 5.27.1 which just entered Gentoo
> repository.

Same bug in 5.27.1 from Portage. With the locally built copy of 5.27.1 from Git the bug is not present.

When I replace Portage's build with 5.27.1 from Git (working one) the window moves over to the right by the distance needed to fix the cursor positioning.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-22 22:13:40 UTC
(In reply to Andrew Udvare from comment #5)
> (In reply to Andreas Sturmlechner from comment #4)
> > Highly unlikely. Please test with 5.27.1 which just entered Gentoo
> > repository.
> 
> Same bug in 5.27.1 from Portage. With the locally built copy of 5.27.1 from
> Git the bug is not present.
> 
> When I replace Portage's build with 5.27.1 from Git (working one) the window
> moves over to the right by the distance needed to fix the cursor positioning.

You can see the kwin ebuild for yourself, there's not much interesting in there. So let's try dig in a bit.

Some thoughts:
- Have you tried passing the same CMake arguments? 
- Note that building with CMake manually may mean it either uses no optimisation by default or a different level.
- Your USE flags (+multimedia +screencast) mean that no patches or seds are applied.
- This indicates that the only place it could differ is in the arguments passed to CMake or the CMake toolchain file.
Comment 7 Andrew Udvare 2023-02-22 23:18:49 UTC
I built the local Git copy with the exact same flags as Gentoo and I was able to reproduce the issue.

I removed -march=native in Portage and this fixes my issue. So somehow kwin is affected by -march=native for this CPU just for that code path.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-23 12:15:59 UTC
Thanks!

Could you try:
- ASAN (https://wiki.gentoo.org/wiki/AddressSanitizer)
- UBSAN (https://wiki.gentoo.org/wiki/UndefinedBehaviorSanitizer)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-23 19:46:01 UTC
(In reply to Sam James from comment #8)
> Thanks!
> 
> Could you try:
> - ASAN (https://wiki.gentoo.org/wiki/AddressSanitizer)
> - UBSAN (https://wiki.gentoo.org/wiki/UndefinedBehaviorSanitizer)

Also, please provide "expanded -march=native" per https://wiki.gentoo.org/wiki/GCC_ICE_reporting_guide#Expand_-march.3Dnative.2C_exact_gcc_version_and_other_system-specific_options. Ideally then try to narrow down which options are actually needed to trigger the misbehaviour.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-23 19:46:36 UTC
sorry, one more thing on top of the above: do kwin's tests pass when built with -march=native?

emerge -v1o --with-test-deps kde-plasma/kwin
FEATURES=test emerge -v1 kde-plasma/kwin
Comment 11 Andrew Udvare 2023-02-23 23:17:19 UTC
Kwin ebuild restricts test. I tried to run the tests both in the local copy and from Portage (fixing the ebuild) and both fail. Flags do not seem to matter there. For the latter test part of the issue may be because of needing to run a sandbox X or something similar.

For my system -march=native resolves to:

-march=rocketlake -mabm --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=16384

Have not recompiled GCC or Clang yet.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-23 23:19:50 UTC
(In reply to Andrew Udvare from comment #11)
> Kwin ebuild restricts test. I tried to run the tests both in the local copy
> and from Portage (fixing the ebuild) and both fail. Flags do not seem to
> matter there. For the latter test part of the issue may be because of
> needing to run a sandbox X or something similar.

Sorry, I realised after I said :|

> 
> For my system -march=native resolves to:
> 
> -march=rocketlake -mabm --param=l1-cache-line-size=64
> --param=l1-cache-size=48 --param=l2-cache-size=16384

OK, ASAN and UBSAN with -march=native or ^ (same thing), see if the problem still happens / if you get any terminal output when it does.

Ideally try narrow it down to which exact flag(s) are needed too.

> 
> Have not recompiled GCC or Clang yet.

Shouldn't need to do that, so ignore that bit for now.
Comment 13 Andrew Udvare 2023-02-24 19:04:05 UTC
Results of testing every combination without repeating arguments (link because it won't fit here): https://gist.github.com/Tatsh/9faeb20481cc38c58457d59c173cdf5a

TL;DR is that -march=rocketlake is causing the issue. Every other flag combination including -mabm results in working code.
Comment 14 Andrew Udvare 2023-02-24 19:04:41 UTC
Also my GCC was already built with USE=sanitize so it is doing everything mentioned in the Wiki link.
Comment 15 Andrew Udvare 2023-02-24 20:52:26 UTC
ASAN result:

$ 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
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-24 20:56:32 UTC
The ODR violation has been reported as https://bugs.kde.org/show_bug.cgi?id=428764 previously.
Comment 17 Andrew Udvare 2023-02-24 20:58:43 UTC
UBSAN result:

$ 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.
Comment 18 Chiitoo gentoo-dev 2023-05-28 13:48:38 UTC
Are you able to move windows beyond the left and top borders of the screen?

Possibly related (or the same issue even):

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