Black window and segfault when running glxgears
Running glxgears results in a black window and the following line in dmesg:
[ 624.327290] glxgears[10550]: segfault at 24 ip 00007f916366f1d4 sp 00007ffc10214aa0 error 6 in iris_dri.so[7f9162c3e000+d48000]
[ 624.327297] Code: 2b 7e 30 01 c7 81 ff ff ff 00 00 0f 87 9d 17 00 00 48 01 c8 48 89 46 38 48 85 c9 0f 84 10 06 00 00 83 ea 01 81 ca 00 00 09 78 <89> 11 48 8d 51 04 45 85 ff 74 76 41 8d 47 ff 48 8d 4c c1 0c 0f 1f
Running glxgears with MESA_LOADER_DRIVER_OVERRIDE=i915 results in a normal working glxgears.
The same behavior, black screen and segfault happens with other GL/SDL programs as well, such as scummvm.
I'm on: Ubuntu 20.04, mesa: 20.0.4-2ubuntu1 Lenovo X1 7th gen with Mesa Intel® UHD Graphics 620 (WHL GT2)