Bug 348812

Summary: Crash in __strstr_sse2 after QSGRenderContext::initialize(QOpenGLContext*)
Product: [Plasma] plasmashell Reporter: Christian <alexandruch_91>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED UPSTREAM    
Severity: crash CC: 13555.werths, a.nolting, adrien1975, alex03, alex, apirogov, arne.henningsen, aroth, bhush94, bvermeul, caleb, carlsonj, cpigat242, davidsboogs, davispuh, devilbur, drdrnewman, Drezil1985, evaristo.torres, f1r31c3r, fthiagogv, giacof, gwenael.gilles, hackfleischkiechla, iarspider, jon_p_griffiths, kde, kde, kerrylange, lubos, maceli, mah1995.1415, maldun.finsterschreck, mborgnia, michaelcpinson, mike, nkukard, notmart, paul.couaillier, plasma-bugs, quazgar, rafalh85, rdieter, renan.t.inacio, thomas2967, wawalkenhorst
Priority: NOR Keywords: drkonqi
Version: 5.3.0   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=354972
https://bugs.kde.org/show_bug.cgi?id=360464
https://bugs.kde.org/show_bug.cgi?id=354277
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Sample hacky patch
glxinfo of K420 which crashes
New crash information added by DrKonqi

Description Christian 2015-06-07 05:26:20 UTC
Application: plasmashell (5.3.0)

Qt Version: 5.4.1
Operating System: Linux 4.0.4-303.fc22.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
This happen when i start on my session only, wierdly on my laptop doesn't happen.

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma (plasmashell), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fee46533900 (LWP 2677))]

