From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 106473] Mesa/Gallium segfaults in pipe_resource_reference (dri2_destroy_image) on KDE Plasma screen locker
Date: Fri, 11 May 2018 03:49:28 +0000 [thread overview]
Message-ID: <bug-106473-502@http.bugs.freedesktop.org/> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 9800 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=106473
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:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 11506 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2018-05-11 3:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-11 3:49 bugzilla-daemon [this message]
2018-05-11 7:45 ` [Bug 106473] Mesa/Gallium segfaults in pipe_resource_reference (dri2_destroy_image) on KDE Plasma screen locker bugzilla-daemon
2018-05-11 8:37 ` bugzilla-daemon
2018-05-12 19:45 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-106473-502@http.bugs.freedesktop.org/ \
--to=bugzilla-daemon@freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.