-mtls-dialect=gnu2 does not work in mesa on armhf/armv7
Update: I did some further debugging of this. I can reproduce the error with a very small program, and this is not Xwayland-specific.
#include <epoxy/gl.h>
int main() {
glGetString(GL_EXTENSIONS);
glGetString(GL_VERSION);
glGetString(GL_RENDERER);
glGetString(GL_VENDOR);
return 0;
}
It doesn't matter what parameter you pass to glGetString. Any of these four (which are the only four ones available to my knowledge) cause the program to crash in xcb_present_id, just like Xwayland. You can compile this program with e.g. $ gcc main.c -lGL -lepoxy -g1 (assuming the code is saved as main.c). I can confirm that this program does not segfault on my x86_64 desktop running Fedora, and it has also been confirmed to not segfault on the aarch64 device Samsung Galaxy J5 (2016) running Alpine/postmarketOS. Only Edge is affected. v22.06 works okay.
Original post:
Attempting to start up Xwayland on various ARMv7 devices (Samsung Galaxy S II, Samsung Galaxy S III, Google Nexus 5) results in it crashing with the following error as of recently. I have not attempted to bisect this, but it broke at the latest two weeks ago and worked 3 months ago.
mushroom:~$ XDG_RUNTIME_DIR=/run/user/10000/ Xwayland
(EE) Segmentation fault at address 0xb6968004
(EE)
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE)
Aborted