Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919101 - kde-apps/kdenlive w/ media-plugins/frei0r-plugins-1.8.0[opencv] with dev-libs/protobuf-23.3-r2: crashes on startup with media-libs/opencv[lto]
Summary: kde-apps/kdenlive w/ media-plugins/frei0r-plugins-1.8.0[opencv] with dev-libs...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto 912819
  Show dependency tree
 
Reported: 2023-12-03 06:37 UTC by Zoltan Puskas
Modified: 2024-01-10 13:10 UTC (History)
8 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zoltan Puskas 2023-12-03 06:37:33 UTC
Starting kdenlive with lead to an immediate crash during the splash screen and results in a core dump. kdenlive will offer to reset on next startup but the result will be the same. 

Starting from a clean slate (i.e. deleting all configuration files and directories for kdenlive) does not help either.

Sometimes instead of crashing it gets stuck on the splash screen spinning one core to a 100% and leaking memory.

Downgrading to dev-libs/protobuf-21.9 or dev-libs/protobuf-21.12 resolves the problem.


Reproducible: Always

Steps to Reproduce:
>>> kdenlive
Could not detect package type, probably default? App dir is "/usr/bin"
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1701581043.351673  261945 descriptor_database.cc:656] File already exists in database: versions.proto
F0000 00:00:1701581043.351856  261945 descriptor.cc:1995] Check failed: GeneratedDatabase()->Add(encoded_file_descriptor, size)
*** Check failure stack trace: ***
22 -- exe=/usr/bin/kdenlive
13 -- platform=xcb
11 -- display=:0
17 -- appname=kdenlive
17 -- apppath=/usr/bin
9 -- signal=6
11 -- pid=261945
19 -- appversion=23.08.3
21 -- programname=Kdenlive
31 -- bugaddress=submit@bugs.kde.org
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kdenlive path = /usr/bin pid = 261945
KCrash: Arguments: /usr/bin/kdenlive
KCrash: Attempting to start /usr/lib64/libexec/drkonqi
zsh: suspended (signal)  kdenlive



