X-Plane 11 Installer crashes on startup since `glsl: declare gl_Layer/gl_ViewportIndex/gl_ViewportMask as vs builtins`
../mesa/src/compiler/glsl/builtin_variables.cpp:339: void {anonymous}::per_vertex_accumulator::add_field(int, const glsl_type*, int, const char*, glsl_interp_mode): Assertion `this->num_fields < ARRAY_SIZE(this->fields)' failed.
Thread 1 "Main Thread" received signal SIGABRT, Aborted.
0x00007ffff6f45615 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff6f45615 in raise () at /usr/lib/libc.so.6
#1 0x00007ffff6f2e862 in abort () at /usr/lib/libc.so.6
#2 0x00007ffff6f2e747 in _nl_load_domain.cold () at /usr/lib/libc.so.6
#3 0x00007ffff6f3dbf6 in () at /usr/lib/libc.so.6
#4 0x00007ffff05a8a9f in (anonymous namespace)::per_vertex_accumulator::add_field(int, glsl_type const*, int, char const*, glsl_interp_mode)
(this=this@entry=0x7fffffffc058, slot=slot@entry=14, type=type@entry=0x7ffff0ffa7e0 <glsl_type::_vec4_type>, precision=precision@entry=0, name=name@entry=0x7ffff0bc5031 "gl_BackSecondaryColor", interp=interp@entry=INTERP_MODE_NONE)
at ../mesa/src/compiler/glsl/builtin_variables.cpp:359
#5 0x00007ffff05a8c56 in (anonymous namespace)::builtin_variable_generator::add_varying(int, glsl_type const*, int, char const*, glsl_interp_mode)
(this=this@entry=0x7fffffffbe20, slot=slot@entry=14, type=0x7ffff0ffa7e0 <glsl_type::_vec4_type>, precision=precision@entry=0, name=name@entry=0x7ffff0bc5031 "gl_BackSecondaryColor", interp=interp@entry=INTERP_MODE_NONE)
at ../mesa/src/compiler/glsl/builtin_variables.cpp:1441
#6 0x00007ffff05a9d7d in (anonymous namespace)::builtin_variable_generator::add_varying (interp=INTERP_MODE_NONE, name=0x7ffff0bc5031 "gl_BackSecondaryColor", type=<optimized out>, slot=14, this=0x7fffffffbe20)
at ../mesa/src/compiler/glsl/builtin_variables.cpp:466
#7 (anonymous namespace)::builtin_variable_generator::generate_varyings() (this=this@entry=0x7fffffffbe20) at ../mesa/src/compiler/glsl/builtin_variables.cpp:1534
#8 0x00007ffff05acbc0 in _mesa_glsl_initialize_variables(exec_list*, _mesa_glsl_parse_state*) (instructions=<optimized out>, state=0x45ee560) at ../mesa/src/compiler/glsl/builtin_variables.cpp:1605
#9 0x00007ffff0679305 in _mesa_ast_to_hir(exec_list*, _mesa_glsl_parse_state*) (instructions=0x45f4c40, state=0x45ee560) at ../mesa/src/compiler/glsl/ast_to_hir.cpp:131
#10 0x00007ffff05c6919 in _mesa_glsl_compile_shader(gl_context*, gl_shader*, bool, bool, bool) (ctx=0x3b6b1d0, shader=0x3bff640, dump_ast=<optimized out>, dump_hir=<optimized out>, force_recompile=<optimized out>)
at ../mesa/src/compiler/glsl/glsl_parser_extras.cpp:2225
#11 0x00007ffff043c10c in _mesa_compile_shader (ctx=ctx@entry=0x3b6b1d0, sh=0x3bff640) at ../mesa/src/mesa/main/shaderapi.c:1211
#12 0x00007ffff043c420 in _mesa_CompileShader (shaderObj=2) at ../mesa/src/mesa/main/shaderapi.c:1614
#13 0x0000000000591e55 in OGL_shader::reload(int) ()
Installer can be downloaded from their website: https://www.x-plane.com/update/installers11/X-Plane11InstallerLinux.zip
Bisected to 49d35f3d glsl: declare gl_Layer/gl_ViewportIndex/gl_ViewportMask as vs builtins