Running spectacle in plasma 6 from terminal or shortcut ends with segmentation fault. It was working in previous version on plasma 5. Reproducible: Always Steps to Reproduce: 1. Update from plasma 5 to plasma 6 2. Build spectacle for plasma 6 3. Run spectacle Actual Results: Segmentation fault (core dump) Expected Results: Running app in background
Created attachment 897745 [details] strace log
*always* add your emerge --info, please.
Please obtain a backtrace using gdb or coredumpctl (as your strace shows you have it). See https://wiki.gentoo.org/wiki/Debugging.
Portage 3.0.65 (python 3.12.4-final-0, default/linux/amd64/23.0/desktop/plasma/systemd, gcc-14, glibc-2.39-r9, 6.9.7-gentoo-x86_64 x86_64) ================================================================= System uname: Linux-6.9.7-gentoo-x86_64-x86_64-13th_Gen_Intel-R-_Core-TM-_i7-13620H-with-glibc2.39 KiB Mem: 65545112 total, 4473244 free KiB Swap: 134220796 total, 119478924 free Timestamp of repository gentoo: Mon, 15 Jul 2024 09:00:00 +0000 Head commit of repository gentoo: c9bf0e512a2bd6daddc82a8248470a4c5325d811 Timestamp of repository pentoo: Mon, 15 Jul 2024 07:34:33 +0000 Head commit of repository pentoo: 841b73c266732288fc093d0eebeb2820cc74c9a0 Timestamp of repository seden: Fri, 12 Jul 2024 07:49:12 +0000 Head commit of repository seden: bc39ab06345fa568f21dc31c1680ba543b347296 Timestamp of repository stuff: Mon, 15 Jul 2024 07:34:33 +0000 Head commit of repository stuff: 4b5ead50077939f74990b6c68fb0f0441ccb642b Timestamp of repository xwing: Mon, 15 Jul 2024 07:34:33 +0000 Head commit of repository xwing: 4f0f43920a44d68d50bea3a0471493cb19019359 sh bash 5.2_p26-r8 ld GNU ld (Gentoo 2.42 p6) 2.42.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p26-r8::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo dev-build/automake: 1.16.5-r2::gentoo, 1.17-r1::gentoo dev-build/cmake: 3.30.0::gentoo dev-build/libtool: 2.4.7-r4::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.5.0::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0::gentoo dev-lang/python: 3.12.4_p2::gentoo, 3.13.0_beta3_p1::gentoo dev-lang/rust-bin: 1.79.0::gentoo sys-apps/baselayout: 2.15::gentoo sys-apps/sandbox: 2.39::gentoo sys-apps/systemd: 256.2::gentoo sys-devel/binutils: 2.42-r2::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 18.1.8::gentoo sys-devel/gcc: 14.1.1_p20240622::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 18.1.8::gentoo sys-devel/llvm: 18.1.8::gentoo sys-kernel/linux-headers: 6.9::gentoo (virtual/os-headers) sys-libs/glibc: 2.39-r9::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 pentoo location: /var/db/repos/pentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/pentoo.git masters: gentoo volatile: False seden location: /var/db/repos/seden sync-type: git sync-uri: https://github.com/gentoo-mirror/seden.git masters: gentoo volatile: False stuff location: /var/db/repos/stuff sync-type: git sync-uri: https://github.com/gentoo-mirror/stuff.git masters: gentoo volatile: False xwing location: /var/db/repos/xwing sync-type: git sync-uri: https://github.com/gentoo-mirror/xwing.git masters: gentoo volatile: False Binary Repositories: gentoobinhost priority: 1 sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/23.0/x86-64 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /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" CXXFLAGS="-O2 -pipe" DISTDIR="/var/cache/distfiles" 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-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="pl_PL.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" MAKEOPTS="-j8" 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 acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus declarative dri dts dvd dvdr encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kf6compat kwallet lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nvenc nvidia ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 readline screencast sdl seccomp semantic-desktop sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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="mmx mmxext sse sse2 aes avx avx2 avx512bw avx512cd avx512dq avx512f avx512vbmi avx512vl f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" L10N="pl" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_SLOT="18" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="intel nvidia d3d12" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
(gdb) run Starting program: /usr/bin/spectacle [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". Program received signal SIGILL, Illegal instruction. cv::utils::logging::LogTagConfigParser::LogTagConfigParser (this=this@entry=0x555555807f80, defaultUnconfiguredGlobalLevel=defaultUnconfiguredGlobalLevel@entry=cv::utils::logging::LOG_LEVEL_INFO) at /usr/src/debug/media-libs/opencv-4.9.0-r1/opencv-4.9.0/modules/core/src/utils/logtagconfigparser.cpp:12 12 LogTagConfigParser::LogTagConfigParser(LogLevel defaultUnconfiguredGlobalLevel) (gdb) bt #0 cv::utils::logging::LogTagConfigParser::LogTagConfigParser (this=this@entry=0x555555807f80, defaultUnconfiguredGlobalLevel=defaultUnconfiguredGlobalLevel@entry=cv::utils::logging::LOG_LEVEL_INFO) at /usr/src/debug/media-libs/opencv-4.9.0-r1/opencv-4.9.0/modules/core/src/utils/logtagconfigparser.cpp:12 #1 0x00007ffff521d734 in std::_Construct<cv::utils::logging::LogTagConfigParser, cv::utils::logging::LogLevel&> (__p=0x555555807f80) at /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/stl_construct.h:109 #2 std::allocator_traits<std::allocator<void> >::construct<cv::utils::logging::LogTagConfigParser, cv::utils::logging::LogLevel&> (__p=0x555555807f80) at /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/alloc_traits.h:657 #3 std::_Sp_counted_ptr_inplace<cv::utils::logging::LogTagConfigParser, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<cv::utils::logging::LogLevel&> (this=0x555555807f70, __a=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/shared_ptr_base.h:607 #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<cv::utils::logging::LogTagConfigParser, std::allocator<void>, cv::utils::logging::LogLevel&> (this=0x555555807f58, __p=@0x555555807f50: 0x0, __a=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/shared_ptr_base.h:969 #5 std::__shared_ptr<cv::utils::logging::LogTagConfigParser, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<void>, cv::utils::logging::LogLevel&> (this=0x555555807f50, __tag=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/shared_ptr_base.h:1713 #6 std::shared_ptr<cv::utils::logging::LogTagConfigParser>::shared_ptr<std::allocator<void>, cv::utils::logging::LogLevel&> (this=0x555555807f50, __tag=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/shared_ptr.h:463 #7 std::make_shared<cv::utils::logging::LogTagConfigParser, cv::utils::logging::LogLevel&> () at /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/shared_ptr.h:1008 #8 cv::utils::logging::LogTagManager::LogTagManager (this=this@entry=0x555555807e10, defaultUnconfiguredGlobalLevel=cv::utils::logging::LOG_LEVEL_INFO) at /usr/src/debug/media-libs/opencv-4.9.0-r1/opencv-4.9.0/modules/core/src/utils/logtagmanager.cpp:20 #9 0x00007ffff5112526 in cv::utils::logging::internal::GlobalLoggingInitStruct::GlobalLoggingInitStruct (this=0x555555807e10) at /usr/src/debug/media-libs/opencv-4.9.0-r1/opencv-4.9.0/modules/core/src/logger.cpp:45 #10 cv::utils::logging::internal::getGlobalLoggingInitStruct () at /usr/src/debug/media-libs/opencv-4.9.0-r1/opencv-4.9.0/modules/core/src/logger.cpp:97 #11 0x00007ffff505702d in cv::utils::logging::internal::GlobalLoggingInitCall::GlobalLoggingInitCall (this=<optimized out>) at /usr/src/debug/media-libs/opencv-4.9.0-r1/opencv-4.9.0/modules/core/src/logger.cpp:109 #12 __static_initialization_and_destruction_0 () at /usr/src/debug/media-libs/opencv-4.9.0-r1/opencv-4.9.0/modules/core/src/logger.cpp:114 #13 _GLOBAL__sub_I_logger.cpp(void) () at /usr/src/debug/media-libs/opencv-4.9.0-r1/opencv-4.9.0/modules/core/src/logger.cpp:279 #14 0x00007ffff7fcc36e in call_init () at /lib64/ld-linux-x86-64.so.2 #15 0x00007ffff7fcc45c in _dl_init () at /lib64/ld-linux-x86-64.so.2 #16 0x00007ffff7fe3b60 in _dl_start_user () at /lib64/ld-linux-x86-64.so.2 #17 0x0000000000000001 in ??? () #18 0x00007fffffffdc75 in ??? () #19 0x0000000000000000 in ??? ()
Try: x/i $pc in gdb.
A description on what you are doing and the output of emerge -pv media-libs/opencv would also be helpful.
(In reply to Sam James from comment #6) > Try: x/i $pc in gdb. After run in gdb?
(In reply to Paul Zander from comment #7) > A description on what you are doing and the output of emerge -pv > media-libs/opencv would also be helpful. I type `gdb spectacle` and then type `run` and `bt`. [ebuild R ] kde-apps/spectacle-24.05.2:6::gentoo USE="handbook -debug -share -test" 0 KiB
(In reply to Peter from comment #8) > (In reply to Sam James from comment #6) > > Try: x/i $pc in gdb. > After run in gdb? After run it is: => 0x7ffff521a168 <_ZN2cv5utils7logging18LogTagConfigParserC2ENS1_8LogLevelE+104>: vmovdqu64 %zmm0,0x48(%rdi)
vmovdqu64 is AVX512. Your CPU (i7-13620H) doesn't have AVX512. Did you change machines or temporarily build with a different -march= value in *FLAGS?
I haven't changed anything. This is how my make.conf looks like: # These settings were set by the catalyst build script that automatically # built this stage. # Please consult /usr/share/portage/config/make.conf.example for a more # detailed example. COMMON_FLAGS="-O2 -pipe" CFLAGS="${COMMON_FLAGS}" CXXFLAGS="${COMMON_FLAGS}" FCFLAGS="${COMMON_FLAGS}" FFLAGS="${COMMON_FLAGS}" VIDEO_CARDS="intel nvidia d3d12" # NOTE: This stage was built with the bindist Use flag enabled USE="vaapi nvenc nvidia vdpau kf6compat" # This sets the language of build output to English. # Please keep this setting intact when reporting bugs. LC_MESSAGES=C.utf8 # If left undefined, Portage's default behavior is to set the MAKEOPTS value to the same number of threads returned by `nproc` MAKEOPTS="-j8" # To find the appropriate filename(s) for the listed signature(s) use: # iucode_tool -S -l /lib/firmware/intel-ucode/* # To install microcode data files for a specific processor use: MICROCODE_SIGNATURES="-s 0x000b06a2" #ACCEPT_LICENSE="-* @FREE @BINARY-REDISTRIBUTABLE" #GRUB_PLATFORMS="efi-64" L10N="pl" ACCEPT_KEYWORDS="~amd64" LLVM_SLOT="18" SECUREBOOT_SIGN_KEY="/home/plobacz/secure_boot/custom_config/db.key" SECUREBOOT_SIGN_CERT="/home/plobacz/secure_boot/custom_config/db.crt" # WARNING: just temporary #PYTHON_SINGLE_TARGET="python3_11"
(In reply to Peter from comment #9) > [ebuild R ] kde-apps/spectacle-24.05.2:6::gentoo USE="handbook -debug > -share -test" 0 KiB emerge -pv media-libs/opencv please
(In reply to Paul Zander from comment #13) > (In reply to Peter from comment #9) > > [ebuild R ] kde-apps/spectacle-24.05.2:6::gentoo USE="handbook -debug > > -share -test" 0 KiB > emerge -pv media-libs/opencv please [ebuild R ] media-libs/opencv-4.9.0-r1:0/4.9.0::gentoo USE="contrib contribdnn eigen features2d ffmpeg jpeg opengl openmp png python qt5 tiff vaapi -atlas -contribcvv -contribfreetype -contribhdf (-contribovis) -contribsfm -contribxfeatures2d -cuda -cudnn -debug -dnnsamples -doc -examples -gdal -gflags -glog -gphoto2 -gstreamer -gtk3 -ieee1394 -jasper -java -jpeg2k -lapack -mkl -non-free -opencl -opencvapps -openexr -qt6 -quirc -tbb -tesseract -test -testprograms -v4l -vtk -webp -xine" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="avx avx2 avx512f f16c fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" PYTHON_TARGETS="python3_12 -python3_10 -python3_11" VIDEO_CARDS="intel" 0 KiB
I have forgotten to (In reply to Peter from comment #14) > (In reply to Paul Zander from comment #13) > > (In reply to Peter from comment #9) > > > [ebuild R ] kde-apps/spectacle-24.05.2:6::gentoo USE="handbook -debug > > > -share -test" 0 KiB > > emerge -pv media-libs/opencv please > > [ebuild R ] media-libs/opencv-4.9.0-r1:0/4.9.0::gentoo USE="contrib > contribdnn eigen features2d ffmpeg jpeg opengl openmp png python qt5 tiff > vaapi -atlas -contribcvv -contribfreetype -contribhdf (-contribovis) > -contribsfm -contribxfeatures2d -cuda -cudnn -debug -dnnsamples -doc > -examples -gdal -gflags -glog -gphoto2 -gstreamer -gtk3 -ieee1394 -jasper > -java -jpeg2k -lapack -mkl -non-free -opencl -opencvapps -openexr -qt6 > -quirc -tbb -tesseract -test -testprograms -v4l -vtk -webp -xine" > ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="avx avx2 avx512f f16c fma3 popcnt > sse sse2 sse3 sse4_1 sse4_2 ssse3" PYTHON_TARGETS="python3_12 -python3_10 > -python3_11" VIDEO_CARDS="intel" 0 KiB And I have forgotten to mention, that I have even tested by downgrading the opencv package and the issue was still persisting.
(In reply to Sam James from comment #11) > vmovdqu64 is AVX512. Your CPU (i7-13620H) doesn't have AVX512. > > Did you change machines or temporarily build with a different -march= value > in *FLAGS? Ha I got it where it came from after digging with your suggestion I started to read about it in https://wiki.gentoo.org/wiki/CPU_FLAGS_* and discovered that I had it turned on: cat /etc/portage/package.use/00cpu-flags */* 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 than updated it with `echo "*/* $(cpuid2cpuflags)" > /etc/portage/package.use/00cpu-flags` and now it looks like it: cat /etc/portage/package.use/00cpu-flags */* CPU_FLAGS_X86: aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3 vpclmulqdq Need to rebuild and test again...
Ha recompiling with proper flags has fixed the issue :D Thx Sam