Bug#996744: kde-config-gtk-style: Version mismatch segfaults kded5 repeatedly

2021-10-19 Thread Patrick Häcker
Hello Bernhard,

yes, thanks, it probably is the same, although in my journal I have traps from
kded5 and not from kde5, but this is probably a copy-paste issue in #996726.
Unfortunately, it's not mentioned, what the fix was, but when I look at the
diffoscope of 4:5.23.0-2 and 4:5.23.0-3 it looks like 4:5.23.0-3 would solve
this issue, too, as the main change is to tighten the breaks
>Breaks: kwin-common (<< 4:5.22.90), kwin-decoration-oxygen (<< 4:5.22.90),
kwin-style-breeze (<< 4:5.22.90), kwin-wayland (<< 4:5.22.90), kwin-wayland-
backend-drm (<< 4:5.22.90), kwin-wayland-backend-fbdev (<< 4:5.22.90), kwin-
wayland-backend-virtual (<< 4:5.22.90), kwin-wayland-backend-wayland (<<
4:5.22.90), kwin-wayland-backend-x11 (<< 4:5.22.90), kwin-x11 (<< 4:5.22.90)

So the specific problem is solved. The question is, whether the implicitly
mentioned general problem should be solved, too. Even with this change you'd
get a mix of 5.21 and 5.23 when installing a specific kde-plasma-desktop
package (see my list above in 996744). In this case this mix seems to work,
however, do we really have the man-power to support these mixes in the future?
And do we think that's what the user wants? Even in #996726 it's mentioned,
that you should always upgrade the entire stack. Why don't we set the package
metadata to guarantee that for the user and use our time for fixing real
problems instead of package version mismatches?

Kind regards
Patrick


signature.asc
Description: This is a digitally signed message part.


Bug#996744: kde-config-gtk-style: Version mismatch segfaults kded5 repeatedly

2021-10-18 Thread Bernhard Übelacker

Hello Patrick,
I guess this is the same as described in bug #996726.

And I was able to workaround by installing
libkdecorations2-5v5_5.21.5-2_amd64.deb.

Kind regards,
Bernhard


