Bug 362757 - kactivitymanagerd crashes with segfault (usually during or shortly after login)
Summary: kactivitymanagerd crashes with segfault (usually during or shortly after login)
Status: RESOLVED UPSTREAM
Alias: None
Product: kactivitymanagerd
Classification: Plasma
Component: general (show other bugs)
Version: 5.6.3
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Ivan Čukić
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-06 16:10 UTC by Matthias Nagel
Modified: 2017-01-02 10:11 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Backtrace #1 (10.26 KB, text/plain)
2016-05-06 16:11 UTC, Matthias Nagel
Details
Backtrace #2 (9.49 KB, text/plain)
2016-05-06 16:12 UTC, Matthias Nagel
Details
Backtrace #3 (fresh and empty user profile) (10.29 KB, text/plain)
2016-05-06 16:13 UTC, Matthias Nagel
Details
Backtrace #4 (10.28 KB, text/plain)
2016-05-06 16:14 UTC, Matthias Nagel
Details
Backtrace #5 (29.99 KB, text/plain)
2016-12-04 17:13 UTC, Matthias Nagel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Nagel 2016-05-06 16:10:12 UTC
activitymanagerd 5.6.3 crashes with segmentation fault

Reproducible: Sometimes

Steps to Reproduce:
1. Login, wait and see if core dump is generated ;-)
Comment 1 Matthias Nagel 2016-05-06 16:11:41 UTC
Created attachment 98815 [details]
Backtrace #1
Comment 2 Matthias Nagel 2016-05-06 16:12:29 UTC
Created attachment 98816 [details]
Backtrace #2
Comment 3 Matthias Nagel 2016-05-06 16:13:39 UTC
Created attachment 98817 [details]
Backtrace #3 (fresh and empty user profile)

This backtrace was taken from a core dump that was generated during the first login of a freshly created user with an empty home directory.
Comment 4 Matthias Nagel 2016-05-06 16:14:05 UTC
Created attachment 98818 [details]
Backtrace #4
Comment 5 Ivan Čukić 2016-07-18 11:30:22 UTC
Something requests the activity manager to exit, and then it triggers a QSQL bug that leads to this crash.

Do you have anything strange in your session, does the session terminate when this happens? This crash is benign as far as the activity manager is concerned since it happens when it exists, and it keeps its data safe even in the case of crashes.

Now, I'm not saying that this should be ignored, we should try to see what exactly is going on :)

Do you have any XCB errors in your .xsession-errors file?
Comment 6 Ivan Čukić 2016-07-21 07:58:06 UTC
We have a few watchers here, is kamd crashing for you as well in the middle of the session, are you all using the same distro?
Comment 7 Matthias Nagel 2016-12-04 17:07:32 UTC
Anybody working on this? I still see the crashes. I will upload a new backtrace of a fresh core dump from this day.

No, no errors in .xsession-errors, fresh user home directory, no legacy stuff from KDE 4 or anything like this. Just a crashing activitymanager
Comment 8 Matthias Nagel 2016-12-04 17:13:51 UTC
Created attachment 102620 [details]
Backtrace #5

kde-plasma/kactivitymanagerd-5.7.5
Comment 9 Christoph Feck 2016-12-07 15:31:11 UTC
If QXcbConnection::processXcbEvents() causes an 'exit', then this needs to be fixed in Qt.

Please report this issue directly to Qt developers via https://bugreports.qt.io/
Comment 10 Christoph Feck 2016-12-07 15:45:46 UTC
I checked the source for QXcbConnection::processXcbEvents(), and it only exits, when the X11 connection broke. In other words, your X server caused the connection to terminate, not that I have any idea why it does that.
Comment 11 Matthias Nagel 2016-12-07 19:29:32 UTC
Given the new insight that the X server causes the exit, shall I still report upstream at https://bugreports.qt.io/ or report at http://bugs.freedesktop.org and file a bug against the X server?
Comment 12 Ivan Čukić 2017-01-02 10:11:32 UTC
Sadly, it is not easy to say whose fault it is - Xorg's, XCB library or Qt and I have no idea how you might debug the issue.

The kactivitymanagerd crash should go away when Qt people patch an unrelated bug - it will just exit as it should, but the issue that it exits at all because of lost X connection will remain.