Bug 379847 - Plasma crash at startup
Summary: Plasma crash at startup
Status: RESOLVED NOT A BUG
Alias: None
Product: ksmserver
Classification: Unmaintained
Component: general (show other bugs)
Version: 5.9.5
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Lubos Lunak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-15 12:27 UTC by Alexandr Paliy
Modified: 2017-06-27 19:10 UTC (History)
0 users

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


Attachments
xterm output after plasma crash (2.05 KB, text/x-log)
2017-05-15 12:27 UTC, Alexandr Paliy
Details
Installed versions of qt libs and kde packages (9.03 KB, text/plain)
2017-05-15 12:35 UTC, Alexandr Paliy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Paliy 2017-05-15 12:27:02 UTC
Created attachment 105555 [details]
xterm output after plasma crash

Gentoo ~amd64. X server works fine and I can start it with "startx" from a regular user. Then, I try to "startkde" from one of it's terminals. I see KDE loading splash screen, but then it fades away and in terminal I see several KCrash lines (attachment).

Then KDE crash reporter tool pops out, and here is info it provides:


Application: ksmserver (ksmserver), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fea8cfb2200 (LWP 2621))]

Thread 2 (Thread 0x7fea75e0c700 (LWP 2623)):
#0  0x00007fea8ca8b1dd in poll () from /lib64/libc.so.6
#1  0x00007fea813f071c in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fea813f082c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fea88629f3b in QEventDispatcherGlib::processEvents (this=0x7fea680008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fea885d00e2 in QEventLoop::exec (this=this@entry=0x7fea75e0bd50, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007fea88416dae in QThread::exec (this=this@entry=0x7fea8d15bd80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:507
#6  0x00007fea8d0d7a25 in QDBusConnectionManager::run (this=0x7fea8d15bd80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#7  0x00007fea8841c6cd in QThreadPrivate::start (arg=0x7fea8d15bd80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:368
#8  0x00007fea8310b3a4 in start_thread () from /lib64/libpthread.so.0
#9  0x00007fea8ca945af in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fea8cfb2200 (LWP 2621)):
[KCrash Handler]
#5  std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x6175747269763d43) at /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/g++-v6/bits/atomic_base.h:396
#6  QAtomicOps<int>::load<int> (_q_value=...) at /usr/include/qt5/QtCore/qatomic_cxx11.h:227
#7  QBasicAtomicInteger<int>::load (this=0x6175747269763d43) at /usr/include/qt5/QtCore/qbasicatomic.h:99
#8  QtPrivate::RefCount::ref (this=0x6175747269763d43) at /usr/include/qt5/QtCore/qrefcount.h:55
#9  QList<QString>::QList (this=this@entry=0x7ffc5354b570, l=...) at /usr/include/qt5/QtCore/qlist.h:805
#10 0x00007fea89c2c506 in QStringList::QStringList (this=0x7ffc5354b570) at /usr/include/qt5/QtCore/qstringlist.h:100
#11 KProcess::program (this=<optimized out>) at /var/tmp/portage/kde-frameworks/kcoreaddons-5.34.0/work/kcoreaddons-5.34.0/src/lib/io/kprocess.cpp:253
#12 0x00007fea8cd64871 in KSMServer::<lambda(int)>::operator() (exitCode=9, __closure=0x14ccc60) at /var/tmp/portage/kde-plasma/plasma-workspace-5.9.5.1-r1/work/plasma-workspace-5.9.5.1/ksmserver/startup.cpp:691
#13 QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<int>, void, KSMServer::slotAutoStart()::<lambda(int)> >::call (arg=<optimized out>, f=...) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:135
#14 QtPrivate::Functor<KSMServer::slotAutoStart()::<lambda(int)>, 1>::call<QtPrivate::List<int>, void> (arg=<optimized out>, f=...) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:192
#15 QtPrivate::QFunctorSlotObject<KSMServer::slotAutoStart()::<lambda(int)>, 1, QtPrivate::List<int>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1, this_=0x14ccc50, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/qt5/QtCore/qobject_impl.h:169
#16 0x00007fea885ff8f3 in QtPrivate::QSlotObjectBase::call (a=0x7ffc5354b740, r=0x14c9c40, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:101
#17 QMetaObject::activate (sender=sender@entry=0x14c9c40, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffc5354b740) at kernel/qobject.cpp:3723
#18 0x00007fea885ffe37 in QMetaObject::activate (sender=sender@entry=0x14c9c40, m=m@entry=0x7fea8882b1c0 <QProcess::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffc5354b740) at kernel/qobject.cpp:3602
#19 0x00007fea88516611 in QProcess::finished (this=this@entry=0x14c9c40, _t1=<optimized out>) at .moc/moc_qprocess.cpp:326
#20 0x00007fea8851d6bf in QProcessPrivate::_q_processDied (this=this@entry=0x1517df0) at io/qprocess.cpp:1178
#21 0x00007fea8856f704 in QProcessPrivate::waitForFinished (this=this@entry=0x1517df0, msecs=msecs@entry=30000) at io/qprocess_unix.cpp:895
#22 0x00007fea885172fb in QProcess::waitForFinished (this=this@entry=0x14c9c40, msecs=msecs@entry=30000) at io/qprocess.cpp:1922
#23 0x00007fea88517a2c in QProcess::~QProcess (this=0x14c9c40, __in_chrg=<optimized out>) at io/qprocess.cpp:1261
#24 0x00007fea89c2c259 in KProcess::~KProcess (this=0x14c9c40, __in_chrg=<optimized out>) at /var/tmp/portage/kde-frameworks/kcoreaddons-5.34.0/work/kcoreaddons-5.34.0/src/lib/io/kprocess.cpp:56
#25 0x00007fea88606334 in QObjectPrivate::deleteChildren (this=0x149e480) at kernel/qobject.cpp:1970
#26 0x00007fea886074ff in QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:1041
#27 0x00007fea8cd59ca9 in KSMServer::~KSMServer (this=0x14a61d0, __in_chrg=<optimized out>) at /var/tmp/portage/kde-plasma/plasma-workspace-5.9.5.1-r1/work/plasma-workspace-5.9.5.1/ksmserver/server.cpp:733
#28 0x00007fea8cd5643c in sighandler (sig=<optimized out>) at /var/tmp/portage/kde-plasma/plasma-workspace-5.9.5.1-r1/work/plasma-workspace-5.9.5.1/ksmserver/server.cpp:539
#29 <signal handler called>
#30 0x00007fea8ca8b1dd in poll () from /lib64/libc.so.6
#31 0x00007fea813f071c in ?? () from /usr/lib64/libglib-2.0.so.0
#32 0x00007fea813f082c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#33 0x00007fea88629f1f in QEventDispatcherGlib::processEvents (this=0x148e880, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#34 0x00007fea885d00e2 in QEventLoop::exec (this=this@entry=0x7ffc5354c150, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#35 0x00007fea885d8e0c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1261
#36 0x00007fea889236cc in QGuiApplication::exec () at kernel/qguiapplication.cpp:1633
#37 0x00007fea88e8f705 in QApplication::exec () at kernel/qapplication.cpp:2975
#38 0x00007fea8cd528f1 in kdemain (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-plasma/plasma-workspace-5.9.5.1-r1/work/plasma-workspace-5.9.5.1/ksmserver/main.cpp:351
#39 0x00007fea8c9cc210 in __libc_start_main () from /lib64/libc.so.6
#40 0x00000000004006ea in _start ()


Crash happens on a HP Envy dv7 laptop with hybrid graphics (intel+nvidia). I have PC with pretty much the same software configuration (qt, kde versions and compile flags) and everything just works.
Please tell me if you need any additional info about my system or about this bug.
Comment 1 Alexandr Paliy 2017-05-15 12:35:23 UTC
Created attachment 105556 [details]
Installed versions of qt libs and kde packages
Comment 2 Alexandr Paliy 2017-05-15 20:39:23 UTC
Installed MATE today, it works fine. That means, there are no problems with Xorg part, it's Qt or KDE who cause this.
Comment 3 Alexandr Paliy 2017-06-27 19:10:15 UTC
Problem was related to GCC version during building different parts of the system.
Gone after rebuilding the whole system with one compiler version.