Debugging of eglInitialize

Greetings,

I have a scenario where calling eglInitialize on a Linux desktop platform occasionally fails for unknown reasons with EGL_NOT_INITIALIZED. The display is created in an X11 scenario using eglGetDisplay with EGL_DEFAULT_DISPLAY. If I call glxinfo after a failed run it looks normal.

Can you give me hints on where to go from here as in what debugging out could I add?

Regards