Bug 369088 - After upgrading from fedora 20 to 24 everything crashes on startup, KDE unusable
Summary: After upgrading from fedora 20 to 24 everything crashes on startup, KDE unusable
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.7.5
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
: 380444 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-09-19 23:05 UTC by kde.org
Modified: 2018-03-21 15:01 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
STDERR from startx (10.54 KB, text/plain)
2016-09-19 23:13 UTC, kde.org
Details
New crash information added by DrKonqi (9.30 KB, text/plain)
2017-09-07 02:03 UTC, kde.org
Details
New crash information added by DrKonqi (11.49 KB, text/plain)
2017-09-08 00:01 UTC, kde.org
Details
New crash information added by DrKonqi (9.88 KB, text/plain)
2018-03-21 15:01 UTC, kde.org
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kde.org 2016-09-19 23:05:03 UTC
Application: kwin_x11 (5.7.5)

Qt Version: 5.6.1
Frameworks Version: 5.26.0
Operating System: Linux 4.7.3-200.fc24.x86_64 x86_64
Distribution: "Fedora release 24 (Twenty Four)"

-- Information about the crash:
- What I was doing when the application crashed:

starting up KDE

I have logs from the startup but can't post now because KDE is broken, will attach later.

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7efd87cd0980 (LWP 6341))]

Thread 4 (Thread 0x7efd56af2700 (LWP 6437)):
#0  0x00007efd832f8bd0 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007efd89005bc4 in QTWTF::TCMalloc_PageHeap::scavengerThread() () at /lib64/libQt5Script.so.5
#2  0x00007efd89005c09 in  () at /lib64/libQt5Script.so.5
#3  0x00007efd832f35ca in start_thread () at /lib64/libpthread.so.0
#4  0x00007efd8044ef6d in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7efd57b9b700 (LWP 6424)):
#0  0x00007efd804451c3 in select () at /lib64/libc.so.6
#1  0x00007efd812536df in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) () at /lib64/libQt5Core.so.5
#2  0x00007efd81254dd4 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) () at /lib64/libQt5Core.so.5
#3  0x00007efd8125530a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#4  0x00007efd812065ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007efd81065343 in QThread::exec() () at /lib64/libQt5Core.so.5
#6  0x00007efd882458f5 in QQmlThreadPrivate::run() () at /lib64/libQt5Qml.so.5
#7  0x00007efd8106999a in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#8  0x00007efd832f35ca in start_thread () at /lib64/libpthread.so.0
#9  0x00007efd8044ef6d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7efd6607b700 (LWP 6404)):
#0  0x00007ffcb3406b84 in clock_gettime ()
#1  0x00007efd8045d4e6 in clock_gettime () at /lib64/libc.so.6
#2  0x00007efd81105ab3 in qt_gettime() () at /lib64/libQt5Core.so.5
#3  0x00007efd81255869 in QTimerInfoList::updateCurrentTime() () at /lib64/libQt5Core.so.5
#4  0x00007efd81254a66 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) () at /lib64/libQt5Core.so.5
#5  0x00007efd8125530a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#6  0x00007efd812065ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#7  0x00007efd81065343 in QThread::exec() () at /lib64/libQt5Core.so.5
#8  0x00007efd82e09559 in QDBusConnectionManager::run() () at /lib64/libQt5DBus.so.5
#9  0x00007efd8106999a in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#10 0x00007efd832f35ca in start_thread () at /lib64/libpthread.so.0
#11 0x00007efd8044ef6d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7efd87cd0980 (LWP 6341)):
[KCrash Handler]
#6  0x00007efd88f19d51 in QTJSC::ExecutablePool::systemAlloc(unsigned long) () at /lib64/libQt5Script.so.5
#7  0x00007efd88fa666f in QTJSC::JSGlobalData::JSGlobalData(bool) () at /lib64/libQt5Script.so.5
#8  0x00007efd88fa6af8 in QTJSC::JSGlobalData::create() () at /lib64/libQt5Script.so.5
#9  0x00007efd8904eb00 in QScriptEnginePrivate::QScriptEnginePrivate() () at /lib64/libQt5Script.so.5
#10 0x00007efd8904f46f in QScriptEngine::QScriptEngine(QObject*) () at /lib64/libQt5Script.so.5
#11 0x00007efd899fabf7 in KWin::Script::Script(int, QString, QString, QObject*) () at /lib64/libkwin.so.5
#12 0x00007efd899fb942 in KWin::Scripting::loadScript(QString const&, QString const&) () at /lib64/libkwin.so.5
#13 0x00007efd899fe7ac in KWin::Scripting::start() () at /lib64/libkwin.so.5
#14 0x00007efd89a62795 in KWin::Scripting::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) [clone .part.203] () at /lib64/libkwin.so.5
#15 0x00007efd8122fb92 in QMetaObject::activate(QObject*, int, int, void**) () at /lib64/libQt5Core.so.5
#16 0x00007efd81230bd9 in QObject::event(QEvent*) () at /lib64/libQt5Core.so.5
#17 0x00007efd81aa0c0c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#18 0x00007efd81aa60ef in QApplication::notify(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#19 0x00007efd812077aa in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#20 0x00007efd8120984f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib64/libQt5Core.so.5
#21 0x00007efd812551e2 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#22 0x00007efd684b37dd in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5XcbQpa.so.5
#23 0x00007efd812065ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#24 0x00007efd8120e17c in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#25 0x00007efd89d1d0e6 in kdemain () at /lib64/libkdeinit5_kwin_x11.so
#26 0x00007efd8036c731 in __libc_start_main () at /lib64/libc.so.6
#27 0x0000559430be9d09 in _start ()

