Details
-
Bug
-
Resolution: Out of scope
-
P1: Critical
-
None
-
4.8.5, 5.4.1
-
None
-
Fedora 20
Description
Some times after a while (seems to happen most often a few hours or days after updating KDE), applications will start hanging on startup. Debugging shows them stuck in the QSessionManager ctor, presumably while trying to talk to the session manager (in my case, ksmserver). It appears that ksmserver has gone out to lunch (see also https://bugs.kde.org/show_bug.cgi?id=333877), however QSessionManager should be more robust against this (e.g. by implementing a time-out in case the session manager is unresponsive).
Example stack trace:
#0 0x0000003866e0e860 in __read_nocancel () at ../sysdeps/unix/syscall-template.S:81 #1 0x000000386aa082e7 in read (__nbytes=8, __buf=0x718620, __fd=<optimized out>) at /usr/include/bits/unistd.h:44 #2 _IceTransSocketRead (ciptr=0x6d6500, buf=0x718620 "0\256p", size=8) at /usr/include/X11/Xtrans/Xtranssock.c:2116 #3 0x000000386aa0c7d8 in _IceRead (iceConn=iceConn@entry=0x6d57f0, nbytes=nbytes@entry=8, ptr=0x718620 "0\256p") at misc.c:228 #4 0x000000386aa108d0 in IceProcessMessages (iceConn=iceConn@entry=0x6d57f0, replyWait=replyWait@entry=0x0, replyReadyRet=replyReadyRet@entry=0x0) at process.c:196 #5 0x000000386aa06094 in IceOpenConnection ( networkIdsList=networkIdsList@entry=0x7fffffffe177 "local/unix:@/tmp/.ICE-unix/11626,unix/unix:/tmp/.ICE-unix/11626", context=context@entry=0x0, mustAuthenticate=mustAuthenticate@entry=0, majorOpcodeCheck=<optimized out>, errorLength=errorLength@entry=256, errorStringRet=errorStringRet@entry=0x7fffffffd410 "") at connect.c:258 #6 0x0000003b81c01e7f in SmcOpenConnection (networkIdsList=<optimized out>, context=0x0, xsmpMajorRev=<optimized out>, xsmpMinorRev=<optimized out>, mask=15, callbacks=0x7fffffffd3d0, previousId=0x6498b8 "", clientIdRet=0x7fffffffd3c8, errorLength=256, errorStringRet=0x7fffffffd410 "") at sm_client.c:135 #7 0x00000039fec357b5 in QSessionManager::QSessionManager (this=0x6e1c60, app=<optimized out>, id="", key=...) at kernel/qapplication_x11.cpp:5928 #8 0x00000039febcda31 in QApplicationPrivate::initialize (this=this@entry=0x653c10) at kernel/qapplication.cpp:1004