Uploaded image for project: 'Qt Automotive Suite'
  1. Qt Automotive Suite
  2. AUTOSUITE-1641

Crash due to libdbus abort

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P0: Blocker
    • Resolution: Done
    • Affects Version/s: 5.12.8
    • Fix Version/s: None
    • Component/s: Qt Application Manager
    • Labels:
      None
    • Platform/s:
      Linux/Wayland
    • Commits:
      ba7ba4cfa25eee93d4d7e76862e434b338b9d90a (qt/qtapplicationmanager/dev) 4b8c7ecc3da63eb96d1ffb47c76b500b4038e402 (qt/qtapplicationmanager/5.15) 5309c184f0b91bc6a03c8e1ca7b83261b63a5f1b (qt/qtapplicationmanager/5.12)

      Description

      Certain dbus calls onĀ /ApplicationInterface from with an application cause sysui to crash due to abort in libdbus.

      Assume following called in a programmatic manner from with an application of runtime 'qml' (probably the same for 'native'), it would lead to a sysui crash

       dbus-send --peer="unix:path=/tmp/dbus-qtam/dbus-qtam-<HASHID>" --type=method_call --print-reply "/ApplicationInterface" "org.freedesktop.DBus.Properties.GetAll" string:"io.qt.ApplicationManager.ApplicationInterface"

      here the backtrace:

      [default] QDBusMarshaller: type `std::nullptr_t' (51) is not registered with D-BUS. Use qDBusRegisterMetaType to register it [unknown:0]
       [] *** process /opt/qt-5.12/bin/appman (543) crashed *** [unknown:0]
       [] > why: uncaught signal 6 (Aborted) [unknown:0]
       [] > where: main thread, TID: 543, pthread ID: 0x7fb335e000 [unknown:0]
       [] > backtrace: [unknown:0]
       [] 1: /opt/qt-5.12/bin/appman(+0x1763e4) [0x5581cb03e4] [unknown:0]
       [] 2: /opt/qt-5.12/bin/appman(+0x17644c) [0x5581cb044c] [unknown:0]
       [] 3: /opt/qt-5.12/bin/appman(+0x174860) [0x5581cae860] [unknown:0]
       [] 4: __kernel_rt_sigreturn [+0] [unknown:0]
       [] 5: gsignal [+0x9c] [unknown:0]
       [] 6: abort [+0x124] [unknown:0]
       [] 7: /usr/lib/libdbus-1.so.3(+0x3d03c) [0x7fb531503c] [unknown:0]
       [] 8: _dbus_strdup [+0] [unknown:0]
       [] 9: /usr/lib/libdbus-1.so.3(+0x1d9f0) [0x7fb52f59f0] [unknown:0]
       [] 10: _dbus_type_writer_unrecurse [+0xc4] [unknown:0]
       [] 11: dbus_message_iter_close_container [+0x134] [unknown:0]
       [] 12: /usr/lib/libQt5DBus.so.5(+0x61590) [0x7fb60c5590] [unknown:0]
       [] 13: /usr/lib/libQt5DBus.so.5(+0x61624) [0x7fb60c5624] [unknown:0]
       [] 14: /usr/lib/libQt5DBus.so.5(+0x6180c) [0x7fb60c580c] [unknown:0]
       [] 15: /usr/lib/libQt5DBus.so.5(+0x633fc) [0x7fb60c73fc] [unknown:0]
       [] 16: /usr/lib/libQt5DBus.so.5(+0x65980) [0x7fb60c9980] [unknown:0]
       [] 17: QDBusArgument::operator<<(QDBusVariant const&) [+0x2c] [unknown:0]
       [] 18: /usr/lib/libQt5DBus.so.5(+0x6b3d8) [0x7fb60cf3d8] [unknown:0]
       [] 19: QDBusMetaType::marshall(QDBusArgument&, int, void const*) [+0x1cc] [unknown:0]
       [] 20: /usr/lib/libQt5DBus.so.5(+0x61800) [0x7fb60c5800] [unknown:0]
       [] 21: /usr/lib/libQt5DBus.so.5(+0x633fc) [0x7fb60c73fc] [unknown:0]
       [] 22: /usr/lib/libQt5DBus.so.5(+0x64058) [0x7fb60c8058] [unknown:0]
       [] 23: /usr/lib/libQt5DBus.so.5(+0x307b4) [0x7fb60947b4] [unknown:0]
       [] 24: /usr/lib/libQt5DBus.so.5(+0x20354) [0x7fb6084354] [unknown:0]
       [] 25: /usr/lib/libQt5DBus.so.5(+0x23868) [0x7fb6087868] [unknown:0]
       [] 26: /usr/lib/libQt5DBus.so.5(+0x290dc) [0x7fb608d0dc] [unknown:0]
       [] 27: /usr/lib/libQt5DBus.so.5(+0x2b874) [0x7fb608f874] [unknown:0]
       [] 28: QObject::event(QEvent*) [+0x248] [unknown:0]
       [] 29: QCoreApplication::notifyInternal2(QObject*, QEvent*) [+0x134] [unknown:0]
       [] 30: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) [+0x300] [unknown:0]
       [] 31: /usr/lib/libQt5Core.so.5(+0x2ff9c8) [0x7fb5d8d9c8] [unknown:0]
       [] 32: g_main_context_dispatch [+0x284] [unknown:0]
       [] 33: /usr/lib/libglib-2.0.so.0(+0x4d298) [0x7fb4dc1298] [unknown:0]
       [] 34: g_main_context_iteration [+0x34] [unknown:0]
       [] 35: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) [+0x50] [unknown:0]
       [] 36: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) [+0x10c] [unknown:0]
       [] 37: QCoreApplication::exec() [+0xa0] [unknown:0]
       [] 38: main [+0x1b8] [unknown:0]
       [] 39: __libc_start_main [+0xdc] [unknown:0]
       [] 40: /opt/qt-5.12/bin/appman(+0x3b18c) [0x5581b7518c] [unknown:0]
       [] > qml stack: empty [unknown:0] 

        Attachments

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

          Activity

            People

            Assignee:
            rgriebl Robert Griebl
            Reporter:
            roamer Mostafa Emami
            Votes:
            10 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes