Bug#1070687: systemsettings: received signal SIGSEGV, Segmentation fault

2024-05-20 Thread Bernhard Übelacker

On Tue, 07 May 2024 11:30:41 +0200 antonio  wrote:


Dear Maintainer,
when I try to add a online account (Systemsettings->Pesonalization->Online
Accounts->Add new account... button) I get this error:

Thread 1 "systemsettings" received signal SIGSEGV, Segmentation fault.
0x7fffc40f8765 in Accounts::Provider::~Provider() () from
/usr/lib/x86_64-linux-gnu/libaccounts-qt5.so.1

where:
libaccounts-qt5-1=1.17-1



Dear Maintainer,
I still can reproduce this with current Trixie/testing [1] [2].

The crash seems to happen because for some reason the member m_tags
contains an invalid pointer 0x1 [3].

With rr-debugger I could record such a crash and reverse execute to
where m_tags got overwritten with this 0x1 [4].

Unfortunately I still cannot tell the exact reason,
because the crash no longer happens with a locally rebuilt
package libkaccounts2.

Therefore, might this be an ABI break?
And could be solved by a binNMU of libkaccounts2?

Kind regards,
Bernhard


[1]
#4  
#5  0x7f1fb43a2765 in Accounts::Provider::~Provider() () from 
/lib/x86_64-linux-gnu/libaccounts-qt5.so.1
#6  0x7f1fb43bf198 in ProvidersModel::data(QModelIndex const&, int) const 
() from /lib/x86_64-linux-gnu/libkaccounts.so.2
#7  0x7f1fce9d44f0 in ?? () from /lib/x86_64-linux-gnu/libQt5QmlModels.so.5


[2]
With debug symbols:
#4  
#5  std::__atomic_base::load (__m=std::memory_order_relaxed, this=) at 
/usr/include/c++/13/bits/atomic_base.h:503
#6  QAtomicOps::loadRelaxed (_q_value=) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qatomic_cxx11.h:239
#7  QBasicAtomicInteger::loadRelaxed (this=) at 
/usr/include/x86_64-linux-gnu/qt5/QtCore/qbasicatomic.h:107
#8  QtPrivate::RefCount::deref (this=) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrefcount.h:66
#9  QHash::~QHash (this=0x1, __in_chrg=) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:250
#10 QSet::~QSet (this=0x1, __in_chrg=) at 
/usr/include/x86_64-linux-gnu/qt5/QtCore/qset.h:53
#11 Accounts::Provider::~Provider (this=, __in_chrg=) at ./Accounts/provider.cpp:93
#12 0x7f1fb43bf198 in ProvidersModel::data (this=, index=..., 
role=) at ./src/lib/providersmodel.cpp:105
#13 0x7f1fce9d44f0 in QModelIndex::data (arole=261, this=0x7ffddfe29ce0) at 
/usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractitemmodel.h:460


[3]
93  delete m_tags;
(rr) print this
$1 = (Accounts::Provider * const) 0x7ffc316dca20
(rr) print *this
$2 = {m_provider = 0x55b1af209730, m_tags = 0x1}
(rr) print &this->m_tags
$4 = (QSet **) 0x7ffc316dca28


[4]
(rr) watch *0x7ffc316dca28
Hardware watchpoint 1: *0x7ffc316dca28
(rr) reverse-cont
Continuing.
Thread 1 hit Hardware watchpoint 1: *0x7ffc316dca28
Old value = 1
New value = 0
0x7f97bc1bc223 in ProvidersModel::data (this=0x55b1af23c460, index=..., 
role=261) at ./src/lib/providersmodel.cpp:86
86  data.setValue(!provider.isSingleAccount());
(rr) bt
#0  0x7f97bc1bc223 in ProvidersModel::data(QModelIndex const&, int) const 
(this=0x55b1af23c460, index=, role=261) at 
./src/lib/providersmodel.cpp:86
#1  0x7f97c8a6f4f0 in QModelIndex::data(int) const (arole=261, 
this=0x7ffc316dcac0) at 
/usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractitemmodel.h:460
#2  QQmlDMAbstractItemModelData::value(int) const (role=261, 
this=0x55b1af0f5610) at ./src/qmlmodels/qqmladaptormodel.cpp:414
#3  QQmlDMCachedModelData::metaCall(QMetaObject::Call, int, void**) (this=0x55b1af0f5610, 
call=, id=, arguments=0x7ffc316dcb70) at 
./src/qmlmodels/qqmladaptormodel.cpp:282
#4  0x7f97cada4fd6 in  () at /lib/x86_64-linux-gnu/libQt5Qml.so.5



Bug#1070687: systemsettings: received signal SIGSEGV, Segmentation fault

