Repository: godot
Issue: Linux crash in Mesa when using Iris driver
Labels: bug,platform:linuxbsd,topic:rendering,topic:thirdparty

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
3.2.3


**OS/device including version:**
Linux 5.4.0-48-generic Ubuntu SMP x86_64 GNU/Linux
```
$ glxinfo | grep -i opengl
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 520 (SKL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.0.8
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.0.8
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.0.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
```


**Issue description:**
```
$ godot
Godot Engine v3.2.3.stable.custom_build - https://godotengine.org
OpenGL ES 3.0 Renderer: Mesa Intel(R) HD Graphics 520 (SKL GT2)

handle_crash: Program crashed with signal 11
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
ERROR: execute: Cannot pipe stream from process running with following arguments '"addr2line" "0x7fd73dfc0210" "-e" "/home/chrx/Downloads/godot-3.2.3-stable/bin/godot.x11.opt.tools.64" 2>/dev/null'.
   At: drivers/unix/os_unix.cpp:306.
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x46210) [0x7fd73dfc0210] ()
ERROR: execute: Cannot pipe stream from process running with following arguments '"addr2line" "0x7fd7374a3278" "-e" "/home/chrx/Downloads/godot-3.2.3-stable/bin/godot.x11.opt.tools.64" 2>/dev/null'.
   At: drivers/unix/os_unix.cpp:306.
[2] /usr/lib/x86_64-linux-gnu/dri/iris_dri.so(+0xb21278) [0x7fd7374a3278] ()
ERROR: execute: Cannot pipe stream from process running with following arguments '"addr2line" "0x7fd7374a58ff" "-e" "/home/chrx/Downloads/godot-3.2.3-stable/bin/godot.x11.opt.tools.64" 2>/dev/null'.
   At: drivers/unix/os_unix.cpp:306.
[3] /usr/lib/x86_64-linux-gnu/dri/iris_dri.so(+0xb238ff) [0x7fd7374a58ff] ()
ERROR: execute: Cannot pipe stream from process running with following arguments '"addr2line" "0x7fd737668a84" "-e" "/home/chrx/Downloads/godot-3.2.3-stable/bin/godot.x11.opt.tools.64" 2>/dev/null'.
   At: drivers/unix/os_unix.cpp:306.
[4] /usr/lib/x86_64-linux-gnu/dri/iris_dri.so(+0xce6a84) [0x7fd737668a84] ()
ERROR: execute: Cannot pipe stream from process running with following arguments '"addr2line" "0x7fd73747f86d" "-e" "/home/chrx/Downloads/godot-3.2.3-stable/bin/godot.x11.opt.tools.64" 2>/dev/null'.
   At: drivers/unix/os_unix.cpp:306.
[5] /usr/lib/x86_64-linux-gnu/dri/iris_dri.so(+0xafd86d) [0x7fd73747f86d] ()
ERROR: execute: Cannot pipe stream from process running with following arguments '"addr2line" "0x7fd7374804a5" "-e" "/home/chrx/Downloads/godot-3.2.3-stable/bin/godot.x11.opt.tools.64" 2>/dev/null'.
   At: drivers/unix/os_unix.cpp:306.
[6] /usr/lib/x86_64-linux-gnu/dri/iris_dri.so(+0xafe4a5) [0x7fd7374804a5] ()
ERROR: execute: Cannot pipe stream from process running with following arguments '"addr2line" "0x7fd736abe8d4" "-e" "/home/chrx/Downloads/godot-3.2.3-stable/bin/godot.x11.opt.tools.64" 2>/dev/null'.
   At: drivers/unix/os_unix.cpp:306.
[7] /usr/lib/x86_64-linux-gnu/dri/iris_dri.so(+0x13c8d4) [0x7fd736abe8d4] ()
ERROR: execute: Cannot pipe stream from process running with following arguments '"addr2line" "0x11b92dc" "-e" "/home/chrx/Downloads/godot-3.2.3-stable/bin/godot.x11.opt.tools.64" 2>/dev/null'.
   At: drivers/unix/os_unix.cpp:306.
[8] ./godot.x11.opt.tools.64() [0x11b92dc] ()
ERROR: execute: Cannot pipe stream from process running with following arguments '"addr2line" "0x2ade3b6" "-e" "/home/chrx/Downloads/godot-3.2.3-stable/bin/godot.x11.opt.tools.64" 2>/dev/null'.
   At: drivers/unix/os_unix.cpp:306.
[9] ./godot.x11.opt.tools.64() [0x2ade3b6] ()
ERROR: execute: Cannot pipe stream from process running with following arguments '"addr2line" "0x7d7e46" "-e" "/home/chrx/Downloads/godot-3.2.3-stable/bin/godot.x11.opt.tools.64" 2>/dev/null'.
   At: drivers/unix/os_unix.cpp:306.
[10] ./godot.x11.opt.tools.64() [0x7d7e46] ()
ERROR: execute: Cannot pipe stream from process running with following arguments '"addr2line" "0x7dbf05" "-e" "/home/chrx/Downloads/godot-3.2.3-stable/bin/godot.x11.opt.tools.64" 2>/dev/null'.
   At: drivers/unix/os_unix.cpp:306.
[11] ./godot.x11.opt.tools.64() [0x7dbf05] ()
ERROR: execute: Cannot pipe stream from process running with following arguments '"addr2line" "0x7a8d61" "-e" "/home/chrx/Downloads/godot-3.2.3-stable/bin/godot.x11.opt.tools.64" 2>/dev/null'.
   At: drivers/unix/os_unix.cpp:306.
[12] ./godot.x11.opt.tools.64(main+0x81) [0x7a8d61] ()
ERROR: execute: Cannot pipe stream from process running with following arguments '"addr2line" "0x7fd73dfa10b3" "-e" "/home/chrx/Downloads/godot-3.2.3-stable/bin/godot.x11.opt.tools.64" 2>/dev/null'.
   At: drivers/unix/os_unix.cpp:306.
[13] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fd73dfa10b3] ()
ERROR: execute: Cannot pipe stream from process running with following arguments '"addr2line" "0x7ab74e" "-e" "/home/chrx/Downloads/godot-3.2.3-stable/bin/godot.x11.opt.tools.64" 2>/dev/null'.
   At: drivers/unix/os_unix.cpp:306.
[14] ./godot.x11.opt.tools.64() [0x7ab74e] ()
-- END OF BACKTRACE --
Aborted (core dumped)
```

**Steps to reproduce:**
Install Ubuntu ``godot3`` package or compile Godot from source and launch it.

**Things I've tried**
- Changing ``--video-driver``
- Use older version (3.1)
- Use snap package: Working but out of date
- Setting ``MESA_LOADER_DRIVER_OVERRIDE=i965`` environment variable make it work but I don't know is this is a good solution