Memory leaks in libEGL while running mir

Bug #1211982 reported by Brandon Schaefer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mesa (Ubuntu)
Fix Released
Medium
Chris Halse Rogers

Bug Description

Here are 2 bugs that picked up in valgrind while running egl examples, which I've made sure under 1 examples that eglDestorySurface is being called on the same pointer that was created:

More debugging symbols, but can't figure out the last 3 '???'

For mir_demo_client_eglplasma:
http://paste.ubuntu.com/5983066/

For an SDL2.0 app:
http://paste.ubuntu.com/5983070/

They seem like memory leaks in libEGL but it is running things in mir...

To reproduce:
valgrind --tool=memcheck --num-callers=50 --leak-check=full --track-origins=yes mir_demo_client_eglplasma 2>&1 | tee mir-val.log

There appears to be 2 different leaks, but they are consistent. Even when things are cleaned up through eglTerminate and eglDestorySurface.

summary: - Memory leaks while running mir
+ Memory leaks in libEGL while running mir
description: updated
description: updated
description: updated
Revision history for this message
Chris Halse Rogers (raof) wrote :

Oh, yeah. There they are.

I"ll fix this next time I prepare a Mesa upload.

affects: mir → mesa (Ubuntu)
Changed in mesa (Ubuntu):
assignee: nobody → Chris Halse Rogers (raof)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Fix committed to trusty proposed:
mesa (10.0.0-1ubuntu3) trusty; urgency=low

Changed in mesa (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mesa - 10.0.0-1ubuntu3

---------------
mesa (10.0.0-1ubuntu3) trusty; urgency=low

  * Refresh Mir EGL platform patch.
    + Adds EGL_KHR_image support, needed for nested Mir-on-Mir support
    + Adds resize support (LP: #1227744)
    + Properly free()s surface front and back buffers on destroy (LP: #1211982)
 -- Christopher James Halse Rogers <email address hidden> Wed, 11 Dec 2013 12:24:46 +0800

Changed in mesa (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.