<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>331881</bug_id>
          
          <creation_ts>2014-03-08 17:14:29 +0000</creation_ts>
          <short_desc>Segfault crash of kwin after trying to run &quot;Hearthstone&quot; with play on linux and primus</short_desc>
          <delta_ts>2014-03-09 17:46:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>general</component>
          <version>4.11.7</version>
          <rep_platform>Fedora RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>299333</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>drkonqi</keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Tim Smeets">timsmeets</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1434428</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Smeets">timsmeets</who>
    <bug_when>2014-03-08 17:14:29 +0000</bug_when>
    <thetext>Application: kwin (4.11.7)
KDE Platform Version: 4.12.2
Qt Version: 4.8.5
Operating System: Linux 3.13.5-202.fc20.x86_64 x86_64
Distribution: &quot;Fedora release 20 (Heisenbug)&quot;

-- Information about the crash:
every time I try to run Hearthstone through play on linux and with bumblebee/primus enabled kwin will crash with as far as I got from the message a seg fault

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library &quot;/lib64/libthread_db.so.1&quot;.
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7ff7ac134900 (LWP 8685))]

Thread 2 (Thread 0x7ff79ef2b700 (LWP 8707)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000003bb698f09b in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x3bb6c8df00 &lt;QTWTF::pageheap_memory&gt;) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x0000003bb698f0d9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=&lt;optimized out&gt;) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x0000003b94807f33 in start_thread (arg=0x7ff79ef2b700) at pthread_create.c:309
#4  0x0000003b940f4ded in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7ff7ac134900 (LWP 8685)):
[KCrash Handler]
#6  0x00007ff71291a86f in brw_blorp_clear_color (brw=brw@entry=0x2a9c7d0, fb=fb@entry=0x2a7c730, partial_clear=partial_clear@entry=false) at brw_blorp_clear.cpp:451
#7  0x00007ff71291bd7e in brw_clear (ctx=0x2a9c7d0, mask=2) at brw_clear.c:234
#8  0x00000039fc8df279 in KWin::SceneOpenGL::paintBackground (this=this@entry=0x2bc8f70, region=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/scene_opengl.cpp:445
#9  0x00000039fc8cfa63 in KWin::Scene::paintGenericScreen (this=this@entry=0x2bc8f70, orig_mask=orig_mask@entry=32) at /usr/src/debug/kde-workspace-4.11.7/kwin/scene.cpp:206
#10 0x00000039fc8dc2d5 in KWin::SceneOpenGL2::paintGenericScreen (this=this@entry=0x2bc8f70, mask=mask@entry=32, data=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/scene_opengl.cpp:724
#11 0x00000039fc8ccaad in KWin::Scene::finalPaintScreen (this=0x2bc8f70, mask=mask@entry=32, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/scene.cpp:196
#12 0x00000039fc8f018d in KWin::EffectsHandlerImpl::paintScreen (this=0x2efc990, mask=mask@entry=32, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/effects.cpp:375
#13 0x00000039fbc11baf in KWin::Effect::paintScreen (this=this@entry=0x213d180, mask=mask@entry=32, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/libkwineffects/kwineffects.cpp:522
#14 0x00000039fc8f013a in KWin::EffectsHandlerImpl::paintScreen (this=0x2efc990, mask=mask@entry=32, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/effects.cpp:372
#15 0x00000039fbc11baf in KWin::Effect::paintScreen (this=this@entry=0x30f3870, mask=mask@entry=32, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/libkwineffects/kwineffects.cpp:522
#16 0x00000039fc8f013a in KWin::EffectsHandlerImpl::paintScreen (this=0x2efc990, mask=mask@entry=32, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/effects.cpp:372
#17 0x00000039fbc11baf in KWin::Effect::paintScreen (this=this@entry=0x3555880, mask=mask@entry=32, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/libkwineffects/kwineffects.cpp:522
#18 0x00000039fc8f013a in KWin::EffectsHandlerImpl::paintScreen (this=0x2efc990, mask=32, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/effects.cpp:372
#19 0x00000039fc8cf0a6 in KWin::Scene::paintScreen (this=this@entry=0x2bc8f70, mask=mask@entry=0x7fffc05a220c, damage=..., repaint=..., updateRegion=updateRegion@entry=0x7fffc05a2220, validRegion=validRegion@entry=0x7fffc05a2230) at /usr/src/debug/kde-workspace-4.11.7/kwin/scene.cpp:148
#20 0x00000039fc8e28fe in KWin::SceneOpenGL::paint (this=0x2bc8f70, damage=..., toplevels=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/scene_opengl.cpp:389
#21 0x00000039fc8c65db in KWin::Compositor::performCompositing (this=0x21abfa0) at /usr/src/debug/kde-workspace-4.11.7/kwin/composite.cpp:618
#22 0x0000003b9ed9d0a1 in QObject::event (this=0x21abfa0, e=&lt;optimized out&gt;) at kernel/qobject.cpp:1156
#23 0x0000003ea51c9d8c in QApplicationPrivate::notify_helper (this=this@entry=0x1fbd720, receiver=receiver@entry=0x21abfa0, e=e@entry=0x7fffc05a2760) at kernel/qapplication.cpp:4562
#24 0x0000003ea51d0725 in QApplication::notify (this=this@entry=0x7fffc05a2c60, receiver=receiver@entry=0x21abfa0, e=e@entry=0x7fffc05a2760) at kernel/qapplication.cpp:4348
#25 0x00000039f7e4aa1a in KApplication::notify (this=0x7fffc05a2c60, receiver=0x21abfa0, event=0x7fffc05a2760) at /usr/src/debug/kdelibs-4.12.2/kdeui/kernel/kapplication.cpp:311
#26 0x0000003b9ed8439d in QCoreApplication::notifyInternal (this=0x7fffc05a2c60, receiver=0x21abfa0, event=event@entry=0x7fffc05a2760) at kernel/qcoreapplication.cpp:949
#27 0x0000003b9edb5ae3 in sendEvent (event=0x7fffc05a2760, receiver=&lt;optimized out&gt;) at kernel/qcoreapplication.h:231
#28 QTimerInfoList::activateTimers (this=0x1fbe118) at kernel/qeventdispatcher_unix.cpp:621
#29 0x0000003b9edb5b60 in QEventDispatcherUNIX::activateTimers (this=this@entry=0x1f68c80) at kernel/qeventdispatcher_unix.cpp:878
#30 0x0000003b9edb6548 in QEventDispatcherUNIX::processEvents (this=this@entry=0x1f68c80, flags=...) at kernel/qeventdispatcher_unix.cpp:940
#31 0x0000003ea526c5d6 in QEventDispatcherX11::processEvents (this=0x1f68c80, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#32 0x0000003b9ed82edf in QEventLoop::processEvents (this=this@entry=0x7fffc05a2ab0, flags=...) at kernel/qeventloop.cpp:149
#33 0x0000003b9ed8322d in QEventLoop::exec (this=this@entry=0x7fffc05a2ab0, flags=...) at kernel/qeventloop.cpp:204
#34 0x0000003b9ed88749 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#35 0x0000003ea51c83fc in QApplication::exec () at kernel/qapplication.cpp:3823
#36 0x00000039fc87e411 in kdemain (argc=3, argv=0x7fffc05a2db8) at /usr/src/debug/kde-workspace-4.11.7/kwin/main.cpp:597
#37 0x0000003b94021d65 in __libc_start_main (main=0x4009d0 &lt;main(int, char**)&gt;, argc=3, argv=0x7fffc05a2db8, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7fffc05a2da8) at libc-start.c:285
#38 0x0000000000400a01 in _start ()

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1434429</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Smeets">timsmeets</who>
    <bug_when>2014-03-08 17:18:27 +0000</bug_when>
    <thetext>another important part might be that it only  happens when I click play in the blizzard update client. The game crashes but the client keeps running. I was working fine the last time I tried which would be about 1 or 2 months ago</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1434435</commentid>
    <comment_count>2</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2014-03-08 17:56:00 +0000</bug_when>
    <thetext>driver bug, suspend compositing before primusrunning (shift+alt+f12)

