This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MALI: eglDestroySurface() causes segmentation fault

Hi,

Some EGL applications in Wayland (using Odroid XU3 Wayland drivers r12p0) crash in eglDestroySurface

Example: start totem playing a video (totem <file>), then press the "<" back button to go to the totem main screen (from the video screen) => crash.

This is a gdb trace:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Thread 1 "totem" hit Breakpoint 1, _cogl_winsys_onscreen_deinit (
onscreen=0x918bb8) at winsys/cogl-winsys-egl.c:691
691 if (eglDestroySurface (egl_renderer->edpy, egl_onscreen->egl_surface)
(gdb) bt
#0 0xb625247a in _cogl_winsys_onscreen_deinit (onscreen=0x918bb8) at winsys/cogl-winsys-egl.c:691
#1 0xb6243312 in _cogl_onscreen_free (onscreen=0x918bb8) at cogl-onscreen.c:169
#2 0xb6243312 in _cogl_object_onscreen_indirect_free (obj=0x918bb8) at cogl-onscreen.c:53
#3 0xb62d8b08 in () at /usr/lib/arm-linux-gnueabihf/libclutter-1.0.so.0
(gdb) bt full
#0 0xb625247a in _cogl_winsys_onscreen_deinit (onscreen=0x918bb8) at winsys/cogl-winsys-egl.c:691
framebuffer = 0x918bb8
context = <optimized out>
egl_display = <optimized out>
renderer = <optimized out>
egl_renderer = 0x4a8c18
egl_onscreen = 0x6a8d20
#1 0xb6243312 in _cogl_onscreen_free (onscreen=0x918bb8) at cogl-onscreen.c:169
framebuffer = 0x918bb8
winsys = 0xb627ee78 <vtable>
frame_info = 0x0
#2 0xb6243312 in _cogl_object_onscreen_indirect_free (obj=0x918bb8) at cogl-onscreen.c:53
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

You can see that _cogl_winsys_onscreen_deinit calls eglDestroySurface with valid parameters (EGLDisplay and EGLSurface) but then there is a crash after window_surface_delete in libwayland-egl.so.1 (which points to libmali.so)

Any thoughts on this issue?

Thanks.

0