mesa 20.0.5 causing kitty to crash
System information
- OS: Arch Linux
- GPU: VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
- Kernel version: 5.6.3-arch1-1 #1 (closed) SMP PREEMPT Wed, 08 Apr 2020 07:47:16 +0000 x86_64 GNU/Linux
- Mesa version: OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.0.5
- Xserver version (if applicable): X.Org X Server 1.20.8
- Desktop manager and compositor: i3 window manager and no compositor
Describe the issue
Start kitty, press ctrl+shift+n to open a new window. Press Ctrl+d to close the new window. kitty crashes, in iris_dri.so kitty is a GPU accelerated terminal, available from: https://sw.kovidgoyal.net/kitty/
Regression
Started with update to mesa 20.0.5
Log files as attachment
Entry from dmesg: [ +0.000003] kitty[1709514]: segfault at 128 ip 00007f8a5cbc0fc9 sp 00007ffd646a9000 error 4 in iris_dri.so[7f8a5c148000+dbe000]
backtrace
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f8a5cbc0fc9 in ?? () from /usr/lib/dri/iris_dri.so
[Current thread is 1 (Thread 0x7f8a5f83b740 (LWP 1709514))]
(gdb) #0 0x00007f8a5cbc0fc9 in ?? () from /usr/lib/dri/iris_dri.so
#1 0x00007f8a5cf02bcf in ?? () from /usr/lib/dri/iris_dri.so
#2 0x00007f8a5c182f40 in ?? () from /usr/lib/dri/iris_dri.so
#3 0x00007f8a5c3c1f7d in ?? () from /usr/lib/dri/iris_dri.so
#4 0x00007f8a5c3c2120 in ?? () from /usr/lib/dri/iris_dri.so
#5 0x00007f8a5ec8a643 in draw_cells_simple (vao_idx=vao_idx@entry=4, gvao_idx=gvao_idx@entry=5, screen=screen@entry=0x7f8a51b19010)
at kitty/shaders.c:432
#6 0x00007f8a5ec8c596 in draw_cells (vao_idx=4, gvao_idx=5, xstart=-0.997644305, ystart=0.978510022, dx=<optimized out>,
dy=<optimized out>, screen=0x7f8a51b19010, os_window=os_window@entry=0x5589a69f84f0, is_active_window=<optimized out>,
can_be_focused=can_be_focused@entry=true) at kitty/shaders.c:645
#7 0x00007f8a5ec1be23 in render_os_window (all_windows_have_same_bg=<optimized out>, num_visible_windows=1, active_window_bg=0,
active_window_id=1, now=3813704338, os_window=0x5589a69f84f0) at kitty/child-monitor.c:611
#8 render (now=now@entry=3813704338, input_read=<optimized out>) at kitty/child-monitor.c:702
#9 0x00007f8a5ec1c81e in process_global_state (data=0x7f8a5db77a40) at kitty/child-monitor.c:939
#10 0x00007f8a5ec1cc4d in do_state_check (timer_id=<optimized out>, data=<optimized out>) at kitty/child-monitor.c:920
#11 0x00007f8a5df1502d in dispatchTimers (eld=eld@entry=0x7f8a5df60d60 <_glfw+133248>) at glfw/backend_utils.c:208
#12 0x00007f8a5df1527d in pollForEvents (eld=0x7f8a5df60d60 <_glfw+133248>, timeout=0, display_callback=display_callback@entry=0x0)
at glfw/backend_utils.c:309
#13 0x00007f8a5df0cbe9 in handleEvents (timeout=<optimized out>) at glfw/x11_window.c:71
#14 0x00007f8a5df0cc5b in _glfwPlatformWaitEvents () at glfw/x11_window.c:2640
#15 0x00007f8a5df074c4 in _glfwPlatformRunMainLoop (tick_callback=0x7f8a5ec1c7be <process_global_state>, data=0x7f8a5db77a40)
at glfw/main_loop.h:30
#16 0x00007f8a5deff85e in glfwRunMainLoop (callback=<optimized out>, data=<optimized out>) at glfw/init.c:344
#17 0x00007f8a5ec47878 in run_main_loop (cb=cb@entry=0x7f8a5ec1c7be <process_global_state>, cb_data=cb_data@entry=0x7f8a5db77a40)
at kitty/glfw.c:1175
#18 0x00007f8a5ec1ac3b in main_loop (self=0x7f8a5db77a40, a=<optimized out>) at kitty/child-monitor.c:978
#19 0x00007f8a5fb48996 in ?? () from /usr/lib/libpython3.8.so.1.0
#20 0x00007f8a5fbf558e in _PyEval_EvalFrameDefault () from /usr/lib/libpython3.8.so.1.0
#21 0x00007f8a5fbe58f4 in _PyEval_EvalCodeWithName () from /usr/lib/libpython3.8.so.1.0
#22 0x00007f8a5fbe6c7b in _PyFunction_Vectorcall () from /usr/lib/libpython3.8.so.1.0
#23 0x00007f8a5fbf514a in _PyEval_EvalFrameDefault () from /usr/lib/libpython3.8.so.1.0
#24 0x00007f8a5fbe58f4 in _PyEval_EvalCodeWithName () from /usr/lib/libpython3.8.so.1.0
#25 0x00007f8a5fbe6c7b in _PyFunction_Vectorcall () from /usr/lib/libpython3.8.so.1.0
#26 0x00007f8a5fb3eee4 in _PyObject_FastCallDict () from /usr/lib/libpython3.8.so.1.0
--Type <RET> for more, q to quit, c to continue without paging--#27 0x00007f8a5fb5e3c3 in _PyObject_Call_Prepend () from /usr/lib/libpython3.8.so.1.0
#28 0x00007f8a5fc45279 in ?? () from /usr/lib/libpython3.8.so.1.0
#29 0x00007f8a5fb3c3d2 in _PyObject_MakeTpCall () from /usr/lib/libpython3.8.so.1.0
#30 0x00007f8a5fbf979c in _PyEval_EvalFrameDefault () from /usr/lib/libpython3.8.so.1.0
#31 0x00007f8a5fbe6a9d in _PyFunction_Vectorcall () from /usr/lib/libpython3.8.so.1.0
#32 0x00007f8a5fbf514a in _PyEval_EvalFrameDefault () from /usr/lib/libpython3.8.so.1.0
#33 0x00007f8a5fbe6a9d in _PyFunction_Vectorcall () from /usr/lib/libpython3.8.so.1.0
#34 0x00007f8a5fbf514a in _PyEval_EvalFrameDefault () from /usr/lib/libpython3.8.so.1.0
#35 0x00007f8a5fbe6a9d in _PyFunction_Vectorcall () from /usr/lib/libpython3.8.so.1.0
#36 0x00007f8a5fbf514a in _PyEval_EvalFrameDefault () from /usr/lib/libpython3.8.so.1.0
#37 0x00007f8a5fbe58f4 in _PyEval_EvalCodeWithName () from /usr/lib/libpython3.8.so.1.0
#38 0x00007f8a5fc6cd73 in PyEval_EvalCode () from /usr/lib/libpython3.8.so.1.0
#39 0x00007f8a5fc738ad in ?? () from /usr/lib/libpython3.8.so.1.0
#40 0x00007f8a5fb48397 in ?? () from /usr/lib/libpython3.8.so.1.0
#41 0x00007f8a5fbf514a in _PyEval_EvalFrameDefault () from /usr/lib/libpython3.8.so.1.0
#42 0x00007f8a5fbe58f4 in _PyEval_EvalCodeWithName () from /usr/lib/libpython3.8.so.1.0
#43 0x00007f8a5fbe6c7b in _PyFunction_Vectorcall () from /usr/lib/libpython3.8.so.1.0
#44 0x00007f8a5fbf514a in _PyEval_EvalFrameDefault () from /usr/lib/libpython3.8.so.1.0
#45 0x00007f8a5fbe58f4 in _PyEval_EvalCodeWithName () from /usr/lib/libpython3.8.so.1.0
#46 0x00007f8a5fbe6c7b in _PyFunction_Vectorcall () from /usr/lib/libpython3.8.so.1.0
#47 0x00007f8a5fb423fd in PyObject_Call () from /usr/lib/libpython3.8.so.1.0
#48 0x00007f8a5fc7c471 in ?? () from /usr/lib/libpython3.8.so.1.0
#49 0x00007f8a5fb1649f in ?? () from /usr/lib/libpython3.8.so.1.0
#50 0x00007f8a5fb16803 in Py_Main () from /usr/lib/libpython3.8.so.1.0
#51 0x00005589a478c30b in main ()
trace from apitrace is attached