*** This bug has been marked as a duplicate of bug 299333 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1434438</commentid>
    <comment_count>3</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2014-03-08 18:00:36 +0000</bug_when>
    <thetext>PS:
since this is different from the other segfaults in the driver path: do you have &quot;suspend compositing for fullscreen windows&quot; enabled (kcmshell4 kwincompositing, 3rd tab) and is it a fullscreen window and does the crash (backtrace) change when disabling it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1434579</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Smeets">timsmeets</who>
    <bug_when>2014-03-09 16:16:41 +0000</bug_when>
    <thetext>I do not have the option enabled, enabling it still causes the same error message with the following backtrace 
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library &quot;/lib64/libthread_db.so.1&quot;.
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f9b14013900 (LWP 9459))]

Thread 2 (Thread 0x7f9b06e0a700 (LWP 9481)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000003bb698f09b in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x3bb6c8df00 &lt;QTWTF::pageheap_memory&gt;) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x0000003bb698f0d9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=&lt;optimized out&gt;) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x0000003b94807f33 in start_thread (arg=0x7f9b06e0a700) at pthread_create.c:309
#4  0x0000003b940f4ded in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f9b14013900 (LWP 9459)):
[KCrash Handler]
#6  gen7_update_renderbuffer_surface (brw=0x2656330, rb=0x2649a60, layered=false, unit=0) at gen7_wm_surface_state.c:509
#7  0x00007f9a797be6cc in brw_update_renderbuffer_surfaces (brw=&lt;optimized out&gt;) at brw_wm_surface_state.c:717
#8  0x00007f9a79793faa in brw_upload_state (brw=brw@entry=0x2656330) at brw_state_upload.c:513
#9  0x00007f9a7974feb6 in brw_try_draw_prims (max_index=&lt;optimized out&gt;, min_index=&lt;optimized out&gt;, ib=&lt;optimized out&gt;, nr_prims=&lt;optimized out&gt;, prim=&lt;optimized out&gt;, arrays=&lt;optimized out&gt;, ctx=0x2656330) at brw_draw.c:445
#10 brw_draw_prims (ctx=0x2656330, prim=&lt;optimized out&gt;, nr_prims=&lt;optimized out&gt;, ib=&lt;optimized out&gt;, index_bounds_valid=&lt;optimized out&gt;, min_index=0, max_index=5, tfb_vertcount=0x0) at brw_draw.c:530
#11 0x00007f9a79273de0 in vbo_draw_arrays (ctx=0x2656330, mode=4, start=0, count=6, numInstances=1, baseInstance=0) at ../../../src/mesa/vbo/vbo_exec_array.c:660
#12 0x00000039fd21239e in KWin::GLVertexBuffer::draw (this=this@entry=0x1bf03d0, region=..., primitiveMode=primitiveMode@entry=4, first=first@entry=0, count=6, hardwareClipping=hardwareClipping@entry=false) at /usr/src/debug/kde-workspace-4.11.7/kwin/libkwineffects/kwinglutils.cpp:1949
#13 0x00000039fd215599 in KWin::GLVertexBuffer::render (this=0x1bf03d0, region=..., primitiveMode=4, hardwareClipping=&lt;optimized out&gt;) at /usr/src/debug/kde-workspace-4.11.7/kwin/libkwineffects/kwinglutils.cpp:1902
#14 0x00000039fd21560d in KWin::GLVertexBuffer::render (this=this@entry=0x1bf03d0, primitiveMode=primitiveMode@entry=4) at /usr/src/debug/kde-workspace-4.11.7/kwin/libkwineffects/kwinglutils.cpp:1896
#15 0x00000039fc8dbb7a in KWin::SceneOpenGL2::doPaintBackground (this=&lt;optimized out&gt;, vertices=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/scene_opengl.cpp:748
#16 0x00000039fc8df475 in KWin::SceneOpenGL::paintBackground (this=this@entry=0x27834a0, region=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/scene_opengl.cpp:460
#17 0x00000039fc8ceed6 in KWin::Scene::paintSimpleScreen (this=this@entry=0x27834a0, orig_mask=orig_mask@entry=8, region=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/scene.cpp:367
#18 0x00000039fc8cca65 in KWin::Scene::finalPaintScreen (this=0x27834a0, mask=mask@entry=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/scene.cpp:198
#19 0x00000039fc8f018d in KWin::EffectsHandlerImpl::paintScreen (this=0x2abbff0, mask=mask@entry=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/effects.cpp:375
#20 0x00000039fbc11baf in KWin::Effect::paintScreen (this=this@entry=0x30eb2b0, mask=mask@entry=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/libkwineffects/kwineffects.cpp:522
#21 0x00000039fc8f013a in KWin::EffectsHandlerImpl::paintScreen (this=0x2abbff0, mask=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/effects.cpp:372
#22 0x00000039fc8cf0a6 in KWin::Scene::paintScreen (this=this@entry=0x27834a0, mask=mask@entry=0x7fff54364b0c, damage=..., repaint=..., updateRegion=updateRegion@entry=0x7fff54364b20, validRegion=validRegion@entry=0x7fff54364b30) at /usr/src/debug/kde-workspace-4.11.7/kwin/scene.cpp:148
#23 0x00000039fc8e28fe in KWin::SceneOpenGL::paint (this=0x27834a0, damage=..., toplevels=...) at /usr/src/debug/kde-workspace-4.11.7/kwin/scene_opengl.cpp:389
#24 0x00000039fc8c65db in KWin::Compositor::performCompositing (this=0x19fe6c0) at /usr/src/debug/kde-workspace-4.11.7/kwin/composite.cpp:618
#25 0x0000003b9ed9d0a1 in QObject::event (this=0x19fe6c0, e=&lt;optimized out&gt;) at kernel/qobject.cpp:1156
#26 0x0000003ea51c9d8c in QApplicationPrivate::notify_helper (this=this@entry=0x1a25720, receiver=receiver@entry=0x19fe6c0, e=e@entry=0x7fff54365060) at kernel/qapplication.cpp:4562
#27 0x0000003ea51d0725 in QApplication::notify (this=this@entry=0x7fff54365560, receiver=receiver@entry=0x19fe6c0, e=e@entry=0x7fff54365060) at kernel/qapplication.cpp:4348
#28 0x00000039f7e4aa1a in KApplication::notify (this=0x7fff54365560, receiver=0x19fe6c0, event=0x7fff54365060) at /usr/src/debug/kdelibs-4.12.2/kdeui/kernel/kapplication.cpp:311
#29 0x0000003b9ed8439d in QCoreApplication::notifyInternal (this=0x7fff54365560, receiver=0x19fe6c0, event=event@entry=0x7fff54365060) at kernel/qcoreapplication.cpp:949
#30 0x0000003b9edb5ae3 in sendEvent (event=0x7fff54365060, receiver=&lt;optimized out&gt;) at kernel/qcoreapplication.h:231
#31 QTimerInfoList::activateTimers (this=0x1a26118) at kernel/qeventdispatcher_unix.cpp:621
#32 0x0000003b9edb5b60 in QEventDispatcherUNIX::activateTimers (this=this@entry=0x19d0c80) at kernel/qeventdispatcher_unix.cpp:878
#33 0x0000003b9edb6548 in QEventDispatcherUNIX::processEvents (this=this@entry=0x19d0c80, flags=...) at kernel/qeventdispatcher_unix.cpp:940
#34 0x0000003ea526c5d6 in QEventDispatcherX11::processEvents (this=0x19d0c80, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#35 0x0000003b9ed82edf in QEventLoop::processEvents (this=this@entry=0x7fff543653b0, flags=...) at kernel/qeventloop.cpp:149
#36 0x0000003b9ed8322d in QEventLoop::exec (this=this@entry=0x7fff543653b0, flags=...) at kernel/qeventloop.cpp:204
#37 0x0000003b9ed88749 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#38 0x0000003ea51c83fc in QApplication::exec () at kernel/qapplication.cpp:3823
#39 0x00000039fc87e411 in kdemain (argc=3, argv=0x7fff543656b8) at /usr/src/debug/kde-workspace-4.11.7/kwin/main.cpp:597
#40 0x0000003b94021d65 in __libc_start_main (main=0x4009d0 &lt;main(int, char**)&gt;, argc=3, argv=0x7fff543656b8, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7fff543656a8) at libc-start.c:285
#41 0x0000000000400a01 in _start ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1434601</commentid>
    <comment_count>5</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2014-03-09 17:46:24 +0000</bug_when>
    <thetext>That backtrace actually looks more like the &quot;normal&quot; ones
Can you say whether the other backtrace occurs reproducibly with deactivated &quot;suspend ... fullscreen ...&quot;? (or the crash location in the driver is &quot;random&quot;)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>