Thread 19 (Thread 0x7fee3e366700 (LWP 2679)):
#0  0x00000030272f666d in poll () from /lib64/libc.so.6
#1  0x00000030b280a182 in _xcb_conn_wait () from /lib64/libxcb.so.1
#2  0x00000030b280bd07 in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007fee3fbe95e9 in QXcbEventReader::run() () from /usr/lib64/qt5/plugins/platforms/libqxcb.so
#4  0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#5  0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#6  0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 18 (Thread 0x7fee37df7700 (LWP 2681)):
#0  0x0000003026a125b5 in __tls_get_addr () from /lib64/ld-linux-x86-64.so.2
#1  0x000000303b49ee22 in QThreadData::current(bool) () from /lib64/libQt5Core.so.5
#2  0x000000303b6d5cba in postEventSourcePrepare(_GSource*, int*) () from /lib64/libQt5Core.so.5
#3  0x000000302924935d in g_main_context_prepare () from /lib64/libglib-2.0.so.0
#4  0x0000003029249ceb in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#5  0x0000003029249ecc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#6  0x000000303b6d675b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#7  0x000000303b67ca8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#8  0x000000303b49aff4 in QThread::exec() () from /lib64/libQt5Core.so.5
#9  0x00000030c62c3935 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#10 0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#11 0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#12 0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 17 (Thread 0x7fee2ffff700 (LWP 2682)):
#0  0x00000030272f666d in poll () from /lib64/libc.so.6
#1  0x0000003029249dbc in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#2  0x0000003029249ecc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x000000303b6d675b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x000000303b67ca8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x000000303b49aff4 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00000030c62c3935 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#7  0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#9  0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 16 (Thread 0x7fee2e1b3700 (LWP 2686)):
#0  0x00000030272f666d in poll () from /lib64/libc.so.6
#1  0x0000003029249dbc in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#2  0x0000003029249ecc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x000000303b6d675b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x000000303b67ca8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x000000303b49aff4 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00000030c62c3935 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#7  0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#9  0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 15 (Thread 0x7fee2d0d2700 (LWP 2687)):
#0  0x00000030292493a7 in g_main_context_prepare () from /lib64/libglib-2.0.so.0
#1  0x0000003029249ceb in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#2  0x0000003029249ecc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x000000303b6d675b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x000000303b67ca8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x000000303b49aff4 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00000030c62c3935 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#7  0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#9  0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 14 (Thread 0x7fee1ffcf700 (LWP 2688)):
#0  0x00000030272f666d in poll () from /lib64/libc.so.6
#1  0x0000003029249dbc in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#2  0x0000003029249ecc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x000000303b6d675b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x000000303b67ca8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x000000303b49aff4 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00000030c62c3935 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#7  0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#9  0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 13 (Thread 0x7fee1eece700 (LWP 2689)):
#0  0x000000302760d34b in pthread_getspecific () from /lib64/libpthread.so.0
#1  0x0000003029271550 in g_thread_self () from /lib64/libglib-2.0.so.0
#2  0x0000003029248d4c in g_main_context_acquire () from /lib64/libglib-2.0.so.0
#3  0x0000003029249c75 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#4  0x0000003029249ecc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#5  0x000000303b6d675b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x000000303b67ca8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#7  0x000000303b49aff4 in QThread::exec() () from /lib64/libQt5Core.so.5
#8  0x00000030c62c3935 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#9  0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#10 0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#11 0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 12 (Thread 0x7fee1ddcd700 (LWP 2690)):
#0  0x00000030272f666d in poll () from /lib64/libc.so.6
#1  0x0000003029249dbc in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#2  0x0000003029249ecc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x000000303b6d675b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x000000303b67ca8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x000000303b49aff4 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00000030c62c3935 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#7  0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#9  0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 11 (Thread 0x7fee1ccca700 (LWP 2691)):
#0  0x00000030272f22ed in read () from /lib64/libc.so.6
#1  0x00000030ba001f85 in ?? () from /lib64/tls/libnvidia-tls.so.349.16
#2  0x000000302928db00 in g_wakeup_acknowledge () from /lib64/libglib-2.0.so.0
#3  0x00000030292498b4 in g_main_context_check () from /lib64/libglib-2.0.so.0
#4  0x0000003029249d60 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#5  0x0000003029249ecc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#6  0x000000303b6d675b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#7  0x000000303b67ca8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#8  0x000000303b49aff4 in QThread::exec() () from /lib64/libQt5Core.so.5
#9  0x00000030c62c3935 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#10 0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#11 0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#12 0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 10 (Thread 0x7fee0b7ff700 (LWP 2692)):
#0  0x000000302928eec9 in g_mutex_lock () from /lib64/libglib-2.0.so.0
#1  0x0000003029248ea4 in g_main_context_release () from /lib64/libglib-2.0.so.0
#2  0x0000003029249d76 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#3  0x0000003029249ecc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#4  0x000000303b6d675b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x000000303b67ca8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x000000303b49aff4 in QThread::exec() () from /lib64/libQt5Core.so.5
#7  0x00000030c62c3935 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#8  0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#9  0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#10 0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 9 (Thread 0x7fee0a7fe700 (LWP 2693)):
#0  0x00000030272f666d in poll () from /lib64/libc.so.6
#1  0x0000003029249dbc in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#2  0x0000003029249ecc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x000000303b6d675b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x000000303b67ca8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x000000303b49aff4 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00000030c62c3935 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#7  0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#9  0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 8 (Thread 0x7fee097fd700 (LWP 2694)):
#0  0x00000030272f666d in poll () from /lib64/libc.so.6
#1  0x0000003029249dbc in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#2  0x0000003029249ecc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x000000303b6d675b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x000000303b67ca8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x000000303b49aff4 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00000030c62c3935 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#7  0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#9  0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7fedf7fff700 (LWP 2695)):
#0  0x0000003029249736 in g_main_context_check () from /lib64/libglib-2.0.so.0
#1  0x0000003029249d60 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#2  0x0000003029249ecc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x000000303b6d675b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x000000303b67ca8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x000000303b49aff4 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00000030c62c3935 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#7  0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#9  0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7fedf6df6700 (LWP 2696)):
#0  0x000000302760c530 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x000000304b7806d4 in QTWTF::TCMalloc_PageHeap::scavengerThread() () from /lib64/libQt5Script.so.5
#2  0x000000304b780719 in QTWTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /lib64/libQt5Script.so.5
#3  0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#4  0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7fedf65f5700 (LWP 2697)):
#0  0x000000302928eee4 in g_mutex_unlock () from /lib64/libglib-2.0.so.0
#1  0x0000003029249c6d in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#2  0x0000003029249ecc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x000000303b6d675b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x000000303b67ca8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x000000303b49aff4 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00000030c62c3935 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#7  0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#9  0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7fed6f033700 (LWP 2698)):
#0  0x000000302928eec9 in g_mutex_lock () from /lib64/libglib-2.0.so.0
#1  0x0000003029249237 in g_main_context_prepare () from /lib64/libglib-2.0.so.0
#2  0x0000003029249ceb in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#3  0x0000003029249ecc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#4  0x000000303b6d675b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x000000303b67ca8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x000000303b49aff4 in QThread::exec() () from /lib64/libQt5Core.so.5
#7  0x00000030c62c3935 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#8  0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#9  0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#10 0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7fed6d659700 (LWP 2699)):
#0  0x0000003029246e25 in g_source_iter_next () from /lib64/libglib-2.0.so.0
#1  0x000000302924972a in g_main_context_check () from /lib64/libglib-2.0.so.0
#2  0x0000003029249d60 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#3  0x0000003029249ecc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#4  0x000000303b6d675b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x000000303b67ca8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x000000303b49aff4 in QThread::exec() () from /lib64/libQt5Core.so.5
#7  0x00000030c6cf6ab6 in QQuickPixmapReader::run() () from /lib64/libQt5Quick.so.5
#8  0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#9  0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#10 0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fed63fff700 (LWP 2702)):
[KCrash Handler]
#5  0x00000030272a7e3d in __strstr_sse2_unaligned () from /lib64/libc.so.6
#6  0x00000030c6d46f5a in QSGRenderContext::initialize(QOpenGLContext*) () from /lib64/libQt5Quick.so.5
#7  0x00000030c6d69d09 in QSGRenderThread::run() () from /lib64/libQt5Quick.so.5
#8  0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#9  0x0000003027607555 in start_thread () from /lib64/libpthread.so.0
#10 0x0000003027301f3d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fee46533900 (LWP 2677)):
#0  0x000000302760c530 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x000000303b4a116b in QWaitCondition::wait(QMutex*, unsigned long) () from /lib64/libQt5Core.so.5
#2  0x00000030c6d65f2b in QSGThreadedRenderLoop::polishAndSync(QSGThreadedRenderLoop::Window*, bool) () from /lib64/libQt5Quick.so.5
#3  0x00000030c6d68a1f in QSGThreadedRenderLoop::handleExposure(QQuickWindow*) () from /lib64/libQt5Quick.so.5
#4  0x00000030c6d6902b in QSGThreadedRenderLoop::exposureChanged(QQuickWindow*) () from /lib64/libQt5Quick.so.5
#5  0x00000030b5cee105 in QWindow::event(QEvent*) () from /lib64/libQt5Gui.so.5
#6  0x00000030c6d99583 in QQuickWindow::event(QEvent*) () from /lib64/libQt5Quick.so.5
#7  0x000000000043df22 in DesktopView::event(QEvent*) ()
#8  0x00000030b65527cc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#9  0x00000030b6557e70 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#10 0x000000303b67f24b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#11 0x00000030b5ce6c96 in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () from /lib64/libQt5Gui.so.5
#12 0x00000030b5ce79ed in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /lib64/libQt5Gui.so.5
#13 0x00000030b5ccce68 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#14 0x00007fee3fc15ba0 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/qt5/plugins/platforms/libqxcb.so
#15 0x0000003029249a8a in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#16 0x0000003029249e20 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#17 0x0000003029249ecc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#18 0x000000303b6d673f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#19 0x000000303b67ca8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#20 0x000000303b6845fc in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#21 0x000000000042eb0f in main ()

Reported using DrKonqi
Comment 1 David Edmundson 2015-06-17 15:25:25 UTC
*** Bug 349271 has been marked as a duplicate of this bug. ***
Comment 2 David Edmundson 2015-06-22 00:55:38 UTC
*** Bug 349483 has been marked as a duplicate of this bug. ***
Comment 3 Marco Martin 2015-06-23 21:43:42 UTC
this may depend from graphics drivers
Thread 2 (Thread 0x7fed63fff700 (LWP 2702)): [KCrash Handler] #5 0x00000030272a7e3d in __strstr_sse2_unaligned () from /lib64/libc.so.6 #6 0x00000030c6d46f5a in QSGRenderContext::initialize(QOpenGLContext*) () from /lib64/libQt5Quick.so.5 #7 0x00000030c6d69d09 in QSGRenderThread::run() () from /lib64/libQt5Quick.so.5 #8 0x000000303b49fede in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5 #9 0x0000003027607555 in start_thread () from /lib64/libpthread.so.0 #10 0x0000003027301f3d in clone () from /lib64/libc.so.6
Comment 4 Dāvis 2015-08-09 12:43:21 UTC
Got same crash, but for ksplashqml, using Qt 5.5 and plasma-workspace from git master branch.

ksplashqml[2023]: Loading stage  "initial" 345
kernel: QSGRenderThread[2036]: segfault at 0 ip 00007f83d26c8c6e sp 00007f83acb54c50 error 4 in libc-2.21.so[7f83d2646000+199000]
systemd-coredump[2037]: Process 2023 (ksplashqml) of user 1000 dumped core.

