Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-112258

QDBusConnection segmentation fault

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.7.0 FF
    • 5.15.8
    • D-Bus
    • None
    • NixOS KDE Plasma
    • Linux/X11
    • 21
    • 666ce51d4 (dev)
    • Foundation Sprint 84

    Description

      On NixOS unstable (KDE plasma 5.27.3, qt 5.15.8), but also on NixOS 22.11 (KDE plasma 5.26.5, qt 5.15.7), 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 also see the issue reported at KDE https://bugs.kde.org/show_bug.cgi?id=467696 and the issue reported on the nix repo https://github.com/NixOS/nixpkgs/issues/220168  
      The segfault seem to be the cause for an issue on latte-dock https://github.com/NixOS/nixpkgs/issues/212828

      Here is the relevant backtrace:

      Thread 2 "QDBusConnection" received signal SIGSEGV, Segmentation fault.
      [Switching to Thread 0x7ffff0a3c640 (LWP 470584)]
      0x00007ffff524b5fa in QObject::disconnect (sender=0x591fa0, signal=signal@entry=0x0, 
          receiver=receiver@entry=0x7fffec001c00, method=method@entry=0x0) at kernel/qobject.cpp:3141
      3141    kernel/qobject.cpp: No such file or directory.
      (gdb) bt
      #0  0x00007ffff524b5fa in QObject::disconnect (sender=0x591fa0, signal=signal@entry=0x0, 
          receiver=receiver@entry=0x7fffec001c00, method=method@entry=0x0) at kernel/qobject.cpp:3141
      #1  0x00007ffff5cc4f40 in QObject::disconnect (member=0x0, receiver=0x7fffec001c00, this=<optimized out>)
          at ../../include/QtCore/../../src/corelib/kernel/qobject.h:359
      #2  QDBusConnectionPrivate::closeConnection (this=this@entry=0x7fffec001c00) at qdbusintegrator.cpp:1162
      #3  0x00007ffff5cb9f40 in QDBusConnectionManager::run (
          this=0x7ffff5d24060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>)
          at qdbusconnection.cpp:189
      #4  0x00007ffff50b8814 in QThreadPrivate::start (
          arg=0x7ffff5d24060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>)
          at thread/qthread_unix.cpp:330
      #5  0x00007ffff4888e86 in start_thread (arg=<optimized out>) at pthread_create.c:442
      #6  0x00007ffff490fd30 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Attachments

        1. fail.sh
          0.3 kB
        2. pure.txt
          123 kB
        3. qt.patch
          8 kB
        4. with-breeze.txt
          102 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ievgenii.meshcheriakov Ievgenii Meshcheriakov
              aroun Aroun Baudouin
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes