[Bug 106473] Mesa/Gallium segfaults in pipe_resource_reference (dri2_destroy_image) on KDE Plasma screen locker

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bug ID 106473
Summary Mesa/Gallium segfaults in pipe_resource_reference (dri2_destroy_image) on KDE Plasma screen locker
Product Mesa
Version unspecified
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter freedesktop@mattwhitlock.name
QA Contact dri-devel@lists.freedesktop.org

This crash has happened to me three times now: once on Mesa 18.1.0-rc2 and
twice on Mesa 18.1.0-rc3. After the second crash, I rebuilt Mesa with debugging
enabled, so I now have a decently complete stack trace. The crash occurs when I
return to my computer after having left it for a while. The monitor has turned
off, although I don't know whether that's relevant. When I move the mouse to
wake up the monitor, I see Plasma's screen locker and a momentary flash of
garbage from various windows that were open on my desktop, and then the screen
is repainted with the screen locker as normal. When I enter my password and
unlock my session, Plasma is telling me that KWin crashed. (KWin automatically
restarts.) The stack trace points deep into Mesa, so I assume this is the place
to report a bug.

Thread 1 (Thread 0x7ff57e76a800 (LWP 2690)):
[KCrash Handler]
#6  pipe_resource_reference (tex=0x0, ptr=0x0) at
../../../../../mesa-18.1.0-rc3/src/gallium/auxiliary/util/u_inlines.h:136
#7  dri2_destroy_image (img=0x0) at
../../../../../mesa-18.1.0-rc3/src/gallium/state_trackers/dri/dri_helpers.c:317
#8  0x00007ff5821241d0 in dri3_free_render_buffer
(draw=draw@entry=0x5622c4a91278, buffer=buffer@entry=0x5622c526ac60) at
../../../mesa-18.1.0-rc3/src/loader/loader_dri3_helper.c:226
#9  0x00007ff58212691b in dri3_get_buffer
(driDrawable=driDrawable@entry=0x5622c4aa8560, format=format@entry=4098,
buffer_type=buffer_type@entry=loader_dri3_buffer_back,
draw=draw@entry=0x5622c4a91278) at
../../../mesa-18.1.0-rc3/src/loader/loader_dri3_helper.c:1708
#10 0x00007ff582126bb8 in loader_dri3_get_buffers (driDrawable=0x5622c4aa8560,
format=4098, stamp=0x5622c4a92e90, loaderPrivate=0x5622c4a91278, buffer_mask=1,
buffers=0x7fff88abb8e0) at
../../../mesa-18.1.0-rc3/src/loader/loader_dri3_helper.c:1861
#11 0x00007ff5754dec21 in dri_image_drawable_get_buffers
(drawable=drawable@entry=0x5622c4a92e90, images=images@entry=0x7fff88abb8e0,
statts=statts@entry=0x5622c4b346f0, statts_count=statts_count@entry=1) at
../../../../../mesa-18.1.0-rc3/src/gallium/state_trackers/dri/dri2.c:547
#12 0x00007ff5754e089a in dri2_allocate_textures (ctx=0x5622c4a8fdd0,
drawable=0x5622c4a92e90, statts=0x5622c4b346f0, statts_count=1) at
../../../../../mesa-18.1.0-rc3/src/gallium/state_trackers/dri/dri2.c:674
#13 0x00007ff5754db27c in dri_st_framebuffer_validate (stctx=<optimized out>,
stfbi=<optimized out>, statts=0x5622c4b346f0, count=1, out=0x7fff88abba30) at
../../../../../mesa-18.1.0-rc3/src/gallium/state_trackers/dri/dri_drawable.c:85
#14 0x00007ff5752e2821 in st_framebuffer_validate
(stfb=stfb@entry=0x5622c4b342c0, st=st@entry=0x5622c4d828f0) at
../../../mesa-18.1.0-rc3/src/mesa/state_tracker/st_manager.c:201
#15 0x00007ff5752e4e23 in st_manager_validate_framebuffers
(st=st@entry=0x5622c4d828f0) at
../../../mesa-18.1.0-rc3/src/mesa/state_tracker/st_manager.c:1117
#16 0x00007ff575294b72 in st_validate_state (st=st@entry=0x5622c4d828f0,
pipeline=pipeline@entry=ST_PIPELINE_RENDER) at
../../../mesa-18.1.0-rc3/src/mesa/state_tracker/st_atom.c:197
#17 0x00007ff5752b9bae in prepare_draw (ctx=0x5622c4d65550, st=0x5622c4d828f0)
at ../../../mesa-18.1.0-rc3/src/mesa/state_tracker/st_draw.c:123
#18 st_draw_vbo (ctx=0x5622c4d65550, prims=0x7fff88abbbc0, nr_prims=1, ib=0x0,
index_bounds_valid=<optimized out>, min_index=<optimized out>,
max_index=<optimized out>, tfb_vertcount=0x0, stream=0, indirect=0x0) at
../../../mesa-18.1.0-rc3/src/mesa/state_tracker/st_draw.c:153
#19 0x00007ff575271e09 in vbo_draw_arrays (ctx=ctx@entry=0x5622c4d65550,
mode=mode@entry=4, start=start@entry=0, count=count@entry=36,
numInstances=numInstances@entry=1, baseInstance=baseInstance@entry=0, drawID=0)
at ../../../mesa-18.1.0-rc3/src/mesa/vbo/vbo_exec_array.c:391
#20 0x00007ff5752722d6 in vbo_exec_DrawArrays (mode=4, start=0, count=36) at
../../../mesa-18.1.0-rc3/src/mesa/vbo/vbo_exec_array.c:550
#21 0x00007ff5832d2f07 in KWin::GLVertexBuffer::render
(this=this@entry=0x5622c4b159c0, region=...,
primitiveMode=primitiveMode@entry=4,
hardwareClipping=hardwareClipping@entry=false) at
../../kwin-5.12.5/libkwineffects/kwinglutils.cpp:2090
#22 0x00007ff5832d2f9f in KWin::GLVertexBuffer::render
(this=this@entry=0x5622c4b159c0, primitiveMode=primitiveMode@entry=4) at
../../kwin-5.12.5/libkwineffects/kwinglutils.cpp:2084
#23 0x00007ff57c037a21 in KWin::SceneOpenGL2::doPaintBackground
(this=0x5622c4942db0, vertices=...) at
../../../../kwin-5.12.5/plugins/scenes/opengl/scene_opengl.cpp:1075
#24 0x00007ff57c03abe8 in KWin::SceneOpenGL::paintBackground
(this=this@entry=0x5622c4942db0, region=...) at
../../../../kwin-5.12.5/plugins/scenes/opengl/scene_opengl.cpp:784
#25 0x00007ff5851bd896 in KWin::Scene::paintSimpleScreen
(this=this@entry=0x5622c4942db0, orig_mask=orig_mask@entry=8, region=...) at
../kwin-5.12.5/scene.cpp:365
#26 0x00007ff57c037988 in KWin::SceneOpenGL2::paintSimpleScreen
(this=this@entry=0x5622c4942db0, mask=mask@entry=8, region=...) at
../../../../kwin-5.12.5/plugins/scenes/opengl/scene_opengl.cpp:1053
#27 0x00007ff5851c0d17 in KWin::Scene::finalPaintScreen
(this=this@entry=0x5622c4942db0, mask=mask@entry=8, region=..., data="" at
../kwin-5.12.5/scene.cpp:201
#28 0x00007ff5851d0ee7 in KWin::EffectsHandlerImpl::paintScreen
(this=this@entry=0x5622c4d8f740, mask=mask@entry=8, region=..., data="" at
../kwin-5.12.5/effects.cpp:379
#29 0x00007ff583afccb3 in KWin::Effect::paintScreen
(this=this@entry=0x5622c529ff50, mask=mask@entry=8, region=..., data="" at
../../kwin-5.12.5/libkwineffects/kwineffects.cpp:583
#30 0x00007ff5851d0e9f in KWin::EffectsHandlerImpl::paintScreen
(this=this@entry=0x5622c4d8f740, mask=mask@entry=8, region=..., data="" at
../kwin-5.12.5/effects.cpp:376
#31 0x00007ff583afccb3 in KWin::Effect::paintScreen
(this=this@entry=0x5622c49deb80, mask=mask@entry=8, region=..., data="" at
../../kwin-5.12.5/libkwineffects/kwineffects.cpp:583
#32 0x00007ff5851d0e9f in KWin::EffectsHandlerImpl::paintScreen
(this=this@entry=0x5622c4d8f740, mask=8, region=..., data="" at
../kwin-5.12.5/effects.cpp:376
#33 0x00007ff5851c0a52 in KWin::Scene::paintScreen
(this=this@entry=0x5622c4942db0, mask=mask@entry=0x7fff88abc2a0, damage=...,
repaint=..., updateRegion=updateRegion@entry=0x7fff88abc280,
validRegion=validRegion@entry=0x7fff88abc288, projection=...,
outputGeometry=...) at ../kwin-5.12.5/scene.cpp:151
#34 0x00007ff57c03bcfc in KWin::SceneOpenGL::paint
(this=this@entry=0x5622c4942db0, damage=..., toplevels=...) at
../../../../kwin-5.12.5/plugins/scenes/opengl/scene_opengl.cpp:702
#35 0x00007ff5851b1653 in KWin::Compositor::performCompositing
(this=0x5622c49bd350) at ../kwin-5.12.5/composite.cpp:747
#36 0x00007ff583f5a6db in QObject::event (this=0x5622c49bd350, e=<optimized
out>) at kernel/qobject.cpp:1269
#37 0x00007ff58484c9ec in QApplicationPrivate::notify_helper
(this=this@entry=0x5622c48b3a10, receiver=receiver@entry=0x5622c49bd350,
e=e@entry=0x7fff88abc6b0) at kernel/qapplication.cpp:3722
#38 0x00007ff584853a36 in QApplication::notify (this=0x7fff88abc930,
receiver=0x5622c49bd350, e=0x7fff88abc6b0) at kernel/qapplication.cpp:3481
#39 0x00007ff583f2cd68 in QCoreApplication::notifyInternal2
(receiver=0x5622c49bd350, event=event@entry=0x7fff88abc6b0) at
kernel/qcoreapplication.cpp:1024
#40 0x00007ff583f8218e in QCoreApplication::sendEvent (event=0x7fff88abc6b0,
receiver=<optimized out>) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:233
#41 QTimerInfoList::activateTimers (this=this@entry=0x5622c49185f0) at
kernel/qtimerinfo_unix.cpp:643
#42 0x00007ff583f7f66c in QEventDispatcherUNIXPrivate::activateTimers
(this=this@entry=0x5622c4918550) at kernel/qeventdispatcher_unix.cpp:249
#43 0x00007ff583f803d2 in QEventDispatcherUNIX::processEvents (this=<optimized
out>, flags=...) at kernel/qeventdispatcher_unix.cpp:514
#44 0x00007ff57e4e1d3d in QUnixEventDispatcherQPA::processEvents
(this=<optimized out>, flags=...) at qunixeventdispatcher.cpp:68
#45 0x00007ff583f2af5a in QEventLoop::exec (this=this@entry=0x7fff88abc850,
flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#46 0x00007ff583f33b04 in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:1297
#47 0x00007ff585916917 in kdemain (argc=<optimized out>, argv=0x7fff88abcac8)
at ../kwin-5.12.5/main_x11.cpp:468
#48 0x00007ff585385f0a in __libc_start_main (main=0x5622c3cf4730 <main>,
argc=3, argv=0x7fff88abcac8, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fff88abcab8) at ../csu/libc-start.c:308
#49 0x00005622c3cf476a in _start ()


I do not recall this happening before I upgraded Mesa to the 18.1.0 release
candidate series. Previously I was using Mesa 18.0.0, and I did not experience
the crash on that version.

Here are some versions of other components in my system, in case it helps:

* Linux kernel 4.16.8-gentoo
* X.org X server 1.19.99.905 (1.2.0 RC 5)
* xf86-video-amdgpu 18.0.1
* libdrm 2.4.91
* Qt 5.9.5
* Plasma 5.12.5


You are receiving this mail because:
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux