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

            Bug ID: 467696
           Summary: `plasmashell -v` segmentation fault (core dumped)
    Classification: Plasma
           Product: plasmashell
           Version: 5.26.5
          Platform: NixOS
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: generic-crash
          Assignee: plasma-b...@kde.org
          Reporter: k...@b-vo.fr
  Target Milestone: 1.0

SUMMARY
On NixOS 22.11, and also on unstable (plasma 5.27.3), executing `plasmashell
-v` outputs the name of the program and the version, but then segfaults.
As a comparison, executing `kbroadcastnotification -v`, gives a similar output
but does not segfault.
Please see the issue reported on the nix repo
https://github.com/NixOS/nixpkgs/issues/220168#issuecomment-1475003453
The segfault seem to be the cause for an issue on latte-dock
https://github.com/NixOS/nixpkgs/issues/212828

STEPS TO REPRODUCE
If you are on NixOS:
1. Open konsole
2. `plasmashell -v` will segfault

If you don't have NixOS, a quick way to reproduce is:
1. Download the official NixOS virtualbox ova from
https://nixos.org/download.html#nixos-virtualbox
2. Import it in VirtualBox
3. Start the vm
4. Open konsole
5. `plasmashell -v` will segfault

OBSERVED RESULT
[:~] % plasmashell -v                                                           
plasmashell 5.26.5
zsh: segmentation fault (core dumped)  plasmashell -v

EXPECTED RESULT
No segfault

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: NixOS 22.11
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
This is the backtrace that I could produce. I am trying hard to get the
debugging symbols working but it seems they are not loading.
```
Thread 2 "QDBusConnection" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff076c640 (LWP 43533)]
0x00007ffff53bdc6c in QObject::disconnect(QObject const*, char const*, QObject
const*, char const*) () from
/nix/store/mcg2zb0kvb8vqlipmnyc0yyklmasg202-qtbase-5.15.7/lib/libQt5Core.so.5
(gdb) bt
#0  0x00007ffff53bdc6c in QObject::disconnect(QObject const*, char const*,
QObject const*, char const*) ()
   from
/nix/store/mcg2zb0kvb8vqlipmnyc0yyklmasg202-qtbase-5.15.7/lib/libQt5Core.so.5
#1  0x00007ffff5d14608 in ?? ()
   from
/nix/store/mcg2zb0kvb8vqlipmnyc0yyklmasg202-qtbase-5.15.7/lib/libQt5DBus.so.5
#2  0x00007ffff5d06568 in ?? ()
   from
/nix/store/mcg2zb0kvb8vqlipmnyc0yyklmasg202-qtbase-5.15.7/lib/libQt5DBus.so.5
#3  0x00007ffff5199e41 in ?? ()
   from
/nix/store/mcg2zb0kvb8vqlipmnyc0yyklmasg202-qtbase-5.15.7/lib/libQt5Core.so.5
#4  0x00007ffff4c33e86 in start_thread (arg=<optimized out>) at
pthread_create.c:442
#5  0x00007ffff4cbad70 in clone3 () at
../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
```
This is the relevant `dbus-monitor` output:
```
method call time=1679500202.855109 sender=:1.214 ->
destination=org.freedesktop.DBus serial=1 path=/org/freedesktop/DBus;
interface=org.freedesktop.DBus; member=Hello
method return time=1679500202.855125 sender=org.freedesktop.DBus ->
destination=:1.214 serial=1 reply_serial=1
   string ":1.214"
signal time=1679500202.855132 sender=org.freedesktop.DBus -> destination=(null
destination) serial=185 path=/org/freedesktop/DBus;
interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.214"
   string ""
   string ":1.214"
signal time=1679500202.855154 sender=org.freedesktop.DBus -> destination=:1.214
serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus;
member=NameAcquired
   string ":1.214"
method call time=1679500202.855475 sender=:1.214 ->
destination=org.freedesktop.portal.Desktop serial=2
path=/org/freedesktop/portal/desktop;
interface=org.freedesktop.DBus.Properties; member=Get
   string "org.freedesktop.portal.Screenshot"
   string "version"
method return time=1679500202.855735 sender=:1.4 -> destination=:1.214
serial=362 reply_serial=2
   variant       uint32 2
method call time=1679500202.995686 sender=:1.214 ->
destination=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus;
interface=org.freedesktop.DBus; member=AddMatch
   string
"type='signal',path='/plasmashellrc',interface='org.kde.kconfig.notify',member='ConfigChanged'"
method call time=1679500202.995812 sender=:1.214 ->
destination=org.freedesktop.DBus serial=4 path=/org/freedesktop/DBus;
interface=org.freedesktop.DBus; member=AddMatch
   string
"type='signal',path='/kdeglobals',interface='org.kde.kconfig.notify',member='ConfigChanged'"
method call time=1679500202.996948 sender=:1.214 ->
destination=org.freedesktop.DBus serial=5 path=/org/freedesktop/DBus;
interface=org.freedesktop.DBus; member=AddMatch
   string
"type='signal',path='/BreezeStyle',interface='org.kde.Breeze.Style',member='reparseConfiguration'"
method call time=1679500202.996996 sender=:1.214 ->
destination=org.freedesktop.DBus serial=6 path=/org/freedesktop/DBus;
interface=org.freedesktop.DBus; member=AddMatch
   string
"type='signal',path='/BreezeDecoration',interface='org.kde.Breeze.Style',member='reparseConfiguration'"
method call time=1679500202.997079 sender=:1.214 ->
destination=org.freedesktop.DBus serial=7 path=/org/freedesktop/DBus;
interface=org.freedesktop.DBus; member=AddMatch
   string
"type='signal',path='/KGlobalSettings',interface='org.kde.KGlobalSettings',member='notifyChange'"
method call time=1679500202.997089 sender=:1.214 ->
destination=org.freedesktop.DBus serial=8 path=/org/freedesktop/DBus;
interface=org.freedesktop.DBus; member=AddMatch
   string
"type='signal',path='/KWin',interface='org.kde.KWin',member='reloadConfig'"
signal time=1679500203.003356 sender=org.freedesktop.DBus -> destination=:1.214
serial=5 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus;
member=NameLost
   string ":1.214"
signal time=1679500203.003369 sender=org.freedesktop.DBus -> destination=(null
destination) serial=186 path=/org/freedesktop/DBus;
interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.214"
   string ":1.214"
   string ""
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to