// It crashes because gbm->name is of random value.
Starting program: /home/beevvy/projects/glmark-inst/bin/glmark2-es2
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff767f5e8 in dri2_initialize_drm (drv=0x659be0, disp=0x658e90) at platform_drm.c:104
104 if (strcmp(gbm_device_get_backend_name(gbm), "drm") != 0) {
#0 0x00007ffff767f5e8 in dri2_initialize_drm (drv=0x659be0, disp=0x658e90) at platform_drm.c:104
__s1 = 0x6
__result =
__s2_len = 3
dri2_dpy = 0x659f30
gbm = 0x64d7d0
i =
#1 0x00007ffff7679b47 in _eglMatchAndInitialize (dpy=0x658e90) at egldriver.c:608
mod = 0x658c80
drv = 0x0
i = 0
#2 0x00007ffff7679e93 in _eglMatchDriver (dpy=0x658e90, test_only=0) at egldriver.c:639
best_drv =
__PRETTY_FUNCTION__ = "_eglMatchDriver"
#3 0x00007ffff7674c32 in eglInitialize (dpy=0x658e90, major=0x0, minor=0x0) at eglapi.c:323
__FUNCTION__ = "eglInitialize"
#4 0x000000000043a14e in CanvasX11EGL::ensure_egl_display (this=0x7fffffffda70) at ../src/canvas-x11-egl.cpp:80
No locals.
#5 0x000000000043a1c5 in CanvasX11EGL::ensure_egl_config (this=0x7fffffffda70) at ../src/canvas-x11-egl.cpp:112
attribs = {12324, 1, 12323, 1, 12322, 1, 12321, 1, 12325, 1, 12352, 4, 12344}
num_configs = 0
vid = 0
#6 0x000000000043a368 in CanvasX11EGL::get_xvisualinfo (this=0x7fffffffda70) at ../src/canvas-x11-egl.cpp:41
vis_tmpl = {visual = 0x64d3a0, visualid = 140737488345872, screen = -9200, depth = 32767, c_class = -136379387, red_mask = 2, green_mask = 1, blue_mask = 6604176,
colormap_size = -9616, bits_per_rgb = 32767}
vis_info =
num_visuals = 32767
vid =
#7 0x000000000043933a in CanvasX11::init (this=0x7fffffffda70) at ../src/canvas-x11.cpp:79
visinfo =
#8 0x00000000004081f2 in main (argc=, argv=) at ../src/main.cpp:230
canvas = { = {