2024-05-07 Thread antonio
Package: systemsettings
Version: 4:5.27.10-1+b1
Severity: normal
X-Debbugs-Cc: antde...@gmail.com

Dear Maintainer,
when I try to add a online account (Systemsettings->Pesonalization->Online
Accounts->Add new account... button) I get this error:

Thread 1 "systemsettings" received signal SIGSEGV, Segmentation fault.
0x7fffc40f8765 in Accounts::Provider::~Provider() () from
/usr/lib/x86_64-linux-gnu/libaccounts-qt5.so.1

where:
libaccounts-qt5-1=1.17-1

console log:
$ systemsettings

file:///usr/lib/x86_64-linux-
gnu/qt5/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding
loop detected for property "width"
file:///usr/lib/x86_64-linux-
gnu/qt5/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding
loop detected for property "width"
kf.runner: KRunner plugin "installer" still uses a .desktop file ("plasma-
runner-installer.desktop"). Please port it to JSON metadata.
file:///usr/lib/x86_64-linux-
gnu/qt5/qml/org/kde/kirigami.2/BasicListItem.qml:288:18: QML QQuickItem*:
Binding loop detected for property "implicitWidth"
QQmlEngine::setContextForObject(): Object already has a QQmlContext
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
QQmlEngine::setContextForObject(): Object already has a QQmlContext
file:///usr/lib/x86_64-linux-
gnu/qt5/qml/org/kde/kirigami.2/templates/OverlaySheet.qml:603:17: QML
ColumnLayout: Binding loop detected for property "height"
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = systemsettings path = /usr/bin pid = 116311
KCrash: Arguments: /usr/bin/systemsettings
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi
QSocketNotifier: Invalid socket 16 and type 'Read', disabling...
QSocketNotifier: Invalid socket 11 and type 'Read', disabling...
kf5idletime_wayland: This plugin does not support polling idle time

Thanks,
Antonio


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (700, 'unstable'), (500, 'stable-updates'), (500, 
'stable-security'), (500, 'stable'), (100, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.8.9-1-liquorix-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE=it
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemsettings depends on:
ii  kio 5.115.0-3
ii  kpackagetool5   5.115.0-2
ii  libc6   2.38-8
ii  libkf5activities5   5.115.0-3
ii  libkf5auth5 5.115.0-2
ii  libkf5authcore5 5.115.0-2
ii  libkf5completion5   5.115.0-2
ii  libkf5configcore5   5.115.0-2
ii  libkf5configgui55.115.0-2
ii  libkf5configwidgets55.115.0-2
ii  libkf5coreaddons5   5.115.0-2
ii  libkf5crash55.115.0-2
ii  libkf5dbusaddons5   5.115.0-2
ii  libkf5i18n5 5.115.1-2
ii  libkf5iconthemes5   5.115.0-2
ii  libkf5itemmodels5   5.115.0-2
ii  libkf5itemviews55.115.0-2
ii  libkf5kcmutils5 5.115.0-2
ii  libkf5kiocore5  5.115.0-3
ii  libkf5kiogui5   5.115.0-3
ii  libkf5kiowidgets5   5.115.0-3
ii  libkf5kirigami2-5   5.115.0-2
ii  libkf5notifications55.115.0-2
ii  libkf5package5  5.115.0-2
ii  libkf5runner5   5.115.0-2
ii  libkf5service-bin   5.115.0-2
ii  libkf5service5  5.115.0-2
ii  libkf5widgetsaddons55.115.0-2
ii  libkf5windowsystem5 5.115.0-2
ii  libkf5xmlgui5   5.115.0-2
ii  libkworkspace5-54:5.27.10-3+b1
ii  libqt5core5t64  5.15.10+dfsg-7.2+b1
ii  libqt5gui5t64   5.15.10+dfsg-7.2+b1
ii  libqt5qml5  5.15.10+dfsg-2+b2
ii  libqt5quick55.15.10+dfsg-2+b2
ii  libqt5quickwidgets5 5.15.10+dfsg-2+b2
ii  libqt5widgets5t64   5.15.10+dfsg-7.2+b1
ii  libstdc++6  14-20240429-1
ii  qml-module-org-kde-kcm  5.115.0-3
ii  qml-module-org-kde-kcmutils 5.115.0-2
ii  qml-module-org-kde-kirigami25.115.0-2
ii  qml-module-org-kde-kitemmodels  5.115.0-2
ii  qml-module-org-kde-newstuff 5.115.0-2
ii  qml-module-qtquick-controls 5.15.10-2+b2
ii  qml-module-qtquick-layouts  5.15.10+dfsg-2+b2
ii  qml-module-qtquick-shapes   5.15.10+dfsg-2+b2
ii  qml-module-qtquick2 5.15.10+dfsg-2+b2

systemsettings recommends no packages.

systemsettings suggests no packages.

-- no debconf information