Summary: | plasmashell and other KDE binaries start to segfault after updating Mesa to 18.0.0 (radeon) | ||
---|---|---|---|
Product: | Mesa | Reporter: | Fireball <ao> |
Component: | Drivers/Gallium/r600 | Assignee: | Default DRI bug account <dri-devel> |
Status: | RESOLVED DUPLICATE | QA Contact: | Default DRI bug account <dri-devel> |
Severity: | normal | ||
Priority: | medium | CC: | airlied, ansla80, devurandom, mike, nheghathivhistha |
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
URL: | https://bugs.gentoo.org/645756 | ||
See Also: |
https://bugs.freedesktop.org/show_bug.cgi?id=104820 https://bugs.freedesktop.org/show_bug.cgi?id=104831 https://bugs.kde.org/show_bug.cgi?id=389632 |
||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 104757 | ||
Attachments: |
bt-full.txt
glxinfo glxinfo (DRI_PRIME=1) |
Description
Fireball
2018-01-27 08:39:29 UTC
Created attachment 136988 [details]
bt-full.txt
I can confirm lots of KDE apps and even QT only crash after upgrading to mesa 18.0.0-rc2. This is a stacktrace from qupzilla, a qt browser. Attached is the same stacktrace but generated with `bt full` so it also shows local variables.
Core was generated by `/usr/bin/qupzilla -session 10ddca7665000151644676500000008200015_1516586983_963'.
Program terminated with signal SIGABRT, Aborted.
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 }
[Current thread is 1 (Thread 0x7f123d18da00 (LWP 1093))]
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007f1244f0f4a6 in __GI_abort () at abort.c:90
#2 0x00005624818e5b10 in qupzilla_signal_handler (s=<optimized out>) at main.cpp:54
#3 <signal handler called>
#4 __memcpy_ssse3 () at ../sysdeps/x86_64/multiarch/memcpy-ssse3.S:130
#5 0x00007f122f9688a4 in memcpy (__len=18130608, __src=0x56248663d6e0, __dest=<optimized out>) at /usr/include/bits/string_fortified.h:34
#6 tgsi_dup_tokens (tokens=0x56248663d6e0) at /usr/src/debug/media-libs/mesa-18.0.0_rc2/mesa-18.0.0-rc2/src/gallium/auxiliary/tgsi/tgsi_parse.c:281
#7 0x00007f122f7bd12b in st_create_vp_variant (key=0x7ffd79ff0150, stvp=0x5624865a7170, st=0x5624861904d0) at /usr/src/debug/media-libs/mesa-18.0.0_rc2/mesa-18.0.0-rc2/src/mesa/state_tracker/st_program.c:579
#8 st_get_vp_variant (st=0x5624861904d0, stvp=0x5624865a7170, key=0x7ffd79ff0150) at /usr/src/debug/media-libs/mesa-18.0.0_rc2/mesa-18.0.0-rc2/src/mesa/state_tracker/st_program.c:629
#9 0x00007f122f7be215 in st_precompile_shader_variant (st=st@entry=0x5624861904d0, prog=prog@entry=0x5624865a7170) at /usr/src/debug/media-libs/mesa-18.0.0_rc2/mesa-18.0.0-rc2/src/mesa/state_tracker/st_program.c:1915
#10 0x00007f122f7bf4d2 in st_deserialise_tgsi_program (ctx=0x562486164910, shProg=0x5624865fe200, prog=0x5624865a7170) at /usr/src/debug/media-libs/mesa-18.0.0_rc2/mesa-18.0.0-rc2/src/mesa/state_tracker/st_shader_cache.c:279
#11 0x00007f122f6e32e9 in read_program_payload (binary_format=34655, sh_prog=0x5624865fe200, blob=0x7ffd79ff01f0, ctx=0x562486164910) at /usr/src/debug/media-libs/mesa-18.0.0_rc2/mesa-18.0.0-rc2/src/mesa/main/program_binary.c:206
#12 _mesa_program_binary (ctx=0x562486164910, sh_prog=0x5624865fe200, binary_format=<optimized out>, binary=0x7f1208378090, length=4085) at /usr/src/debug/media-libs/mesa-18.0.0_rc2/mesa-18.0.0-rc2/src/mesa/main/program_binary.c:285
#13 0x00007f123e965c80 in QOpenGLExtraFunctions::glProgramBinary (length=4085, binary=0x7f1208378090, binaryFormat=34655, program=4, this=0x562485ccbf90) at ../../src/gui/opengl/qopenglextrafunctions.h:1175
#14 QOpenGLProgramBinaryCache::setProgramBinary (this=this@entry=0x7f123ea6ba80 <QOpenGLShaderProgramPrivate::linkBinary()::binCache>, programId=programId@entry=4, blobFormat=blobFormat@entry=34655, p=p@entry=0x7f1208378090, blobSize=blobSize@entry=4085) at opengl/qopenglprogrambinarycache.cpp:163
#15 0x00007f123e96659f in QOpenGLProgramBinaryCache::load (this=this@entry=0x7f123ea6ba80 <QOpenGLShaderProgramPrivate::linkBinary()::binCache>, cacheKey=..., programId=4) at opengl/qopenglprogrambinarycache.cpp:296
#16 0x00007f123e93bd88 in QOpenGLShaderProgramPrivate::linkBinary (this=this@entry=0x7f11c8162040) at opengl/qopenglshaderprogram.cpp:3825
#17 0x00007f123e93c380 in QOpenGLShaderProgram::link (this=0x562486619688) at opengl/qopenglshaderprogram.cpp:1286
#18 0x00007f123cedf528 in QSGDefaultRenderContext::compileShader (this=this@entry=0x562485f0cad0, shader=shader@entry=0x562486619680, material=material@entry=0x562485b37150, vertexCode=<optimized out>, fragmentCode=fragmentCode@entry=0x0) at scenegraph/qsgdefaultrendercontext.cpp:267
#19 0x00007f123cead317 in QSGBatchRenderer::ShaderManager::prepareMaterial (this=0x562485adb6e0, material=material@entry=0x562485b37150) at scenegraph/coreapi/qsgbatchrenderer.cpp:157
#20 0x00007f123ceadd65 in QSGBatchRenderer::Renderer::renderMergedBatch (this=0x562485ad99c0, batch=<optimized out>) at scenegraph/coreapi/qsgbatchrenderer.cpp:2312
#21 0x00007f123ceaf255 in QSGBatchRenderer::Renderer::renderBatches (this=this@entry=0x562485ad99c0) at scenegraph/coreapi/qsgbatchrenderer.cpp:2569
#22 0x00007f123ceb495b in QSGBatchRenderer::Renderer::render (this=<optimized out>) at scenegraph/coreapi/qsgbatchrenderer.cpp:2763
#23 0x00007f123cea5640 in QSGRenderer::renderScene (this=0x562485ad99c0, bindable=...) at scenegraph/coreapi/qsgrenderer.cpp:243
#24 0x00007f123cea5b07 in QSGRenderer::renderScene (this=<optimized out>, fboId=<optimized out>) at scenegraph/coreapi/qsgrenderer.cpp:189
#25 0x00007f123cede968 in QSGDefaultRenderContext::renderNextFrame (this=0x562485f0cad0, renderer=0x562485ad99c0, fboId=<optimized out>) at scenegraph/qsgdefaultrendercontext.cpp:181
#26 0x00007f123cf3972f in QQuickWindowPrivate::renderSceneGraph (this=this@entry=0x562485ad5b30, size=...) at items/qquickwindow.cpp:470
#27 0x00007f123cfef0e6 in QQuickRenderControl::render (this=<optimized out>) at items/qquickrendercontrol.cpp:344
#28 0x00007f1246519d23 in QQuickWidgetPrivate::render (this=this@entry=0x562485c283d0, needsSync=needsSync@entry=true) at qquickwidget.cpp:288
#29 0x00007f1246519f72 in QQuickWidgetPrivate::renderSceneGraph (this=0x562485c283d0) at qquickwidget.cpp:339
#30 0x00007f124571a97b in QObject::event (this=this@entry=0x562485f0c9c0, e=e@entry=0x7ffd79ff1020) at kernel/qobject.cpp:1268
#31 0x00007f1245ae08db in QWidget::event (this=this@entry=0x562485f0c9c0, event=event@entry=0x7ffd79ff1020) at kernel/qwidget.cpp:9266
#32 0x00007f124651d99b in QQuickWidget::event (this=0x562485f0c9c0, e=0x7ffd79ff1020) at qquickwidget.cpp:1467
#33 0x00007f1246558d2b in QtWebEngineCore::RenderWidgetHostViewQtDelegateWidget::event (this=0x562485f0c9c0, event=0x7ffd79ff1020) at render_widget_host_view_qt_delegate_widget.cpp:488
#34 0x00007f1245aa287c in QApplicationPrivate::notify_helper (this=this@entry=0x56248214c020, receiver=receiver@entry=0x562485f0c9c0, e=e@entry=0x7ffd79ff1020) at kernel/qapplication.cpp:3722
#35 0x00007f1245aa9efe in QApplication::notify (this=0x7ffd79ff1350, receiver=0x562485f0c9c0, e=0x7ffd79ff1020) at kernel/qapplication.cpp:3481
#36 0x00007f12456f1b86 in QCoreApplication::notifyInternal2 (receiver=0x562485f0c9c0, event=event@entry=0x7ffd79ff1020) at kernel/qcoreapplication.cpp:1018
#37 0x00007f124574107b in QCoreApplication::sendEvent (event=0x7ffd79ff1020, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:233
#38 QTimerInfoList::activateTimers (this=0x5624821aa660) at kernel/qtimerinfo_unix.cpp:643
#39 0x00007f1245741944 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:182
#40 0x00007f123d1e16c9 in g_main_dispatch (context=0x7f1230004ff0) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3234
#41 g_main_context_dispatch (context=context@entry=0x7f1230004ff0) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3899
#42 0x00007f123d1e1a28 in g_main_context_iterate (context=context@entry=0x7f1230004ff0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3972
#43 0x00007f123d1e1ad4 in g_main_context_iteration (context=0x7f1230004ff0, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:4033
#44 0x00007f1245741d5f in QEventDispatcherGlib::processEvents (this=0x5624821b1dc0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#45 0x00007f12456f0992 in QEventLoop::exec (this=this@entry=0x7ffd79ff1270, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#46 0x00007f12456f8d5c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1291
#47 0x00005624818e4bef in main (argc=<optimized out>, argv=0x7ffd79ff1558) at main.cpp:155
Also gentoo, also radeon card (r600). Posting this just to confirm there is an issue. Can't provide additional info because I needed to restore access to my PC as fast as possible. dmesg pointed segfaults in plasmashell and sddm-helper processes. First I thought it is somehow related to updating kernel 4.14.12->4.14.15, but reverting it did not help. Then, I saw mentions of r600g_dri.so Switched from mesa-18.0.0-rc2 to mesa-17.3.3, and issue is gone. I think this might be a duplicate of Bug 104762, which is fixed in master Does deleting the shader caches work around the issue for you? Well, after deleting the caches I couldn't get to the point where everything crashes since SDDM only shows blank white screen and standard black X11 mouse pointer instead of welcome screen. No interesting error messages were recorded in log. As always, thing were back to normal after I downgraded Mesa again. Out of interest does the issue show up if you use the 9999 ebuild? If that still shows issues try bisecting the problem 9999 looks good. Hopefully sorted in rc3 then I run into this issue with 18.0.0_rc3, radeonsi on amdgpu with dc: Application: krunner (5.11.5) Qt Version: 5.9.3 Frameworks Version: 5.42.0 Operating System: Linux 4.15.0-gentoo x86_64 Distribution: "Gentoo Base System release 2.4.1" -- Information about the crash: - What I was doing when the application crashed: I pressed Alt+Space, KRunner showed up briefly, but immediately crashed thereafter. -- Backtrace: Application: krunner (krunner), signal: Segmentation fault Using host libthread_db library "/lib64/libthread_db.so.1". [Current thread is 1 (Thread 0x7f9b90ceccc0 (LWP 24156))] Thread 12 (Thread 0x7f9b3a63f700 (LWP 2372)): #0 0x00007f9b8c26e6a5 in pthread_cond_wait () from /lib64/libpthread.so.0 #1 0x00007f9b7972c84b in cnd_wait (mtx=0x558d82ff39b8, cond=0x558d82ff39e0) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/include/c11/threads_posix.h:155 #2 util_queue_thread_func (input=input@entry=0x558d82e34420) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/src/util/u_queue.c:255 #3 0x00007f9b7972c57f in impl_thrd_routine (p=<optimized out>) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/include/c11/threads_posix.h:87 #4 0x00007f9b8c2678ba in start_thread () from /lib64/libpthread.so.0 #5 0x00007f9b8de3839f in clone () from /lib64/libc.so.6 Thread 11 (Thread 0x7f9b5e7fc700 (LWP 24250)): #0 0x00007f9b8de2cbe5 in poll () from /lib64/libc.so.6 #1 0x00007f9b89c198e1 in ?? () from /usr/lib64/libglib-2.0.so.0 #2 0x00007f9b89c199ec in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #3 0x00007f9b8e799d7b in QEventDispatcherGlib::processEvents (this=0x7f9b44000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425 #4 0x00007f9b8e748992 in QEventLoop::exec (this=this@entry=0x7f9b5e7fbd40, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212 #5 0x00007f9b8e5a805a in QThread::exec (this=this@entry=0x558d829564c0) at thread/qthread.cpp:515 #6 0x00007f9b90780635 in QQmlThreadPrivate::run (this=0x558d829564c0) at qml/ftw/qqmlthread.cpp:147 #7 0x00007f9b8e5ac3c8 in QThreadPrivate::start (arg=0x558d829564c0) at thread/qthread_unix.cpp:368 #8 0x00007f9b8c2678ba in start_thread () from /lib64/libpthread.so.0 #9 0x00007f9b8de3839f in clone () from /lib64/libc.so.6 Thread 10 (Thread 0x7f9b5effd700 (LWP 24225)): #0 0x00007f9b8c26e6a5 in pthread_cond_wait () from /lib64/libpthread.so.0 #1 0x00007f9b7972c84b in cnd_wait (mtx=0x558d829ab300, cond=0x558d829ab328) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/include/c11/threads_posix.h:155 #2 util_queue_thread_func (input=input@entry=0x558d829adbc0) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/src/util/u_queue.c:255 #3 0x00007f9b7972c57f in impl_thrd_routine (p=<optimized out>) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/include/c11/threads_posix.h:87 #4 0x00007f9b8c2678ba in start_thread () from /lib64/libpthread.so.0 #5 0x00007f9b8de3839f in clone () from /lib64/libc.so.6 Thread 9 (Thread 0x7f9b5f7fe700 (LWP 24224)): #0 0x00007f9b8c26e6a5 in pthread_cond_wait () from /lib64/libpthread.so.0 #1 0x00007f9b7972c84b in cnd_wait (mtx=0x558d829ab300, cond=0x558d829ab328) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/include/c11/threads_posix.h:155 #2 util_queue_thread_func (input=input@entry=0x558d829ac710) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/src/util/u_queue.c:255 #3 0x00007f9b7972c57f in impl_thrd_routine (p=<optimized out>) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/include/c11/threads_posix.h:87 #4 0x00007f9b8c2678ba in start_thread () from /lib64/libpthread.so.0 #5 0x00007f9b8de3839f in clone () from /lib64/libc.so.6 Thread 8 (Thread 0x7f9b5ffff700 (LWP 24223)): #0 0x00007f9b8c26e6a5 in pthread_cond_wait () from /lib64/libpthread.so.0 #1 0x00007f9b7972c84b in cnd_wait (mtx=0x558d829ab218, cond=0x558d829ab240) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/include/c11/threads_posix.h:155 #2 util_queue_thread_func (input=input@entry=0x558d829ad3f0) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/src/util/u_queue.c:255 #3 0x00007f9b7972c57f in impl_thrd_routine (p=<optimized out>) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/include/c11/threads_posix.h:87 #4 0x00007f9b8c2678ba in start_thread () from /lib64/libpthread.so.0 #5 0x00007f9b8de3839f in clone () from /lib64/libc.so.6 Thread 7 (Thread 0x7f9b64b2d700 (LWP 24222)): #0 0x00007f9b8c26e6a5 in pthread_cond_wait () from /lib64/libpthread.so.0 #1 0x00007f9b7972c84b in cnd_wait (mtx=0x558d829ab218, cond=0x558d829ab240) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/include/c11/threads_posix.h:155 #2 util_queue_thread_func (input=input@entry=0x558d829ad1f0) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/src/util/u_queue.c:255 #3 0x00007f9b7972c57f in impl_thrd_routine (p=<optimized out>) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/include/c11/threads_posix.h:87 #4 0x00007f9b8c2678ba in start_thread () from /lib64/libpthread.so.0 #5 0x00007f9b8de3839f in clone () from /lib64/libc.so.6 Thread 6 (Thread 0x7f9b6532e700 (LWP 24221)): #0 0x00007f9b8c26e6a5 in pthread_cond_wait () from /lib64/libpthread.so.0 #1 0x00007f9b7972c84b in cnd_wait (mtx=0x558d829ab218, cond=0x558d829ab240) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/include/c11/threads_posix.h:155 #2 util_queue_thread_func (input=input@entry=0x558d829a8920) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/src/util/u_queue.c:255 #3 0x00007f9b7972c57f in impl_thrd_routine (p=<optimized out>) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/include/c11/threads_posix.h:87 #4 0x00007f9b8c2678ba in start_thread () from /lib64/libpthread.so.0 #5 0x00007f9b8de3839f in clone () from /lib64/libc.so.6 Thread 5 (Thread 0x7f9b65b2f700 (LWP 24220)): #0 0x00007f9b8c26e6a5 in pthread_cond_wait () from /lib64/libpthread.so.0 #1 0x00007f9b7972c84b in cnd_wait (mtx=0x558d828c77e0, cond=0x558d828c7808) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/include/c11/threads_posix.h:155 #2 util_queue_thread_func (input=input@entry=0x558d829ac460) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/src/util/u_queue.c:255 #3 0x00007f9b7972c57f in impl_thrd_routine (p=<optimized out>) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/include/c11/threads_posix.h:87 #4 0x00007f9b8c2678ba in start_thread () from /lib64/libpthread.so.0 #5 0x00007f9b8de3839f in clone () from /lib64/libc.so.6 Thread 4 (Thread 0x7f9b6668f700 (LWP 24219)): #0 0x00007f9b8c26e6a5 in pthread_cond_wait () from /lib64/libpthread.so.0 #1 0x00007f9b7972c84b in cnd_wait (mtx=0x558d829a7df0, cond=0x558d829a7e18) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/include/c11/threads_posix.h:155 #2 util_queue_thread_func (input=input@entry=0x558d829a81c0) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/src/util/u_queue.c:255 #3 0x00007f9b7972c57f in impl_thrd_routine (p=<optimized out>) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/include/c11/threads_posix.h:87 #4 0x00007f9b8c2678ba in start_thread () from /lib64/libpthread.so.0 #5 0x00007f9b8de3839f in clone () from /lib64/libc.so.6 Thread 3 (Thread 0x7f9b7a81f700 (LWP 24175)): #0 0x00007f9b89c5cc01 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0 #1 0x00007f9b89c192fb in g_main_context_check () from /usr/lib64/libglib-2.0.so.0 #2 0x00007f9b89c19888 in ?? () from /usr/lib64/libglib-2.0.so.0 #3 0x00007f9b89c199ec in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #4 0x00007f9b8e799d7b in QEventDispatcherGlib::processEvents (this=0x7f9b6c000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425 #5 0x00007f9b8e748992 in QEventLoop::exec (this=this@entry=0x7f9b7a81ed30, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212 #6 0x00007f9b8e5a805a in QThread::exec (this=this@entry=0x7f9b919f0da0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:515 #7 0x00007f9b9197d585 in QDBusConnectionManager::run (this=0x7f9b919f0da0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178 #8 0x00007f9b8e5ac3c8 in QThreadPrivate::start (arg=0x7f9b919f0da0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:368 #9 0x00007f9b8c2678ba in start_thread () from /lib64/libpthread.so.0 #10 0x00007f9b8de3839f in clone () from /lib64/libc.so.6 Thread 2 (Thread 0x7f9b7c7e7700 (LWP 24167)): #0 0x00007f9b8de2cbe5 in poll () from /lib64/libc.so.6 #1 0x00007f9b8d5147af in ?? () from /usr/lib64/libxcb.so.1 #2 0x00007f9b8d5164fa in xcb_wait_for_event () from /usr/lib64/libxcb.so.1 #3 0x00007f9b7e332fd1 in QXcbEventReader::run (this=0x558d828b88f0) at qxcbconnection.cpp:1330 #4 0x00007f9b8e5ac3c8 in QThreadPrivate::start (arg=0x558d828b88f0) at thread/qthread_unix.cpp:368 #5 0x00007f9b8c2678ba in start_thread () from /lib64/libpthread.so.0 #6 0x00007f9b8de3839f in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7f9b90ceccc0 (LWP 24156)): [KCrash Handler] #6 0x00007f9b8de7d4e0 in __memcpy_ssse3 () from /lib64/libc.so.6 #7 0x00007f9b79828554 in memcpy (__len=37240880, __src=0x558d831607a0, __dest=<optimized out>) at /usr/include/bits/string_fortified.h:34 #8 tgsi_dup_tokens (tokens=0x558d831607a0) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/src/gallium/auxiliary/tgsi/tgsi_parse.c:281 #9 0x00007f9b7967cc5b in st_create_vp_variant (key=0x7fff4b389370, stvp=0x558d8315ef50, st=0x558d83037800) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/src/mesa/state_tracker/st_program.c:579 #10 st_get_vp_variant (st=0x558d83037800, stvp=0x558d8315ef50, key=0x7fff4b389370) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/src/mesa/state_tracker/st_program.c:629 #11 0x00007f9b7967dd45 in st_precompile_shader_variant (st=st@entry=0x558d83037800, prog=prog@entry=0x558d8315ef50) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/src/mesa/state_tracker/st_program.c:1915 #12 0x00007f9b7967f002 in st_deserialise_tgsi_program (ctx=0x558d83002a60, shProg=0x558d83151cf0, prog=0x558d8315ef50) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/src/mesa/state_tracker/st_shader_cache.c:279 #13 0x00007f9b795a2d69 in read_program_payload (binary_format=34655, sh_prog=0x558d83151cf0, blob=0x7fff4b389410, ctx=0x558d83002a60) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/src/mesa/main/program_binary.c:206 #14 _mesa_program_binary (ctx=0x558d83002a60, sh_prog=0x558d83151cf0, binary_format=<optimized out>, binary=0x7f9b7b8c806c, length=4077) at /var/tmp/portage/media-libs/mesa-18.0.0_rc3/work/mesa-18.0.0-rc3/src/mesa/main/program_binary.c:285 #15 0x00007f9b8ed4dc80 in QOpenGLExtraFunctions::glProgramBinary (length=4077, binary=0x7f9b7b8c806c, binaryFormat=34655, program=4, this=0x7f9b740085f0) at ../../include/QtGui/../../src/gui/opengl/qopenglextrafunctions.h:1175 #16 QOpenGLProgramBinaryCache::setProgramBinary (this=this@entry=0x7f9b8ee53960 <QOpenGLShaderProgramPrivate::linkBinary()::binCache>, programId=programId@entry=4, blobFormat=blobFormat@entry=34655, p=p@entry=0x7f9b7b8c806c, blobSize=blobSize@entry=4077) at opengl/qopenglprogrambinarycache.cpp:163 #17 0x00007f9b8ed4e59f in QOpenGLProgramBinaryCache::load (this=this@entry=0x7f9b8ee53960 <QOpenGLShaderProgramPrivate::linkBinary()::binCache>, cacheKey=..., programId=4) at opengl/qopenglprogrambinarycache.cpp:296 #18 0x00007f9b8ed23d88 in QOpenGLShaderProgramPrivate::linkBinary (this=this@entry=0x558d830d5f00) at opengl/qopenglshaderprogram.cpp:3825 #19 0x00007f9b8ed24380 in QOpenGLShaderProgram::link (this=0x558d831513d8) at opengl/qopenglshaderprogram.cpp:1286 #20 0x00007f9b90a3f528 in QSGDefaultRenderContext::compileShader (this=this@entry=0x558d82ab6280, shader=shader@entry=0x558d831513d0, material=material@entry=0x558d830d4430, vertexCode=<optimized out>, fragmentCode=fragmentCode@entry=0x0) at scenegraph/qsgdefaultrendercontext.cpp:267 #21 0x00007f9b90a0d317 in QSGBatchRenderer::ShaderManager::prepareMaterial (this=0x558d82eda560, material=material@entry=0x558d830d4430) at scenegraph/coreapi/qsgbatchrenderer.cpp:157 #22 0x00007f9b90a0dd65 in QSGBatchRenderer::Renderer::renderMergedBatch (this=0x558d83040620, batch=<optimized out>) at scenegraph/coreapi/qsgbatchrenderer.cpp:2312 #23 0x00007f9b90a0f255 in QSGBatchRenderer::Renderer::renderBatches (this=this@entry=0x558d83040620) at scenegraph/coreapi/qsgbatchrenderer.cpp:2569 #24 0x00007f9b90a1495b in QSGBatchRenderer::Renderer::render (this=<optimized out>) at scenegraph/coreapi/qsgbatchrenderer.cpp:2763 #25 0x00007f9b90a05640 in QSGRenderer::renderScene (this=0x558d83040620, bindable=...) at scenegraph/coreapi/qsgrenderer.cpp:243 #26 0x00007f9b90a05adb in QSGRenderer::renderScene (this=<optimized out>, fboId=<optimized out>) at scenegraph/coreapi/qsgrenderer.cpp:196 #27 0x00007f9b90a3e968 in QSGDefaultRenderContext::renderNextFrame (this=0x558d82ab6280, renderer=0x558d83040620, fboId=<optimized out>) at scenegraph/qsgdefaultrendercontext.cpp:181 #28 0x00007f9b90a9972f in QQuickWindowPrivate::renderSceneGraph (this=this@entry=0x558d82916260, size=...) at items/qquickwindow.cpp:470 #29 0x00007f9b90a3122f in QSGGuiThreadRenderLoop::renderWindow (this=this@entry=0x558d82ad0600, window=<optimized out>) at scenegraph/qsgrenderloop.cpp:429 #30 0x00007f9b90a321da in QSGGuiThreadRenderLoop::exposureChanged (this=0x558d82ad0600, window=<optimized out>) at scenegraph/qsgrenderloop.cpp:477 #31 0x00007f9b8eaa8e15 in QWindow::event (this=this@entry=0x7fff4b38a6c0, ev=ev@entry=0x7fff4b38a2b0) at kernel/qwindow.cpp:2267 #32 0x00007f9b90aa37d5 in QQuickWindow::event (this=this@entry=0x7fff4b38a6c0, e=e@entry=0x7fff4b38a2b0) at items/qquickwindow.cpp:1610 #33 0x00007f9b916175e3 in PlasmaQuick::Dialog::event (this=0x7fff4b38a6c0, event=0x7fff4b38a2b0) at /var/tmp/portage/kde-frameworks/plasma-5.42.0/work/plasma-framework-5.42.0/src/plasmaquick/dialog.cpp:1305 #34 0x0000558d81554bf5 in View::event (this=0x7fff4b38a6c0, event=0x7fff4b38a2b0) at /var/tmp/portage/kde-plasma/plasma-workspace-5.11.5/work/plasma-workspace-5.11.5/krunner/view.cpp:222 #35 0x00007f9b8f24a87c in QApplicationPrivate::notify_helper (this=this@entry=0x558d82897610, receiver=receiver@entry=0x7fff4b38a6c0, e=e@entry=0x7fff4b38a2b0) at kernel/qapplication.cpp:3722 #36 0x00007f9b8f251efe in QApplication::notify (this=0x7fff4b38a650, receiver=0x7fff4b38a6c0, e=0x7fff4b38a2b0) at kernel/qapplication.cpp:3481 #37 0x00007f9b8e749b86 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x7fff4b38a6c0, event=event@entry=0x7fff4b38a2b0) at kernel/qcoreapplication.cpp:1018 #38 0x00007f9b8ea9e93f in QCoreApplication::sendSpontaneousEvent (event=0x7fff4b38a2b0, receiver=0x7fff4b38a6c0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236 #39 QGuiApplicationPrivate::processExposeEvent (e=0x7f9b7400a590) at kernel/qguiapplication.cpp:2861 #40 0x00007f9b8ea9f535 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x7f9b7400a590) at kernel/qguiapplication.cpp:1795 #41 0x00007f9b8ea79d4a in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:939 #42 0x00007f9b7e394990 in userEventSourceDispatch (source=<optimized out>) at qeventdispatcher_glib.cpp:77 #43 0x00007f9b89c1972e in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0 #44 0x00007f9b89c19960 in ?? () from /usr/lib64/libglib-2.0.so.0 #45 0x00007f9b89c199ec in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #46 0x00007f9b8e799d5f in QEventDispatcherGlib::processEvents (this=0x558d82901750, flags=...) at kernel/qeventdispatcher_glib.cpp:423 #47 0x00007f9b8e748992 in QEventLoop::exec (this=this@entry=0x7fff4b38a5a0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212 #48 0x00007f9b8e750d5c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1291 #49 0x0000558d815521d1 in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-plasma/plasma-workspace-5.11.5/work/plasma-workspace-5.11.5/krunner/main.cpp:92 Reported using DrKonqi See-Also: https://bugs.kde.org/show_bug.cgi?id=389632 It appears that over time more and more applications get 'infected': KWin and JetBrains Toolbox now also cannot start anymore. (In reply to Mike Lothian from comment #3) > I think this might be a duplicate of Bug 104762, which is fixed in master > > Does deleting the shader caches work around the issue for you? I tried: rm -fr ~/.cache/mesa But that still does not allow me to start e.g. KRunner or KMail. I managed to restart KWin from a VT, though, so that one might be affected in a different way. Sadly the stacktraces of KWin and JetBrains toolbox are not as helpful as that of KRunner: Process 24151 (kwin_x11) of user 1000 dumped core. Stack trace of thread 24151: #0 0x00007f3ce3235a00 n/a (n/a) Process 25032 (jetbrains-toolb) of user 1000 dumped core. Stack trace of thread 25032: #0 0x00007ff3058fe747 x86_64_fallback_frame_state (libgcc_s.so.1) #1 0x00007ff3058ffdb0 _Unwind_Backtrace (libgcc_s.so.1) #2 0x00007ff305637bd8 __backtrace (libc.so.6) #3 0x000000000048d6d2 n/a (/tmp/.mount_bHWhBY/usr/share/jetbrains-toolbox/jetbrains-toolbox) #4 0x00007ff30555dac0 __restore_rt (libc.so.6) #5 0x00007ff2f86c2e98 tgsi_util_get_inst_usage_mask (radeonsi_dri.so) #6 0x00007ff2f86ba009 scan_instruction (radeonsi_dri.so) #7 0x3f80000000000000 n/a (n/a) I will rebuild KWin with debug symbols and try to repro afterwards, to get a better stack trace. Created attachment 137047 [details]
glxinfo
When running glxinfo, I also noticed the following output on stderr:
amdgpu_parse_asic_ids: Cannot parse ASIC IDs: Resource temporarily unavailable
Created attachment 137048 [details]
glxinfo (DRI_PRIME=1)
With DRI_PRIME=1, I do not see 'Resource temporarily unavailable' on stderr.
(In reply to Dennis Schridde from comment #11) > amdgpu_parse_asic_ids: Cannot parse ASIC IDs: Resource temporarily unavailable Unrelated libdrm_amdgpu issue, fixed by https://cgit.freedesktop.org/mesa/drm/commit/?id=57d3d4c96887cde016fe1d2766196accf77ca423 This is a duplicate of bug 104762, resolving accordingly. *** This bug has been marked as a duplicate of bug 104762 *** (In reply to Michel Dänzer from comment #13) > (In reply to Dennis Schridde from comment #11) > > amdgpu_parse_asic_ids: Cannot parse ASIC IDs: Resource temporarily unavailable > > Unrelated libdrm_amdgpu issue, fixed by > > https://cgit.freedesktop.org/mesa/drm/commit/ > ?id=57d3d4c96887cde016fe1d2766196accf77ca423 That commit is not in any released version of libdrm. Please do a release containing it. (In reply to Matt Turner from comment #14) > That commit is not in any released version of libdrm. Please do a release > containing it. It'll be in the next release. I don't see the need to cut a release specifically for such a cosmetic issue, but feel free to do it if you disagree. :) |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.