Crash when initialising egl on ARM target
Images versions
apertis-16.09-target-mx6qsabrelite_20161017.0-collabora.btrfs.img.gz
apertis-16.12-target-mx6qsabrelite_20161016.0-collabora.btrfs.img.gz
apertis_v2022-hmi-armhf-uboot_v2022.3.img.gz
apertis_v2023pre-hmi-armhf-uboot_v2023pre.0.img.gz
Steps to reproduce
Compile and Run the codes written below.
#include <EGL/egl.h>
#include <stdio.h>
int main (int argc, char *argv[])
{
int major, minor;
EGLDisplay d = eglGetDisplay (EGL_DEFAULT_DISPLAY);
if (!eglInitialize (d, &major, &minor))
{
printf("eglInitialize failed\n");
}
return 0;
}
$ gcc -o info -g info.c `pkg-config --cflags --libs egl`
$ ./info
Expected result
No message on terminal.
Actual result
Crash happens but impossible to get backtrace logs.
Thread 1 "info" received signal SIGSEGV, Segmentation fault.
0x76e540a8 in gcoOS_InitLocalDisplayInfo () from /usr/lib/arm-linux-gnueabihf/vivante-egl-wayland/libGAL.so
(gdb) bt
#0 0x76e540a8 in gcoOS_InitLocalDisplayInfo () from /usr/lib/arm-linux-gnueabihf/vivante-egl-wayland/libGAL.so
#1 0x76fb0798 in ?? () from /usr/lib/arm-linux-gnueabihf/libEGL.so.1
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
The packages what I have for this test are listed below;
$ dpkg -l | grep mesa
ii libegl1-mesa:armhf 11.2.0-1ubuntu2.1co1br3 armhf free implementation of the EGL API -- runtime
ii libegl1-mesa-dbgsym:armhf 11.2.0-1ubuntu2.1co1br3 armhf Debug symbols for libegl1-mesa
ii libegl1-mesa-dev:armhf 11.2.0-1ubuntu2.1co1br3 armhf free implementation of the EGL API -- development files
ii libgbm1-mesa:armhf 11.2.0-1ubuntu2.1co1br3 armhf generic buffer management API -- runtime
ii libgl1-mesa-dri:armhf 11.2.0-1ubuntu2.1co1br3 armhf free implementation of the OpenGL API -- DRI modules
ii libgl1-mesa-glx:armhf 11.2.0-1ubuntu2.1co1br3 armhf free implementation of the OpenGL API -- GLX runtime
ii libglapi-mesa:armhf 11.2.0-1ubuntu2.1co1br3 armhf free implementation of the GL API -- shared library
ii libgles2-mesa:armhf 11.2.0-1ubuntu2.1co1br3 armhf free implementation of the OpenGL|ES 2.x API -- runtime
ii libgles2-mesa-dbgsym:armhf 11.2.0-1ubuntu2.1co1br3 armhf Debug symbols for libgles2-mesa
ii libgles2-mesa-dev:armhf 11.2.0-1ubuntu2.1co1br3 armhf free implementation of the OpenGL|ES 2.x API -- development files
ii libwayland-egl1-mesa:armhf 11.2.0-1ubuntu2.1co1br3 armhf implementation of the Wayland EGL platform -- runtime
ii libwayland-egl1-mesa-dbgsym:armhf 11.2.0-1ubuntu2.1co1br3 armhf Debug symbols for libwayland-egl1-mesa
Management data
This section is for management only, it should be the last one in the description.
Phabricator link: https://phabricator.apertis.org/T2896