When starting KMail from the frameworks branch, using Qt 5.4.2 (self-build, updated from Git last night) and KWindowSystem (git hash 9bb99d6c06e014c7fd202597aef90afa2eaa0d38), the application segfaults with the following backtrace: Program received signal SIGSEGV, Segmentation fault. 0x00007fffe2acc05c in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::data (this=0x8) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:135 135 return d; (gdb) bt #0 0x00007fffe2acc05c in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::data (this=0x8) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:135 #1 0x00007fffe2db7d89 in qGetPtrHelper<QScopedPointer<QObjectData> > (p=...) at ../../include/QtCore/../../src/corelib/global/qglobal.h:962 #2 0x00007fffe2db7f48 in QObject::d_func (this=0x0) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:110 #3 0x00007fffe2daea94 in QObject::thread (this=0x0) at kernel/qobject.cpp:1412 #4 0x00007fffe5ab3a7c in KWindowSystemStaticContainer::KWindowSystemStaticContainer (this=0x7fffe5cfc390 <(anonymous namespace)::Q_QGS_g_kwmInstanceContainer::innerFunction()::holder>) at /opt/kde/src/frameworks/kwindowsystem/src/kwindowsystem.cpp:52 #5 0x00007fffe5ab24d6 in (anonymous namespace)::Q_QGS_g_kwmInstanceContainer::Holder::Holder (this=0x7fffe5cfc390 <(anonymous namespace)::Q_QGS_g_kwmInstanceContainer::innerFunction()::holder>) at /opt/kde/src/frameworks/kwindowsystem/src/kwindowsystem.cpp:58 #6 0x00007fffe5ab2543 in (anonymous namespace)::Q_QGS_g_kwmInstanceContainer::innerFunction () at /opt/kde/src/frameworks/kwindowsystem/src/kwindowsystem.cpp:58 #7 0x00007fffe5ab3684 in QGlobalStatic<KWindowSystemStaticContainer, (* (anonymous namespace)::Q_QGS_g_kwmInstanceContainer::innerFunction), (* & (anonymous namespace)::Q_QGS_g_kwmInstanceContainer::guard)>::operator()(void) (this=0x7fffe5cfc380 <g_kwmInstanceContainer>) at /opt/qt5/qtbase/src/corelib/global/qglobalstatic.h:129 #8 0x00007fffe5ab29ba in KWindowSystem::d_func () at /opt/kde/src/frameworks/kwindowsystem/src/kwindowsystem.cpp:343 #9 0x00007fffe5ab34ea in KWindowSystem::allowExternalProcessWindowActivation (pid=-1) at /opt/kde/src/frameworks/kwindowsystem/src/kwindowsystem.cpp:639 #10 0x00007ffff7bd22f2 in KontactInterface::PimUniqueApplication::start (flags=...) at /opt/kde/src/kde/pim/kontactinterface/src/pimuniqueapplication.cpp:105 #11 0x00007ffff7bd20b7 in KontactInterface::PimUniqueApplication::start () at /opt/kde/src/kde/pim/kontactinterface/src/pimuniqueapplication.cpp:76 #12 0x00000000004038f7 in main (argc=<optimized out>, argv=<optimized out>) at /opt/kde/src/kdepim-unsplit/kmail/main.cpp:119 (gdb) Reproducible: Always
The interesting information from the PIM source is probably that /opt/kde/src/kde/pim/kontactinterface/src/pimuniqueapplication.cpp:105 is: KWindowSystem::allowExternalProcessWindowActivation(); Commenting this line out seems to be a workaround.
The call is probably unrelated, it's just the first call into KWindowSystem causing the crash.
oh and it's an awesome call: void KWindowSystemPrivateX11::allowExternalProcessWindowActivation(int pid) { // Normally supported by X11, but may depend on some window managers ? Q_UNUSED(pid) } as all other platforms currently don't have an implementation...
Dear Bug Submitter, This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond. Thank you for helping us make KDE software even better for everyone!
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!