#0  0x00007f83d26c8c6e in __strstr_sse2 () from /usr/lib/libc.so.6
#1  0x00007f83d444852a in QSGRenderContext::initialize(QOpenGLContext*) () from /usr/lib/libQt5Quick.so.5
#2  0x00007f83d446be69 in ?? () from /usr/lib/libQt5Quick.so.5
#3  0x00007f83d2e30a9e in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f83d178d354 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007f83d272dbfd in clone () from /usr/lib/libc.so.6

It's Qt bug, strstr is called with null pointer, look at

http://code.qt.io/cgit/qt/qtdeclarative.git/tree/src/quick/scenegraph/qsgcontext.cpp?h=5.5#n658

    const char *vendor = (const char *) funcs->glGetString(GL_VENDOR);
    if (strstr(vendor, "nouveau"))

funcs->glGetString() returns null pointer for some reason (Xorg/GPU driver failed or something), but anyway Qt should just abort and quit.
Comment 5 Dāvis 2015-08-09 13:20:00 UTC
(In reply to Dāvis from comment #4)
> Got same crash, but for ksplashqml, using Qt 5.5 and plasma-workspace from
> git master branch.
> 
> ksplashqml[2023]: Loading stage  "initial" 345
> kernel: QSGRenderThread[2036]: segfault at 0 ip 00007f83d26c8c6e sp
> 00007f83acb54c50 error 4 in libc-2.21.so[7f83d2646000+199000]
> systemd-coredump[2037]: Process 2023 (ksplashqml) of user 1000 dumped core.
> 
> #0  0x00007f83d26c8c6e in __strstr_sse2 () from /usr/lib/libc.so.6
> #1  0x00007f83d444852a in QSGRenderContext::initialize(QOpenGLContext*) ()
> from /usr/lib/libQt5Quick.so.5
> #2  0x00007f83d446be69 in ?? () from /usr/lib/libQt5Quick.so.5
> #3  0x00007f83d2e30a9e in ?? () from /usr/lib/libQt5Core.so.5
> #4  0x00007f83d178d354 in start_thread () from /usr/lib/libpthread.so.0
> #5  0x00007f83d272dbfd in clone () from /usr/lib/libc.so.6
> 
> It's Qt bug, strstr is called with null pointer, look at
> 
> http://code.qt.io/cgit/qt/qtdeclarative.git/tree/src/quick/scenegraph/
> qsgcontext.cpp?h=5.5#n658
> 
>     const char *vendor = (const char *) funcs->glGetString(GL_VENDOR);
>     if (strstr(vendor, "nouveau"))
> 
> funcs->glGetString() returns null pointer for some reason (Xorg/GPU driver
> failed or something), but anyway Qt should just abort and quit.

there's for plasmashell same too

#0  0x00007f1a54ca1528 in raise () from /usr/lib/libc.so.6
#1  0x00007f1a5b5ba066 in KCrash::defaultCrashHandler (sig=11) at /mnt/Dati2/Pirmkods/AUR/kcrash-git/src/kcrash/src/kcrash.cpp:409
#2  <signal handler called>
#3  0x00007f1a54cf0c6e in __strstr_sse2 () from /usr/lib/libc.so.6
#4  0x00007f1a5941852a in QSGRenderContext::initialize(QOpenGLContext*) () from /usr/lib/libQt5Quick.so.5
#5  0x00007f1a5943be69 in ?? () from /usr/lib/libQt5Quick.so.5
#6  0x00007f1a55458a9e in ?? () from /usr/lib/libQt5Core.so.5
#7  0x00007f1a54545354 in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007f1a54d55bfd in clone () from /usr/lib/libc.so.6
Comment 6 Bhushan Shah 2015-08-09 13:23:37 UTC
On Sun, Aug 9, 2015 at 6:50 PM, Dāvis <davispuh@gmail.com> wrote:
> there's for plasmashell same too
>
> #0  0x00007f1a54ca1528 in raise () from /usr/lib/libc.so.6
> #1  0x00007f1a5b5ba066 in KCrash::defaultCrashHandler (sig=11) at
> /mnt/Dati2/Pirmkods/AUR/kcrash-git/src/kcrash/src/kcrash.cpp:409
> #2  <signal handler called>
> #3  0x00007f1a54cf0c6e in __strstr_sse2 () from /usr/lib/libc.so.6
> #4  0x00007f1a5941852a in QSGRenderContext::initialize(QOpenGLContext*) () from
> /usr/lib/libQt5Quick.so.5
> #5  0x00007f1a5943be69 in ?? () from /usr/lib/libQt5Quick.so.5
> #6  0x00007f1a55458a9e in ?? () from /usr/lib/libQt5Core.so.5
> #7  0x00007f1a54545354 in start_thread () from /usr/lib/libpthread.so.0
> #8  0x00007f1a54d55bfd in clone () from /usr/lib/libc.so.6

Which CPU you do have? I *think* it is due to TSX bug... check if
microcode needs update
Comment 7 Dāvis 2015-08-09 14:06:33 UTC
(In reply to Bhushan Shah from comment #6)
> On Sun, Aug 9, 2015 at 6:50 PM, Dāvis <davispuh@gmail.com> wrote:
> > there's for plasmashell same too
> >
> > #0  0x00007f1a54ca1528 in raise () from /usr/lib/libc.so.6
> > #1  0x00007f1a5b5ba066 in KCrash::defaultCrashHandler (sig=11) at
> > /mnt/Dati2/Pirmkods/AUR/kcrash-git/src/kcrash/src/kcrash.cpp:409
> > #2  <signal handler called>
> > #3  0x00007f1a54cf0c6e in __strstr_sse2 () from /usr/lib/libc.so.6
> > #4  0x00007f1a5941852a in QSGRenderContext::initialize(QOpenGLContext*) () from
> > /usr/lib/libQt5Quick.so.5
> > #5  0x00007f1a5943be69 in ?? () from /usr/lib/libQt5Quick.so.5
> > #6  0x00007f1a55458a9e in ?? () from /usr/lib/libQt5Core.so.5
> > #7  0x00007f1a54545354 in start_thread () from /usr/lib/libpthread.so.0
> > #8  0x00007f1a54d55bfd in clone () from /usr/lib/libc.so.6
> 
> Which CPU you do have? I *think* it is due to TSX bug... check if
> microcode needs update

I very doubt that, because it crashes in __strstr_sse2 on
=> 0x00007f1a54cf0c6e <+14>:    movzx  eax,BYTE PTR [rdi]
$rdi is probably 0

anyway I've AMD FX(tm)-6100 Six-Core Processor
Linux 4.1.4
kernel: microcode: CPU0: patch_level=0x06000629
kernel: microcode: CPU1: patch_level=0x06000629
kernel: microcode: CPU2: patch_level=0x06000629
kernel: microcode: CPU3: patch_level=0x06000629
kernel: microcode: CPU4: patch_level=0x06000629
kernel: microcode: CPU5: patch_level=0x06000629
kernel: microcode: Microcode Update Driver: v2.00
Comment 8 David Edmundson 2015-08-14 00:46:23 UTC
*** Bug 351265 has been marked as a duplicate of this bug. ***
Comment 9 Bhushan Shah 2015-09-05 04:22:30 UTC
*** Bug 352107 has been marked as a duplicate of this bug. ***
Comment 10 Bhushan Shah 2015-09-11 09:18:52 UTC
*** Bug 352474 has been marked as a duplicate of this bug. ***
Comment 11 Jon Griffiths 2015-09-29 00:41:33 UTC
Also happening here, Fedora 64bit, Qt 5.5.

I can confirm that funcs->glGetString(GL_VENDOR) returns null and so strstr() crashes.

This seems to occur reliably after kwin has already crashed, which is currently happening on every login on my desktop machine. Can't we just check the returned string for null before doing the string compare rather than crashing?
Comment 12 Jon Griffiths 2015-09-29 00:50:50 UTC
Created attachment 94768 [details]
Sample hacky patch
Comment 13 Rex Dieter 2015-09-29 05:21:55 UTC
marking confirmed (i think we have enough dups to justify that)
Comment 14 David Edmundson 2015-10-03 21:38:44 UTC
*** Bug 353486 has been marked as a duplicate of this bug. ***
Comment 15 David Edmundson 2015-10-03 22:33:54 UTC
*** Bug 353429 has been marked as a duplicate of this bug. ***
Comment 16 David Edmundson 2015-10-03 22:37:22 UTC
@Jon patch looks sensible. Can you try and get it into Qt? 
Email me if you need help doing that.

Does that actually solve the problem? or just cause it to break later on?
Comment 17 Jon Griffiths 2015-10-08 11:31:36 UTC
> Does that actually solve the problem? or just cause it to break later on?

I'm unable to test it at present, unfortunately, I'm not setup to build/rebuild from source here in the immediate future. I did manage to attach gdb and called glGetError at the crash point, since glGetString had failed it should return an error code. it returned GL_NO_ERROR which is a) not helpful for diagnosing further and b) a (non-KDE/Qt) bug in and of itself AFAICS. However this makes it clear that these functions can fail, and that checking the GL error code before dereferencing is not enough to prevent it crashing - it must check the pointer as the patch does. So I think the patch or something very like it is the only thing the code can do, short of changing it and its callers to return/handle error codes.

