Bug 360245 - kded crashing with Qt 5.6.0-rc
Summary: kded crashing with Qt 5.6.0-rc
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kded
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-08 06:18 UTC by Bernd Steinhauser
Modified: 2018-03-12 08:56 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Output of coredumpctl (8.76 KB, text/x-log)
2016-03-08 06:19 UTC, Bernd Steinhauser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Steinhauser 2016-03-08 06:18:49 UTC
Since updating to Qt 5.6.0-rc, I get a reproducible crash in kded leading to misbehaviour of the desktop. See the attached log.

I've tried with two upstream Qt patches:
https://codereview.qt-project.org/gitweb?p=qt%2Fqtbase.git;a=commit;h=6729ec8d39a7f17308b7178bed23084e52bc0231
and
https://codereview.qt-project.org/gitweb?p=qt%2Fqtbase.git;a=commit;h=f7106a1efa98156c7f1276665c673000e6131c05

But afaics, it did not improve things.

Reproducible: Always
Comment 1 Bernd Steinhauser 2016-03-08 06:19:32 UTC
Created attachment 97757 [details]
Output of coredumpctl
Comment 2 Thomas Lübking 2016-03-08 09:22:03 UTC
Looks like powerdevil => polkit-qt is reading an invalid dbus reply.

Compare bug #246638 or bug #195087

Looking into the polkit-qt source
a) the error actually seems to be checked
b) to occur because it queries consolekt??

Disabling powerdevil in "kcmshell5 kded" will likely prevent the particular abort.

The problem is likely that the check is *not* whether the reply is QDBusMessage::ReplyMessage but whether it's not QDBusMessage::ErrorMessage (and Qt might have introduced more precise typings?) but *my* problem is that polkit-qt has no component.

@Bernd, can you try reverting the logics in https://quickgit.kde.org/?p=polkit-qt-1.git
Howeve, this might also have been fixed by other recent commits, so ensure to rebuild polkit-qt-1 against 5.6 anyway.
Comment 3 Bernd Steinhauser 2016-03-08 10:09:40 UTC
Thanks for that hint. building polkit-qt scm did actually fix kded and other things improved as well (i.e. kmix and akregator weren't showing up in the systray).

Maybe it would be a good idea to make a new release of polkit-qt targeting qt 5.6.
Comment 4 CnZhx 2018-03-12 08:56:03 UTC
Since this issue does not show up in newer versions, I now close it as "WORKSFORME". Please reopen or submit another report if you think otherwise.