Core was generated by `/usr/bin/kwin_x11 --replace'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x75d1f510 in KDecoration2::DecorationSettings::font 
(this=this@entry=0x556f0880) at /usr/include/c++/11/bits/unique_ptr.h:173
173 /usr/include/c++/11/bits/unique_ptr.h: Datei oder Verzeichnis nicht 
gefunden.
[Current thread is 1 (Thread 0x7047b9c0 (LWP 7026))]
(gdb) set width 0
(gdb) set pagination off
(gdb) bt
#0  0x75d1f510 in KDecoration2::DecorationSettings::font 
(this=this@entry=0x556f0880) at /usr/include/c++/11/bits/unique_ptr.h:173
#1  0x75d1f737 in operator() (__closure=) at 
./src/decorationsettings.cpp:19
#2  KDecoration2::DecorationSettings::DecorationSettings (this=0x556f0880, 
bridge=0x5573e230, parent=) at 
./src/decorationsettings.cpp:34
#3  0x77d68add in 
QSharedPointer::create
 () at /usr/include/c++/10/new:175
#4  KWin::Decoration::DecorationBridge::init (this=0x5573e230) at 
./decorations/decorationbridge.cpp:121
#5  KWin::Decoration::DecorationBridge::init (this=0x5573e230) at 
./decorations/decorationbridge.cpp:110
#6  0x77e6d5a7 in KWin::Workspace::Workspace (this=0x5574b450) at 
./workspace.cpp:187
#7  0x77dc6990 in KWin::Application::createWorkspace 
(this=this@entry=0x7fffe3a0) at ./main.cpp:272
#8  0xd41e in KWin::ApplicationX11::continueStartupWithScreens 
(this=0x7fffe3a0) at ./main_x11.cpp:272
...



Bug#996744: kde-config-gtk-style: Version mismatch segfaults kded5 repeatedly

2021-10-17 Thread Patrick Häcker
Package: kde-config-gtk-style
Version: 4:5.23.0-2
Severity: normal

Dear Maintainer,

I am not sure, whether this is a kded5 or kde-config-gtk-style packaging
problem, but both can currently be installed in an incompatible way leading
to repeatedly crashing kded5 (like 10 Dr.Konqi windows on login and some more
windows later) and a reduced user experience due to a missing kded5 process.

Being on testing and doing a
apt install kde-plasma-desktop kwin-addons -t unstable

updates the following packages to 5.23:
breeze-cursor-theme breeze kde-cli-tools-data kde-cli-tools
kde-style-breeze kdeplasma-addons-data kwin-addons kwin-common
kwin-data kwin-style-breeze kwin-wayland-backend-x11 kwin-wayland
kwin-x11 libcolorcorrect5 libkdecorations2-5v5 libkdecorations2private9
libkf5screen-bin libkf5screen7 libkf5sysguard-bin libkf5sysguard-data
libkfontinst5 libkfontinstui5 libksgrd9 libksignalplotter9
libksysguardformatter1 libksysguardsensorfaces1 libksysguardsensors1
libksysguardsystemstats1 libkwin4-effect-builtins1 libkwineffects13
libkwinglutils13 libkwinxrenderutils13 libkworkspace5-5
libnotificationmanager1 libplasma-geolocation-interface5
libprocesscore9 libprocessui9 libtaskmanager6abi1 libweather-ion7
milou plasma-dataengines-addons plasma-desktop-data plasma-desktop
plasma-runners-addons plasma-wallpapers-addons plasma-widgets-addons
plasma-workspace-data plasma-workspace-wayland plasma-workspace

However, the following packages stay on 5.21:
kde-config-gtk-style kde-config-sddm kde-style-oxygen-qt5 khotkeys-data
khotkeys kinfocenter kmenuedit kscreen ksshaskpass ksysguardd
kwin-decoration-oxygen kwrited libkdecorations2private8 liboxygenstyle5-5
liboxygenstyleconfig5-5 libpowerdevilcore2 libpowerdevilui5
oxygen-sounds plasma-pa plasma-theme-oxygen plasma-workspace-wallpapers
polkit-kde-agent-1 powerdevil-data powerdevil qml-module-org-kde-ksysguard
sddm-theme-breeze sddm-theme-debian-breeze systemsettings

That is not necessarily a problem (although probably not what the user
expects and a likely source of trouble). However, kded5=5.85.0-1 and
kde-config-gtk-style=4:5.23.0-2 lead to the described crash above within
plasma-workspace=4:5.23.0-3 (no crash with plasma-workspace=4:5.21.5-3).

The segfault occurs in the described package combination if ~/.config/kded5rc
contains
[Module-gtkconfig]
autoload=true
and there is no crash for autoload=false for the getconfig module.

Although I think the versioned dependency or break should be fixed, this is
the stacktrace for completeness:
Thread 1 "kded5" received signal SIGSEGV, Segmentation fault.
0x7fffeab92510 in KDecoration2::DecorationSettings::font() const () from 
/lib/x86_64-linux-gnu/libkdecorations2.so.5
(gdb) bt
#0  0x7fffeab92510 in KDecoration2::DecorationSettings::font() const () at 
/lib/x86_64-linux-gnu/libkdecorations2.so.5
#1  0x7fffeab92737 in 
KDecoration2::DecorationSettings::DecorationSettings(KDecoration2::DecorationBridge*,
 QObject*) ()
at /lib/x86_64-linux-gnu/libkdecorations2.so.5
#2  0x7fffeb24f3b2 in  () at 
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kded/gtkconfig.so
#3  0x7fffeb24e93e in  () at 
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kded/gtkconfig.so
#4  0x7fffeb24e278 in  () at 
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kded/gtkconfig.so
#5  0x7fffeb246ef5 in  () at 
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kded/gtkconfig.so
#6  0x7fffeb241e0b in GtkConfig::setWindowDecorationsAppearance() const ()
at /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kded/gtkconfig.so
#7  0x7fffeb242781 in GtkConfig::applyAllSettings() const () at 
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kded/gtkconfig.so
#8  0x7fffeb242ba4 in GtkConfig::GtkConfig(QObject*, QList 
const&) ()
at /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kded/gtkconfig.so
#9  0x7fffeb2434aa in  () at 
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kded/gtkconfig.so
#10 0x77006a52 in KPluginFactory::create(char const*, QWidget*, 
QObject*, QList const&, QString const&) ()
at /lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#11 0x5556019d in  ()
#12 0x55561119 in  ()
#13 0x555615a3 in  ()
#14 0xb121 in  ()
#15 0x766a8e4a in __libc_start_main (main=
0xab10, argc=1, argv=0x7fffdec8, init=, 
fini=, rtld_fini=, stack_end=0x7fffdeb8) at 
../csu/libc-start.c:314
#16 0xb53a in  ()

Kind regards
Patrick

-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-security
  APT policy: (900, 'stable-security'), (900, 'testing'), (800, 'stable'), 
(500, 'unstable-debug'), (400, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.14.0-2-amd64 (SMP w/4 CPU threads)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de:en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages kde-config-gtk-style depends on:
ii  libc6 2.32-4
ii