Possible duplicates by query: bug 309889.

Reported using DrKonqi
Comment 1 kde.org 2016-09-19 23:13:01 UTC
Created attachment 101191 [details]
STDERR from startx
Comment 2 Martin Flöser 2016-10-04 07:23:12 UTC
The backtrace is unfortunately missing debug symbols. Please install debug packages for KWin and Qt and add a new backtrace.
Comment 3 Christoph Feck 2017-06-06 15:25:12 UTC
*** Bug 380444 has been marked as a duplicate of this bug. ***
Comment 4 Brian G. 2017-06-06 18:13:54 UTC
(In reply to Christoph Feck from comment #3)
> *** Bug 380444 has been marked as a duplicate of this bug. ***

Does that imply that I am missing debug symbols in the Bug 380444 bug report as well?

This was a different problem on a completely different machine (and a different distro).  I just want to make sure if I'm reporting bugs that they are useful information rather than spam.

Also, the machine that generated this Fedora bug report will likely not come back online any time soon.  It ended up having a hardware issue and purchasing the replacement hardware is not a high priority.  I may just do a data backup and junk the machine.

I would consider this older bug report closed for me unless the other person on CC has something to add.
Comment 5 Christoph Feck 2017-06-20 00:20:09 UTC
Brian, correct, your backtrace lacks even more debug symbols than this one.

If you can provide a backtrace from a recent version with KWin/Qt debug information (including line numbers), please add a comment.
Comment 6 kde.org 2017-09-07 02:03:44 UTC
Created attachment 107727 [details]
New crash information added by DrKonqi

kwin_x11 (5.10.5) using Qt 5.7.1

- What I was doing when the application crashed:

Starting up.  This time in fedora 26.

I've installed debuginfo packages this time.  Let me know if I'm missing any you think are critical.

-- Backtrace (Reduced):
#6  0x00007f7827c4fdb0 in QTJSC::ExecutablePool::systemAlloc(unsigned long) () at /lib64/libQt5Script.so.5
#7  0x00007f7827cdffda in QTJSC::JSGlobalData::JSGlobalData(bool) () at /lib64/libQt5Script.so.5
#8  0x00007f7827ce0428 in QTJSC::JSGlobalData::create() () at /lib64/libQt5Script.so.5
#9  0x00007f7827d8a9e0 in QScriptEnginePrivate::QScriptEnginePrivate() () at /lib64/libQt5Script.so.5
#10 0x00007f7827d8b5ff in QScriptEngine::QScriptEngine(QObject*) () at /lib64/libQt5Script.so.5
Comment 7 kde.org 2017-09-07 02:14:49 UTC
New backtrace.
Comment 8 Martin Flöser 2017-09-07 04:24:39 UTC
Sorry, but that backtrace isn't better.
Comment 9 kde.org 2017-09-07 05:09:09 UTC
It seems pretty complete to me.  What do you think is missing?
Comment 10 Martin Flöser 2017-09-07 15:07:42 UTC
(In reply to kde.org from comment #9)
> It seems pretty complete to me.  What do you think is missing?

It isn't. It's lacking debug symbols. We don't have code lines, we don't have variable values, etc. etc.
Comment 11 kde.org 2017-09-08 00:01:32 UTC
Created attachment 107741 [details]
New crash information added by DrKonqi

kwin_x11 (5.10.5) using Qt 5.7.1

- What I was doing when the application crashed:

starting up.

If these debug symbols are not enough please tell me the commands to use to install the debug symbols needed.

-- Backtrace (Reduced):
#6  0x00007fbc2f41fdb0 in QTJSC::FixedVMPoolAllocator::FixedVMPoolAllocator(unsigned long, unsigned long) (totalHeapSize=2147483648, commonSize=<optimized out>, this=0x55c2605b5050) at /usr/src/debug/qtscript-opensource-src-5.7.1/src/3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp:314
#7  0x00007fbc2f41fdb0 in QTJSC::ExecutablePool::systemAlloc(unsigned long) (size=size@entry=16384) at /usr/src/debug/qtscript-opensource-src-5.7.1/src/3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp:447
#8  0x00007fbc2f4affda in QTJSC::ExecutablePool::ExecutablePool(unsigned long) (n=16384, this=0x7fbc08596960) at /usr/src/debug/qtscript-opensource-src-5.7.1/src/3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocator.h:258
#9  0x00007fbc2f4affda in QTJSC::ExecutablePool::create(unsigned long) (n=16384) at /usr/src/debug/qtscript-opensource-src-5.7.1/src/3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocator.h:97
#10 0x00007fbc2f4affda in QTJSC::ExecutableAllocator::ExecutableAllocator() (this=0x7fbc085909c8) at /usr/src/debug/qtscript-opensource-src-5.7.1/src/3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocator.h:150
Comment 12 Martin Flöser 2017-09-08 13:12:06 UTC
That backtrace is better! We see that the crash happens in scripting module inside Qt. If you want you can report the bug against Qt, but please note that your Qt version is no longer maintained by Qt.

To workaround you can try to disable all scripts.
Comment 13 kde.org 2018-03-21 15:01:45 UTC
Created attachment 111540 [details]
New crash information added by DrKonqi

kwin_x11 (5.12.2) using Qt 5.9.4

- What I was doing when the application crashed:

starting up, just like before.

How do I disable qt scripts?

-- Backtrace (Reduced):
#6  0x00007f14d5223b20 in QTJSC::FixedVMPoolAllocator::FixedVMPoolAllocator(unsigned long, unsigned long) (totalHeapSize=2147483648, commonSize=<optimized out>, this=0x56094d8add50) at ../3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp:314
#7  0x00007f14d5223b20 in QTJSC::ExecutablePool::systemAlloc(unsigned long) (size=size@entry=16384) at ../3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp:447
#8  0x00007f14d52b2b03 in QTJSC::ExecutablePool::ExecutablePool(unsigned long) (n=16384, this=0x7f14a1cf6960) at ../3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocator.h:258
#9  0x00007f14d52b2b03 in QTJSC::ExecutablePool::create(unsigned long) (n=16384) at ../3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocator.h:97
#10 0x00007f14d52b2b03 in QTJSC::ExecutableAllocator::ExecutableAllocator() (this=0x7f14a1cf09c8) at ../3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocator.h:150