> Can you try and get it into Qt? Email me if you need help doing that.

I'm unable to sync the git repos and submit through gerrit right now. Is there a mailing list to submit a patch to, or can someone from KDE adopt it? I happily disclaim all copyright interest as there is no creative element to the patch whatsoever.
Comment 18 David Edmundson 2015-10-21 14:28:34 UTC
*** Bug 354154 has been marked as a duplicate of this bug. ***
Comment 19 David Edmundson 2015-10-24 18:55:01 UTC
*** Bug 354305 has been marked as a duplicate of this bug. ***
Comment 20 Nigel Kukard 2015-10-28 18:43:45 UTC
The patch didn't work for me.

Geforce 660 GTX - crashes
Geforce 750 - no crash
Quadro K420 - crashes

With the patch, sometimes after a few minutes I see the bottom bar. Sometimes not, sometimes no bar. Sometimes the KDE menu has garbled text on it, but the text on the bar is ok.

I tried to change to Xrender to no avail.
Comment 21 Nigel Kukard 2015-10-28 18:55:21 UTC
Using the proprietary nvidia module doesn't make a difference.

The nouveau module does however log that the GPU hung once for me.

I attached my glxinfo output.
Comment 22 Nigel Kukard 2015-10-28 18:56:00 UTC
Created attachment 95192 [details]
glxinfo of K420 which crashes
Comment 23 David Edmundson 2015-11-08 20:20:14 UTC
*** Bug 354990 has been marked as a duplicate of this bug. ***
Comment 24 David Edmundson 2015-11-13 09:20:06 UTC
*** Bug 355272 has been marked as a duplicate of this bug. ***
Comment 25 maldun.finsterschreck 2015-11-15 09:00:21 UTC
Created attachment 95509 [details]
New crash information added by DrKonqi

