Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 940216

Summary: kde-apps/spectacle-24.08.1 - Segmentation Fault Upon Finishing Recording
Product: Gentoo Linux Reporter: Neko-san <gentoo.qxrin>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: UNCONFIRMED ---    
Severity: normal CC: gentoo.qxrin, toolchain
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=923292
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: backtrace.log
Backtrace

Description Neko-san 2024-09-25 06:56:40 UTC
When attempting to end a recording using an LLVM18 (libc++) compiled Spectacle, the program segfaults before saving the recording and drops a fat core dump in the home folder.

Reproducible: Always

Steps to Reproduce:
1. Launch a game on Steam (using gamescope)
2. Launch Spectacle
3. Attempt to record the game >window< using Spectacle (it will ask you to click on the window)
4. When done, tab back to Spectacle and click to finish
5. Segfault
Actual Results:  
Spectacle crashes

Expected Results:  
Spectacle to not crash when ending a recording

Portage 3.0.65 (python 3.12.6-final-0, default/linux/amd64/23.0/split-usr/llvm, gcc-13, glibc-2.39-r6, 6.10.9-tkg-eevdf-gentoo-llvm18-generic_v3 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.10.9-tkg-eevdf-gentoo-llvm18-generic_v3-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-glibc2.39
KiB Mem:    32765588 total,   9605960 free
KiB Swap:   16777212 total,  14719484 free
Timestamp of repository gentoo: Tue, 24 Sep 2024 20:48:53 +0000
Head commit of repository gentoo: dcfa235c0b66993ca502749a451a65403b4cd054

Timestamp of repository guru: Tue, 24 Sep 2024 12:19:22 +0000
Head commit of repository guru: 497a46602c06807015d10b9e7f42e57527d43a4d

Timestamp of repository kde: Tue, 24 Sep 2024 06:49:24 +0000
Head commit of repository kde: 8428041c13d09ddc5814cece05fb1c08f6b9b21b

Timestamp of repository pf4public: Tue, 24 Sep 2024 18:50:02 +0000
Head commit of repository pf4public: 5ede906f61ce674aeaffbc34c45fff685614c4a8

Timestamp of repository steam-overlay: Tue, 24 Sep 2024 12:19:15 +0000
Head commit of repository steam-overlay: 18c78592f03d886db5de79ad23ac1c34ddd72613

Head commit of repository waffle-builds: 411893ae555f010adef2fdf97193563064054136

Head commit of repository FireBurn: 0b17f5623980051627bb9ceecd501696ef665cd6

Head commit of repository bobwya: a8496a14aee3c337b0e547b97b546b08607242a8

Head commit of repository farmboy0: 2df3b12838fafc77468edff1ca308734f73e2f2a

Head commit of repository kzd: 321a023a5cdde9042c65696975044b8cca812897

Head commit of repository librewolf: 57ad16f105af78a7b2bbd99b70777c17523e9fc3

Head commit of repository oxen-overlay: caa06ee33866f344b827f2bf7105839272cd7b3e

Head commit of repository src_prepare-overlay: a3daac4e47cf763e9f52f1a30aa113acd8f13523

Head commit of repository tatsh-overlay: 8e1122ae05f9ae0378ca980ede8ba6bd2a0b3cb7

Head commit of repository tezeta: 7644636a57317ba864880f7f93a95d3e49ba9474

Head commit of repository thegreatmcpain: 8e48ac29508890f4fc1db8b02bd3dbe2152d97d4

Head commit of repository x0rzavi: e560dddb58c5baebc899623129a9db37f9a8da4b

Head commit of repository xarblu-overlay: ea42b599a8c93f3eee3a4f47ada1e544b71beaa7

Timestamp of repository xwing: Mon, 23 Sep 2024 16:18:46 +0000
Head commit of repository xwing: c0ed9a037307ef23fc3674000d84817df4f54a75

sh lksh
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.2::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.5.2::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.12.6_p2::gentoo
dev-lang/rust:             1.80.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54.2::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang:           18.1.8::gentoo
sys-devel/gcc:             13.3.1_p20240614::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             18.1.8::gentoo
sys-devel/llvm:            17.0.6::gentoo, 18.1.8-r1::gentoo
sys-kernel/linux-headers:  6.10::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

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

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

neko-san_override
    location: /var/db/repos/neko-san_override
    masters: gentoo
    volatile: False

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

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

waffle-builds
    location: /var/db/repos/waffle-builds
    sync-type: git
    sync-uri: https://github.com/FlyingWaffleDev/waffle-builds
    masters: gentoo
    volatile: False

FireBurn
    location: /var/db/repos/FireBurn
    sync-type: git
    sync-uri: https://github.com/FireBurn/Overlay.git
    masters: gentoo
    priority: 50
    volatile: False

bobwya
    location: /var/db/repos/bobwya
    sync-type: git
    sync-uri: https://github.com/bobwya/bobwya
    masters: gentoo
    priority: 50
    volatile: False

farmboy0
    location: /var/db/repos/farmboy0
    sync-type: git
    sync-uri: https://github.com/farmboy0/portage-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

kzd
    location: /var/db/repos/kzd-ebuilds
    sync-type: git
    sync-uri: https://gitlab.com/kzdixon/kzd-ebuilds.git
    masters: gentoo steam-overlay
    priority: 50
    volatile: False

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://codeberg.org/librewolf/gentoo.git
    masters: gentoo
    priority: 50
    volatile: False

oxen-overlay
    location: /var/db/repos/oxen-overlay
    sync-type: git
    sync-uri: https://github.com/XutaxKamay/oxen-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

src_prepare-overlay
    location: /var/db/repos/src_prepare-overlay
    sync-type: git
    sync-uri: https://gitlab.com/src_prepare/src_prepare-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

tatsh-overlay
    location: /var/db/repos/tatsh-overlay
    sync-type: git
    sync-uri: https://github.com/Tatsh/tatsh-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

tezeta
    location: /var/db/repos/tezeta
    sync-type: git
    sync-uri: https://github.com/tezeta/tezeta-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

thegreatmcpain
    location: /var/db/repos/thegreatmcpain
    sync-type: git
    sync-uri: https://gitlab.com/TheGreatMcPain/thegreatmcpain-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

x0rzavi
    location: /var/db/repos/x0rzavi
    sync-type: git
    sync-uri: https://github.com/x0rzavi/x0rzavi-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

xarblu-overlay
    location: /var/db/repos/xarblu-overlay
    sync-type: git
    sync-uri: https://github.com/xarblu/xarblu-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

xwing
    location: /var/db/repos/xwing
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/xwing.git
    masters: gentoo
    priority: 50
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="llvm-as"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-march=znver2 -pipe -O2 -mllvm=-polly -mllvm=-polly-ast-use-context -mllvm=-polly-vectorizer=stripmine -mllvm=-polly-invariant-load-hoisting -mllvm=-polly-run-inliner -mllvm=-polly-run-dce -fno-plt -ftrivial-auto-var-init=pattern -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection -fPIC -ggdb3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/terminfo"
CPP="clang-cpp"
CXX="clang++"
CXXFLAGS="-march=znver2 -pipe -O2 -mllvm=-polly -mllvm=-polly-ast-use-context -mllvm=-polly-vectorizer=stripmine -mllvm=-polly-invariant-load-hoisting -mllvm=-polly-run-inliner -mllvm=-polly-run-dce -fno-plt -ftrivial-auto-var-init=pattern -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection -fPIC -ggdb3"
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="-march=znver2 -pipe -O2 -mllvm=-polly -mllvm=-polly-ast-use-context -mllvm=-polly-vectorizer=stripmine -mllvm=-polly-invariant-load-hoisting -mllvm=-polly-run-inliner -mllvm=-polly-run-dce -fno-plt -ftrivial-auto-var-init=pattern -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection -fPIC -ggdb3"
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 nostrip 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="-march=znver2 -pipe -O2 -mllvm=-polly -mllvm=-polly-ast-use-context -mllvm=-polly-vectorizer=stripmine -mllvm=-polly-invariant-load-hoisting -mllvm=-polly-run-inliner -mllvm=-polly-run-dce -fno-plt -ftrivial-auto-var-init=pattern -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection -fPIC -ggdb3"
GENTOO_MIRRORS="https://gentoo.osuosl.org/"
LANG="en_US.utf8"
LD="ld.lld"
LDFLAGS="-Wl,-O2,--sort-common,--as-needed,-z,relro,-z,now"
LEX="flex"
MAKEOPTS="-j7"
NM="llvm-nm"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-9 -R -p4"
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"
RANLIB="llvm-ranlib"
READELF="llvm-readelf"
RUSTFLAGS="-C opt-level=3 -C target-cpu=native -C codegen-units=1"
SHELL="/bin/bash"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="7z X a52 aac acl acpi activities alsa amd64 autotype bash-completion binutils-plugin bluetooth branding browser browser-integration bzip2 cairo cdda cdr cet clang cli colord crash-handler crypt cups dbus declarative default-compiler-rt default-libcxx default-lld desktop-portal dhclient discover dri dts dvd dvdr echo-cancel elogind encode eselect-ldso exif ffmpeg firewall flac flatpak fluidsynth fortran gbm gdbm gif gles2 gles3 gpm gstreamer gtk gui hardened iconv icu ipv6 iwd jack jack-client jpeg kde kf6compat kwallet lcms legacy-systray libcxx libnotify libtirpc llvm-libunwind lm-sensors mad mgba mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openh264 openmp openssl opus pam pango pcre pdf pic pie pipewire pipewire-alsa plasma png policykit ppds pulseaudio qml qt6 raw readline resolvconf retroachievements rtc screencast sddm sdl seccomp sechash semantic-desktop share smart sound sound-server spell split-usr ssl startup-notification svg system-crontab system-man test-rust threads tiff timidity truetype udev udisks unicode upnp upower usb v4l vaapi vdpau vorbis vulkan wallpapers wav wayland widgets wired wxwidgets x264 xattr xcb xcsecurity xft xml xorg xscreensaver xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gcc_12" AMDGPU_TARGETS="gfx1101 gfx908 gfx90a" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a 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" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_SLOT="18" LLVM_TARGETS="SPIRV X86" 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" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby31 ruby32" SANE_BACKENDS="hp" VIDEO_CARDS="fbdev vesa dummy v4l lavapipe amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
YACC="byacc"
Unset:  ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, SIZE, YFLAGS

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

kde-apps/spectacle-24.08.1::gentoo was built with the following:
USE="handbook share -debug -test" ABI_X86="(64)"
Comment 1 Neko-san 2024-09-25 06:57:14 UTC
Created attachment 903673 [details]
backtrace.log
Comment 2 Andreas Sturmlechner gentoo-dev 2024-09-25 07:00:34 UTC
Happy to apply any upstream fixes, but won't personally look into this unless reproduced with gcc/glibc.
Comment 3 Neko-san 2024-09-25 07:09:54 UTC
I can't compile Spectacle with GCC on my profile because it results in a ton of mangled symbols errors, so I can't verify if it happens on that side, just to clarify.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-25 10:13:34 UTC
Thread 76 (Thread 0x7bec3b4006c0 (LWP 26336) "PipeWireProduce"):
#0  0x00007bf0a2b52ecd in end_ebml_master_crc32 (pb=pb@entry=0x7bebc803bc40, dyn_cp=dyn_cp@entry=0x7bebcafede90, mkv=mkv@entry=0x7bebcafede40, id=id@entry=524531317, length_size=length_size@entry=0, keep_buffer=keep_buffer@entry=0, add_seekentry=0) at src/libavformat/matroskaenc.c:786
#1  0x00007bf0a2b50846 in mkv_write_trailer (s=0x7bebcafedac0) at src/libavformat/matroskaenc.c:3137
#2  0x00007bf0a2b9cd57 in av_write_trailer (s=0x7bebcafedac0) at src/libavformat/mux.c:1315
#3  0x00007bf0a971875f in PipeWireRecordProduce::cleanup (this=0x5e5a8d45b8c0) at /var/tmp/portage/kde-plasma/kpipewire-6.1.5/work/kpipewire-6.1.5/src/pipewirerecord.cpp:201
#4  0x00007bf0a971b4fb in PipeWireProduce::destroy (this=0x5e5a8d45b8c0) at /var/tmp/portage/kde-plasma/kpipewire-6.1.5/work/kpipewire-6.1.5/src/pipewireproduce.cpp:190
#5  0x00007bf0a626e47c in QObject::event (this=0x5e5a8d45b8c0, e=0x7bec1d023eb0) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:1452
#6  0x00007bf0a7e6eea0 in QApplicationPrivate::notify_helper (this=0x5e5a8cf3bfc0, receiver=0x5e5a8d45b8c0, e=0x7bec1d023eb0) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/widgets/kernel/qapplication.cpp:3287
#7  0x00007bf0a7e70820 in QApplication::notify (this=0x7ffeccc2e1d0, receiver=0x5e5a8d45b8c0, e=0x7bec1d023eb0) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/widgets/kernel/qapplication.cpp:3238
#8  0x00007bf0a6314e4d in QCoreApplication::notifyInternal2 (receiver=0x5e5a8d45b8c0, event=0x7bec1d023eb0) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1142
#9  0x00007bf0a63163d2 in QCoreApplication::sendEvent (receiver=0x5e5a8d45b8c0, event=0x7bec1d023eb0) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1583
#10 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5e5a8d82ad90) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1940
#11 0x00007bf0a60cae98 in postEventSourceDispatch (s=0x7bebc8000f10) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventdispatcher_glib.cpp:244
#12 0x00007bf0a229a240 in g_main_dispatch (context=0x7bebc8000c60) at ../glib-2.78.6/glib/gmain.c:3476
#13 g_main_context_dispatch_unlocked (context=context@entry=0x7bebc8000c60) at ../glib-2.78.6/glib/gmain.c:4284
#14 0x00007bf0a229a63c in g_main_context_iterate_unlocked (context=context@entry=0x7bebc8000c60, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib-2.78.6/glib/gmain.c:4349
#15 0x00007bf0a229a6dc in g_main_context_iteration (context=0x7bebc8000c60, may_block=1) at ../glib-2.78.6/glib/gmain.c:4414
#16 0x00007bf0a60b63e7 in QEventDispatcherGlib::processEvents (this=0x7bebc8001260, flags=...) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#17 0x00007bf0a63159a6 in QEventLoop::processEvents (this=0x7bec3b3f0a00, flags=...) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventloop.cpp:100
#18 QEventLoop::exec (this=0x7bec3b3f0a00, flags=...) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventloop.cpp:182
#19 0x00007bf0a623440b in QThread::exec (this=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread.cpp:586
#20 0x00007bf0a61dfbda in QThreadPrivate::start(void*)::$_0::operator()() const (this=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:326
#21 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::$_0>(QThreadPrivate::start(void*)::$_0&&) (t=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:262
#22 QThreadPrivate::start (arg=0x5e5a8de6b680) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:285
#23 0x00007bf0a5bc7191 in start_thread (arg=<optimized out>) at pthread_create.c:447
#24 0x00007bf0a5c4660c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

... so it crashes in ffmpeg's end_ebml_master_crc32.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-25 10:15:46 UTC
> CFLAGS="-march=znver2 -pipe -O2 -mllvm=-polly -mllvm=-polly-ast-use-context -mllvm=-polly-vectorizer=stripmine -mllvm=-polly-invariant-load-hoisting -mllvm=-polly-run-inliner -mllvm=-polly-run-dce -fno-plt -ftrivial-auto-var-init=pattern -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection -fPIC -ggdb3"

As I've advised before:
* several of these are default already for Clang via clang-common;
* please reduce the flags needed to reproduce failure (noting you'll need to rebuild at least direct deps with the same reduced flags)
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-25 10:17:59 UTC
> keep_buffer=keep_buffer@entry=0, add_seekentry=0) at src/libavformat/matroskaenc.c:786

What line is this for you? (What version of media-video/ffmpeg?)
Comment 7 Neko-san 2024-09-25 16:07:50 UTC
ffmpeg 6.1.1-r8, to clarify; also, about the dependency rebuilding, I still sort of need to learn how to properly determine *every* direct dependency required for rebuilding
(Is rebuilding *everything* on this page is not overdoing it, right?)
https://packages.gentoo.org/packages/kde-apps/spectacle/dependencies
Comment 8 Andreas Sturmlechner gentoo-dev 2024-09-25 21:38:27 UTC
Also, not reproducible for me with media-video/ffmpeg-6.1.2 and kde-apps/spectacle-24.08.1.
Comment 9 Neko-san 2024-09-29 19:11:53 UTC
Even if I reduce the flags to just "-march=znver2 -O2 -pipe -ggdb3" for both ffmpeg and Spectacle, I still get the same error in the backtrace.
(I only need to rebuild ffmpeg and spectacle if ffmpeg is the cause, like you mentioned, right? Or should I be rebuilding more packages?)
Comment 10 Neko-san 2024-10-25 20:32:31 UTC
Created attachment 906729 [details]
Backtrace

Added a new backtrace with:
- "thread apply all bt full"
- "info locals"
- "disas"

Also "sort of" found what was causing the crash on the user-facing side:
The screen recording menu as a drop-down list option that lets you select which file type to save to, but for me the default choice was actually blank for some reason, and when I opened the drop-down the only valid option was mp4. Changing it to mp4 prevents the crash when attempting to stop a recording, but I find it odd that the default was blank to begin with and it just decided to save as (what I assume to be) a mkv file. :/