>>> emerge --info kdenlive
Portage 3.0.55 (python 3.10.13-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-12, glibc-2.38-r7, 6.5.9-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.5.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-8550U_CPU_@_1.80GHz-with-glibc2.38
KiB Mem:    32774528 total,  19102360 free
KiB Swap:    2096852 total,   2096084 free
Timestamp of repository gentoo: Tue, 28 Nov 2023 01:45:01 +0000
Head commit of repository gentoo: 4b5705218e1c8405abe20595d2c39145813839af
Timestamp of repository science: Mon, 27 Nov 2023 11:17:03 +0000
Head commit of repository science: 90322407a131ee0d2d47f2f312bb98a8cc3b9b2f

Head commit of repository sinustrom: 95a87a92df42ffea344d2b0b4abbed760485e3d5

sh bash 5.2_p21
ld GNU ld (Gentoo 2.41 p2) 2.41.0
distcc 3.4 x86_64-pc-linux-gnu [enabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p21::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.6::gentoo, 3.12.0_p1::gentoo
dev-lang/rust:             1.73.0::gentoo
dev-util/cmake:            3.27.8::gentoo
dev-util/meson:            1.3.0::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          254.6::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.5::gentoo
sys-devel/gcc:             12.3.1_p20230825::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.5::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://barbican.sinustrom.net/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3
    sync-rsync-extra-opts:

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

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

sinustrom-test
    location: /var/db/repos/sinustrom-test
    masters: gentoo
    volatile: False

Installed sets: @openwrt-prerequisites
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -mabm -madx -maes -mavx -mavx2 -mbmi -mbmi2 -mclflushopt -mcx16 -mf16c -mfma -mfsgsbase -mfxsr -mlzcnt -mmmx -mmovbe -mpclmul -mpopcnt -mprfchw -mrdrnd -mrdseed -msahf -msgx -msse -msse2 -msse3 -msse4.1 -msse4.2 -mssse3 -mxsave -mxsavec -mxsaveopt -mxsaves --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=8192 -O3 -pipe -frecord-gcc-switches"
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 /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=skylake -mabm -madx -maes -mavx -mavx2 -mbmi -mbmi2 -mclflushopt -mcx16 -mf16c -mfma -mfsgsbase -mfxsr -mlzcnt -mmmx -mmovbe -mpclmul -mpopcnt -mprfchw -mrdrnd -mrdseed -msahf -msgx -msse -msse2 -msse3 -msse4.1 -msse4.2 -mssse3 -mxsave -mxsavec -mxsaveopt -mxsaves --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=8192 -O3 -pipe -frecord-gcc-switches"
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 distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://barbican.sinustrom.net/gentoo-distfiles http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
LEX="flex"
MAKEOPTS="-j80 -l7"
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/zsh"
USE="X a52 aac acl acpi activities alsa amd64 avif bash-completion bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr encode exif flac fortran gdbm gif gphoto2 gpm gtk gui hardened heif iconv icu ipv6 jpeg jpeg2k jpegxl kde kwallet lcms libnotify libtirpc lm_sensors lto lzma mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opencl opengl openmp opus pam pango pcre pdf pipewire plasma png policykit posix ppds pulseaudio qml qt5 readline screencast sdl seccomp smp sound spell split-usr ssl startup-notification svg systemd test-rust threads tiff truetype udev udisks unicode upower usb uxa vaapi vdpau vim-syntax vorbis vulkan wayland webp widgets wifi wxwidgets x264 xattr xcb xft xml xpm xv xvid zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2021" ALSA_CARDS="hda-intel usb-audio" 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 f16c fma3 mmx mmxext pclmul popcnt rdrand 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="libinput wacom synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="x86 BPF" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="i368 x86_64 arm aarch64" QEMU_USER_TARGETS="i386 x86_64 arm aarch64" RUBY_TARGETS="ruby32" SANE_BACKENDS="plustek genesys pixma" VIDEO_CARDS="intel i965" 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, 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, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

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

kde-apps/kdenlive-23.08.3::gentoo was built with the following:
USE="handbook v4l -debug -designer -doc -gles2-only -semantic-desktop -test" ABI_X86="(64)"
FEATURES="distlocks binpkg-multi-instance parallel-fetch sandbox unmerge-orphans qa-unresolved-soname-deps buildpkg-live pkgdir-index-trusted binpkg-docompress warn-on-large-env ebuild-locks usersandbox binpkg-logs merge-sync strict-keepdir strict userpriv xattr unknown-features-warn news config-protect-if-modified usersync protect-owned sfperms distcc binpkg-dostrip fixlafiles pid-sandbox network-sandbox preserve-libs ipc-sandbox assume-digests userfetch multilib-strict unmerge-logs"
Comment 1 ston jia 2023-12-09 07:07:57 UTC
I can reproduce it
Comment 2 Andreas Sturmlechner gentoo-dev 2023-12-14 13:10:24 UTC
kdenlive does not directly depend on protobuf, it will be a crash caused by something - opencv? - down the line:

> * dependency graph for kde-apps/kdenlive
>  `--  kde-apps/kdenlive
>    `--  media-libs/mlt
>      `--  media-libs/opencv
>       `--  dev-libs/protobuf
>     `--  media-plugins/frei0r-plugins
>      `--  media-libs/opencv
>       `--  dev-libs/protobuf

You could make another test by temporarily removing media-plugins/frei0r-plugins, in order to narrow it down to mlt[opencv]
Comment 3 Andreas Sturmlechner gentoo-dev 2023-12-14 13:12:28 UTC
Or otherwise, both deps have opencv support optional, so you can play with that:

media-libs/mlt[opencv]
media-plugins/frei0r-plugins[facedetect]
Comment 4 Paul Zander 2023-12-14 14:16:46 UTC
Can you run kdenlive in a terminal and attach the output to the bug?

Also knowing the media-libs/mlt, media-plugins/frei0r-plugins and opencv versions you are using would be helpful.
Comment 5 Andreas Sturmlechner gentoo-dev 2023-12-14 20:22:04 UTC
Please also test with media-libs/mlt-7.22.0 once it becomes available from your rsync mirror in a couple of hours.
Comment 6 Alexander B. Ustinov 2023-12-15 18:44:56 UTC
(In reply to Andreas Sturmlechner from comment #2)
> kdenlive does not directly depend on protobuf, it will be a crash caused by
> something - opencv? - down the line:
> 
> > * dependency graph for kde-apps/kdenlive
> >  `--  kde-apps/kdenlive
> >    `--  media-libs/mlt
> >      `--  media-libs/opencv
> >       `--  dev-libs/protobuf
> >     `--  media-plugins/frei0r-plugins
> >      `--  media-libs/opencv
> >       `--  dev-libs/protobuf
> 
> You could make another test by temporarily removing
> media-plugins/frei0r-plugins, in order to narrow it down to mlt[opencv]

It begins to start for me with media-plugins/frei0r-plugins temporarily removed.
Comment 7 Andreas Sturmlechner gentoo-dev 2023-12-16 08:30:43 UTC
Can you please provide more information about your configuration? See above comments.

In addition: do you have media-libs/mlt[opencv] enabled or not?
Comment 8 Alexander B. Ustinov 2023-12-16 18:49:24 UTC
(In reply to Andreas Sturmlechner from comment #7)
> Can you please provide more information about your configuration? See above
> comments.
> 
> In addition: do you have media-libs/mlt[opencv] enabled or not?

 ACCEPT_KEYWORDS="~amd64"(In reply to Andreas Sturmlechner from comment #7)
> Can you please provide more information about your configuration? See above
> comments.
> 
> In addition: do you have media-libs/mlt[opencv] enabled or not?

I have an ~amd64-system. Last emerge -avuUD @world was about a week ago. media-libs/mlt[opencv] is enabled.

Below is the output of emerge --info (sorry, if it makes comment too verbose)

Portage 3.0.58 (python 3.11.7-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.38-r7, 6.6.2-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.6.2-gentoo-dist-x86_64-AMD_FX-tm-6300_Six-Core_Processor-with-glibc2.38
KiB Mem:    16274072 total,   2560332 free
KiB Swap:    8388604 total,   7363424 free
Timestamp of repository gentoo: Fri, 15 Dec 2023 18:02:04 +0000
Head commit of repository gentoo: 731bb75f22e0f6ee43f9a953eb09a35995e1110b

Timestamp of repository linuxunderground-overlay: Fri, 15 Dec 2023 07:02:40 +0000
Head commit of repository linuxunderground-overlay: b4c0af3485b752824fdc3da243148e90ae6bdf1b

Timestamp of repository pentoo: Fri, 15 Dec 2023 07:02:32 +0000
Head commit of repository pentoo: d3679b89862919bf2c18aa34158c0405ef6a4241

Head commit of repository phackerlay: a7360ddc4231864a4a30f72d950497f6ef0392f9

Timestamp of repository torbrowser: Fri, 15 Dec 2023 07:02:35 +0000
Head commit of repository torbrowser: ada9977ff69b5f76417db8d7f438c69f6a5ec4bd

sh bash 5.2_p21-r1
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p21-r1::gentoo
dev-lang/perl:             5.38.2::gentoo
dev-lang/python:           3.11.7::gentoo, 3.12.1::gentoo
dev-lang/rust:             1.72.0::gentoo
dev-lang/rust-bin:         1.74.1::gentoo
dev-util/cmake:            3.28.0::gentoo
dev-util/meson:            1.3.0-r2::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.52.1::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20231014::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r7::gentoo
Repositories:

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

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

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

phackerlay
    location: /var/db/repos/phackerlay
    sync-type: git
    sync-uri: https://gitlab.phys-el.ru/gentoo/phackerlay.git
    masters: gentoo
    volatile: False

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

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/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/php/apache2-php8.3/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
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 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="https://mirror.yandex.ru/gentoo-distfiles/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j6 -l5"
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 alsa amd64 bash-completion bluetooth bzip2 cairo cdda cdr cli crypt cups dbus djvu dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gnome-keyring gpm gtk gui heif iconv icu ipv6 jpeg keyring lcms libnotify libtirpc lto mad mkv mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf pgo pipewire png policykit ppds pulseaudio qt5 readline screencast sdl seccomp snmp sound spell split-usr ssl startup-notification svg test-rust theora tiff truetype udev udisks unicode upower usb vorbis wayland webm webp wxwidgets x264 x265 xattr xcb xft xinerama xml xps xv xvid zeroconf zlib" 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="mmx mmxext sse sse2 aes avx f16c fma3 fma4 pclmul popcnt sse3 sse4_1 sse4_2 sse4a ssse3 xop" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="ru en" 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="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" SANE_BACKENDS="net" VIDEO_CARDS="radeon radeonsi" 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, 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, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 9 Andreas Sturmlechner gentoo-dev 2023-12-16 18:50:33 UTC
I'm sorry but this is frustrating. Don't you know how to query installed package versions?
Comment 10 Alexander B. Ustinov 2023-12-16 19:19:59 UTC
(In reply to Andreas Sturmlechner from comment #9)
> I'm sorry but this is frustrating. Don't you know how to query installed
> package versions?

dev-libs/protobuf-23.3-r2
kde-apps/kdenlive-23.08.4
media-libs/mlt-7.22.0
media-plugins/frei0r-plugins-1.8.0
media-libs/opencv-4.8.1

kdenlive console output when frei0r-plugins are present:

Could not detect package type, probably default? App dir is "/usr/bin"
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1702754212.399731   17733 descriptor_database.cc:656] File already exists in database: versions.proto
F0000 00:00:1702754212.399962   17733 descriptor.cc:1995] Check failed: GeneratedDatabase()->Add(encoded_file_descriptor, size)
*** Check failure stack trace: ***
Aborted
Comment 11 Alexander B. Ustinov 2023-12-16 19:21:23 UTC
And GDB trace with no debug compiled in

Thread 1 "kdenlive" received signal SIGABRT, Aborted.
0x00007ffff48b1acc in ?? () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff48b1acc in ?? () from /lib64/libc.so.6
#1  0x00007ffff48634f2 in raise () from /lib64/libc.so.6
#2  0x00007ffff484c4ed in abort () from /lib64/libc.so.6
#3  0x00007fffcc5b1712 in absl::lts_20230802::log_internal::LogMessage::FailWithoutStackTrace() ()
   from /usr/lib64/libabsl_log_internal_message.so.2308.0.0
#4  0x00007fffcc5b1a85 in absl::lts_20230802::log_internal::LogMessage::Die() ()
   from /usr/lib64/libabsl_log_internal_message.so.2308.0.0
#5  0x00007fffcc5b1e39 in absl::lts_20230802::log_internal::LogMessageFatal::~LogMessageFatal() ()
   from /usr/lib64/libabsl_log_internal_message.so.2308.0.0
#6  0x00007fffb0c8db46 in ?? ()
   from /usr/lib64/libprotobuf.so.23.3.0
#7  0x00007fffb0d8a2fd in ?? ()
   from /usr/lib64/libprotobuf.so.23.3.0
#8  0x00007fffb12b8ab7 in ?? ()
   from /usr/lib64/libopencv_dnn.so.408
#9  0x00007ffff7fcfe7e in ?? () from /lib64/ld-linux-x86-64.so.2
#10 0x00007ffff7fcff64 in ?? () from /lib64/ld-linux-x86-64.so.2
#11 0x00007ffff7fcc516 in _dl_catch_exception ()
   from /lib64/ld-linux-x86-64.so.2
#12 0x00007ffff7fd66be in ?? () from /lib64/ld-linux-x86-64.so.2
#13 0x00007ffff7fcc489 in _dl_catch_exception ()
   from /lib64/ld-linux-x86-64.so.2
#14 0x00007ffff7fd6a38 in ?? () from /lib64/ld-linux-x86-64.so.2
#15 0x00007ffff48abf88 in ?? () from /lib64/libc.so.6
#16 0x00007ffff7fcc489 in _dl_catch_exception ()
   from /lib64/ld-linux-x86-64.so.2
#17 0x00007ffff7fcc5af in ?? () from /lib64/ld-linux-x86-64.so.2
#18 0x00007ffff48aba97 in ?? () from /lib64/libc.so.6
#19 0x00007ffff48ac039 in dlopen () from /lib64/libc.so.6
#20 0x00007fffcc6aad59 in mlt_register ()
   from /usr/lib64/mlt-7/libmltfrei0r.so
#21 0x00007ffff7d2b57c in mlt_repository_init ()
   from /usr/lib64/libmlt-7.so.7
#22 0x00007ffff7d13bd3 in mlt_factory_init ()
   from /usr/lib64/libmlt-7.so.7
#23 0x00007ffff7ce69ce in Mlt::Factory::init(char const*) ()
   from /usr/lib64/libmlt++-7.so.7
#24 0x0000555555c33a9a in ?? ()
#25 0x0000555555c33eab in ?? ()
#26 0x0000555555c230b7 in ?? ()
--Type <RET> for more, q to quit, c to continue without paging--
#27 0x0000555555bea6f1 in ?? ()
#28 0x00005555556321c6 in ?? ()
#29 0x00007ffff484dc8a in ?? () from /lib64/libc.so.6
#30 0x00007ffff484dd45 in __libc_start_main ()
   from /lib64/libc.so.6
#31 0x0000555555633b61 in ?? ()
Comment 12 Paul Zander 2023-12-16 20:19:18 UTC
Could you rebuild protobuf and opencv with debug symbols (-ggdb3)?
Comment 13 Alexander B. Ustinov 2023-12-17 09:42:04 UTC
(In reply to Paul Zander from comment #12)
> Could you rebuild protobuf and opencv with debug symbols (-ggdb3)?

Thread 1 "kdenlive" received signal SIGABRT, Aborted.
0x00007ffff48b1acc in ?? () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff48b1acc in ?? () from /lib64/libc.so.6
#1  0x00007ffff48634f2 in raise () from /lib64/libc.so.6
#2  0x00007ffff484c4ed in abort () from /lib64/libc.so.6
#3  0x00007fffcc5b1712 in absl::lts_20230802::log_internal::LogMessage::FailWithoutStackTrace ()
    at /var/tmp/portage/dev-cpp/abseil-cpp-20230802.0/work/abseil-cpp-20230802.0/absl/log/internal/log_message.cc:340
#4  0x00007fffcc5b1a85 in absl::lts_20230802::log_internal::LogMessage::Die (this=0x7fffffffb9b0)
    at /var/tmp/portage/dev-cpp/abseil-cpp-20230802.0/work/abseil-cpp-20230802.0/absl/log/internal/log_message.cc:497
#5  0x00007fffcc5b1e39 in absl::lts_20230802::log_internal::LogMessageFatal::~LogMessageFatal (
    this=this@entry=0x7fffffffb9b0, __in_chrg=<optimized out>)
    at /var/tmp/portage/dev-cpp/abseil-cpp-20230802.0/work/abseil-cpp-20230802.0/absl/log/internal/log_message.cc:597
#6  0x00007fffa8c8db46 in google::protobuf::DescriptorPool::InternalAddGeneratedFile (
    encoded_file_descriptor=<optimized out>, size=169)
    at /var/tmp/portage/dev-libs/protobuf-23.3-r2/work/protobuf-23.3/src/google/protobuf/descriptor.cc:1995
#7  0x00007fffa8d8a2fd in google::protobuf::(anonymous namespace)::AddDescriptorsImpl (
    table=0x7fffa95d3b60 <descriptor_table_versions_2eproto>)
    at /var/tmp/portage/dev-libs/protobuf-23.3-r2/work/protobuf-23.3/src/google/protobuf/generated_message_reflection.cc:3583
#8  0x00007fffa92b8ab7 in _sub_I_00102_1.1 () from /usr/lib64/libopencv_dnn.so.408
#9  0x00007ffff7fcfe7e in ?? () from /lib64/ld-linux-x86-64.so.2
#10 0x00007ffff7fcff64 in ?? () from /lib64/ld-linux-x86-64.so.2
#11 0x00007ffff7fcc516 in _dl_catch_exception () from /lib64/ld-linux-x86-64.so.2
#12 0x00007ffff7fd66be in ?? () from /lib64/ld-linux-x86-64.so.2
#13 0x00007ffff7fcc489 in _dl_catch_exception () from /lib64/ld-linux-x86-64.so.2
#14 0x00007ffff7fd6a38 in ?? () from /lib64/ld-linux-x86-64.so.2
#15 0x00007ffff48abf88 in ?? () from /lib64/libc.so.6
#16 0x00007ffff7fcc489 in _dl_catch_exception () from /lib64/ld-linux-x86-64.so.2
#17 0x00007ffff7fcc5af in ?? () from /lib64/ld-linux-x86-64.so.2
#18 0x00007ffff48aba97 in ?? () from /lib64/libc.so.6
#19 0x00007ffff48ac039 in dlopen () from /lib64/libc.so.6
#20 0x00007fffcc6aad59 in mlt_register (repository=<optimized out>)
    at /var/tmp/portage/media-libs/mlt-7.22.0/work/mlt-7.22.0/src/modules/frei0r/factory.c:549
#21 0x00007ffff7d2b57c in mlt_repository_init (directory=<optimized out>)
    at /var/tmp/portage/media-libs/mlt-7.22.0/work/mlt-7.22.0/src/framework/mlt_repository.c:157
#22 0x00007ffff7d13bd3 in mlt_factory_init (directory=0x7ffff7d3070b "/usr/lib64/mlt-7")
    at /var/tmp/portage/media-libs/mlt-7.22.0/work/mlt-7.22.0/src/framework/mlt_factory.c:210
#23 0x00007ffff7ce69ce in Mlt::Factory::init (directory=0x0)
    at /var/tmp/portage/media-libs/mlt-7.22.0/work/mlt-7.22.0/src/mlt++/MltFactory.cpp:31
#24 0x0000555555c33a9a in ?? ()
#25 0x0000555555c33eab in ?? ()
#26 0x0000555555c230b7 in ?? ()
#27 0x0000555555bea6f1 in ?? ()
#28 0x00005555556321c6 in ?? ()
#29 0x00007ffff484dc8a in ?? () from /lib64/libc.so.6
#30 0x00007ffff484dd45 in __libc_start_main () from /lib64/libc.so.6
#31 0x0000555555633b61 in ?? ()
Comment 14 Alexander B. Ustinov 2024-01-10 12:14:31 UTC
(In reply to Alexander B. Ustinov from comment #10)
> 
> dev-libs/protobuf-23.3-r2
> kde-apps/kdenlive-23.08.4
> media-libs/mlt-7.22.0
> media-plugins/frei0r-plugins-1.8.0
> media-libs/opencv-4.8.1
> 

The problem dissapears for me if opencv is rebuilt without lto, versions are same as in comment #10
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-10 12:23:16 UTC
https://github.com/opencv/opencv/issues/19020 makes me think that opencv isn't really LTO safe and we should just filter it there.
Comment 16 Larry the Git Cow gentoo-dev 2024-01-10 12:33:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffe7db9fea449121418607737c320c312bebb7f9

commit ffe7db9fea449121418607737c320c312bebb7f9
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-01-10 12:27:57 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-10 12:32:38 +0000

    media-libs/opencv: filter LTO
    
    Clearly unsafe, see e.g. https://github.com/opencv/opencv/issues/19020 too.
    
    Closes: https://bugs.gentoo.org/919101
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/opencv/opencv-4.8.1-r1.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Comment 17 Larry the Git Cow gentoo-dev 2024-01-10 13:10:20 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17175667216af9f238015556b76afca821eb5f1e

commit 17175667216af9f238015556b76afca821eb5f1e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-01-10 13:09:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-10 13:09:40 +0000

    media-libs/opencv: backport filter-lto to 4.8.0
    
    Backport ffe7db9fea449121418607737c320c312bebb7f9.
    
    Bug: https://bugs.gentoo.org/919101
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/opencv/metadata.xml                                    | 1 -
 .../opencv/{opencv-4.8.0-r2.ebuild => opencv-4.8.0-r3.ebuild}     | 8 +++++---
 2 files changed, 5 insertions(+), 4 deletions(-)