plasmashell (5.4.3) using Qt 5.5.0

- What I was doing when the application crashed:
Plasma crashes regulary if popup windows are opened.
Especially in Anki and Firefox

-- Backtrace (Reduced):
#5  0x00007f517bfef4fd in __strstr_sse2_unaligned () at /lib64/libc.so.6
#6  0x00007f5181b3196a in QSGRenderContext::initialize(QOpenGLContext*) () at /lib64/libQt5Quick.so.5
#7  0x00007f5181b552b9 in QSGRenderThread::run() () at /lib64/libQt5Quick.so.5
#8  0x00007f517cc4a54e in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#9  0x00007f517ac58555 in start_thread () at /lib64/libpthread.so.0
Comment 26 David Edmundson 2015-12-27 15:05:50 UTC
*** Bug 357182 has been marked as a duplicate of this bug. ***
Comment 27 David Edmundson 2015-12-27 15:05:54 UTC
*** Bug 356907 has been marked as a duplicate of this bug. ***
Comment 28 FireIcer 2015-12-27 15:30:07 UTC
(In reply to David Edmundson from comment #18)
> *** Bug 354154 has been marked as a duplicate of this bug. ***

Aaa the kde crash trace from DrKonqi.

This is the crash i sort of fixed by doing the following while logged in as the user account that it crashed with:

 rm -rf ~/.cache
 rm -rf ~/.config/kwinrc
 kbuildsycoca5
Comment 29 Nigel Kukard 2015-12-27 15:31:05 UTC
My problems is I cannot even login :(
Comment 30 FireIcer 2015-12-27 15:36:17 UTC
(In reply to Nigel Kukard from comment #29)
> My problems is I cannot even login :(

Drop your runlevel and login to a virtual terminal or if you can switch VT using Ctl+Alt+F1 and login to your user account that way.
I presume you can't login because the sddm crashes and wont load up. If i am wrong just ignore me lol.
Comment 31 Dāvis 2015-12-28 04:50:41 UTC
I submit a patch to Qt  https://codereview.qt-project.org/144745 and with this patch it now crashes inside NVIDIA library so it seems to be GPU driver bug but not sure exactly how it's caused.
Comment 32 Nigel Kukard 2015-12-28 10:16:59 UTC
Just a sidenote, kubuntu-ci works fine for me
Comment 33 David Edmundson 2016-01-10 19:06:45 UTC
*** Bug 357719 has been marked as a duplicate of this bug. ***
Comment 34 Bas Vermeulen 2016-01-14 20:00:04 UTC
I get the same crash with the same backtrace, mostly on login. I am using the nvidia binary driver for my X.
Comment 35 David Edmundson 2016-01-23 18:28:45 UTC
*** Bug 358297 has been marked as a duplicate of this bug. ***
Comment 36 Bhushan Shah 2016-02-02 05:42:54 UTC
*** Bug 358883 has been marked as a duplicate of this bug. ***
Comment 37 Alexander Nolting 2016-02-02 15:24:47 UTC
I don't know if it's helpful but I had seen some strange behavior of applications (and the whole plasmashell) after unlocking the screen while the screen was switched of by power management. It looks like that sometimes the whole opengl buffer/memory/context is corrupt for the shell or only for one or two applications that are still open. For instance this morning was konsole open together with firefox, yast and dolphin. The screen were locked and background light seems to switched of for both internal screen at my laptop as well for the via DisplayPort/Thunderbold port connected external Samsung display. I moved the mouse and the xserver seems to be restarted 2 times while trying to wake up for the internal and then the external screen.

While this happened the internal screens shows a bit earlier content and I noticed again the same flickering for plasma and for a very short period of time I could see content from the desktop even while the screen was in locked mode and I had not entered any password at this time (due to another issue which klockscreen functionality, which randomly routes the focus of the password textbox while the xserver is waking up). And the app window of konsole was at this already damaged as it showed, formed in triangles, parts of the desktop background instead the bash content. And this application were also damage after I entered my password and the desktop were unlocked again. I needed to close konsole and restarting it to use it again.

And there is a similarity to the bug 344783 - https://bugs.kde.org/show_bug.cgi?id=344783 - which I opened after I moved to plasma5 last year. In this bug I had the feeling, that the issue handled in this bug only happened while the external screen was attached and I was at this point on kernel 4.2. The issue disappeared on 4.3 and now, after I updated a couple of days before to kernel 4.4.0-2, the issue appears again but not with these great effects.

Regards
Alex
Comment 38 David Edmundson 2016-02-06 15:18:35 UTC
*** Bug 359070 has been marked as a duplicate of this bug. ***
Comment 39 David Edmundson 2016-04-02 06:40:20 UTC
*** Bug 361302 has been marked as a duplicate of this bug. ***
Comment 40 David Edmundson 2016-04-02 06:40:30 UTC
*** Bug 360573 has been marked as a duplicate of this bug. ***
Comment 41 Marco Martin 2016-04-13 08:56:04 UTC
*** Bug 361553 has been marked as a duplicate of this bug. ***
Comment 42 Marco Martin 2016-05-04 10:54:38 UTC
*** Bug 362543 has been marked as a duplicate of this bug. ***
Comment 43 Rex Dieter 2016-05-22 01:34:44 UTC
*** Bug 363386 has been marked as a duplicate of this bug. ***
Comment 44 Rex Dieter 2016-05-22 01:36:36 UTC
*** Bug 363035 has been marked as a duplicate of this bug. ***
Comment 45 Rex Dieter 2016-05-22 01:39:02 UTC
*** Bug 362742 has been marked as a duplicate of this bug. ***
Comment 46 Christoph Feck 2016-06-13 15:18:52 UTC
*** Bug 363884 has been marked as a duplicate of this bug. ***
Comment 47 Christoph Feck 2016-06-13 15:19:22 UTC
*** Bug 364203 has been marked as a duplicate of this bug. ***
Comment 48 Drezil1985 2016-06-22 13:11:10 UTC
I can confirm this while using a GTX 1080 and propriatary nvidia-drivers.

hth.
Comment 49 David Edmundson 2016-06-22 17:04:05 UTC
*** Bug 364380 has been marked as a duplicate of this bug. ***
Comment 50 Rafi X 2016-07-11 23:04:53 UTC
The same on openSUSE 42.1 since may/june 2016.
1) PC with Nvidia 367.27 driver, GPU: GTX 680 (every time in random time while playing in ETS2 or ATS).
2) Laptop with Nvidia 8600 GS with Legacy Nvidia driver.

Application: plasmashell (5.5.5)
Qt Version: 5.5.1
Operating System: Linux 4.1.26-21-default x86_64
Distribution: "openSUSE Leap 42.1 (x86_64)"
The crash can be reproduced every time.
Comment 51 Marco Martin 2016-07-26 15:13:53 UTC
*** Bug 366041 has been marked as a duplicate of this bug. ***
Comment 52 David Edmundson 2016-09-08 14:25:51 UTC
*** Bug 368408 has been marked as a duplicate of this bug. ***
Comment 53 David Edmundson 2016-09-09 14:21:38 UTC
*** Bug 368457 has been marked as a duplicate of this bug. ***
Comment 54 David Edmundson 2016-09-11 23:18:56 UTC
*** Bug 366837 has been marked as a duplicate of this bug. ***
Comment 55 Marco Martin 2016-11-21 12:34:57 UTC
*** Bug 372448 has been marked as a duplicate of this bug. ***
Comment 56 Marco Martin 2016-12-12 09:51:37 UTC
*** Bug 373339 has been marked as a duplicate of this bug. ***
Comment 57 David Edmundson 2017-02-09 14:17:14 UTC
There doesn't seem to be any new reports after Qt >= 5.6.0.
I'm marking htis as closed, if you still see this error with this version of Qt or newer please reopen
Comment 58 Marco Martin 2017-03-15 14:28:34 UTC
*** Bug 377461 has been marked as a duplicate of this bug. ***