Several leaks in new GLProgram from compileProgram() from GLScreen::getProgram() from GLWindowAutoProgram::getProgram()

Bug #1097644 reported by Daniel van Vugt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz
Fix Released
High
Daniel van Vugt
0.9.8
Won't Fix
High
Unassigned
compiz (Ubuntu)
Fix Released
High
Daniel van Vugt

Bug Description

Reviewing the code, this one looks real...

==9349== 16 (8 direct, 8 indirect) bytes in 1 blocks are definitely lost in loss record 381 of 1,327
==9349== at 0x4C2AF8E: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==9349== by 0xE017BC1: GLProgramCache::operator()(std::list<GLShaderData const*, std::allocator<GLShaderData const*> >) (programcache.cpp:87)
==9349== by 0xE0238FA: GLScreen::getProgram(std::list<GLShaderData const*, std::allocator<GLShaderData const*> >) (screen.cpp:1780)
==9349== by 0xE01FC69: GLWindowAutoProgram::getProgram(GLShaderParameters&) (window.cpp:68)
==9349== by 0xE0137C6: PrivateVertexBuffer::render(GLMatrix const*, GLMatrix const*, GLWindowPaintAttrib const*) (vertexbuffer.cpp:445)
==9349== by 0xE010B81: GLWindow::glDrawTexture(GLTexture*, GLMatrix const&, GLWindowPaintAttrib const&, unsigned int) (paint.cpp:1271)
==9349== by 0xE010AD6: GLWindow::glDrawTexture(GLTexture*, GLMatrix const&, GLWindowPaintAttrib const&, unsigned int) (paint.cpp:1247)
==9349== by 0xE0112F4: GLWindow::glDraw(GLMatrix const&, GLWindowPaintAttrib const&, CompRegion const&, unsigned int) (paint.cpp:1328)
==9349== by 0xE011136: GLWindow::glDraw(GLMatrix const&, GLWindowPaintAttrib const&, CompRegion const&, unsigned int) (paint.cpp:1287)
==9349== by 0x11B9FF5C: PrivateCubeWindow::glPaint(GLWindowPaintAttrib const&, GLMatrix const&, CompRegion const&, unsigned int) (cube.cpp:1526)
==9349== by 0xE0114CC: GLWindow::glPaint(GLWindowPaintAttrib const&, GLMatrix const&, CompRegion const&, unsigned int) (paint.cpp:1340)
==9349== by 0xE0118A2: PrivateGLScreen::paintOutputRegion(GLMatrix const&, CompRegion const&, CompOutput*, unsigned int) (paint.cpp:449)
==9349==

Tags: leak

Related branches

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Memory leak in new GLProgram from compileProgram() from GLScreen::getProgram() from GLWindowAutoProgram::getProgram()

Valgrind log showing several similar leaks. Lets focus on the getProgram() leaks in this bug.

tags: added: leak
Changed in compiz (Ubuntu):
status: New → Triaged
importance: Undecided → High
Changed in compiz:
importance: High → Medium
Changed in compiz (Ubuntu):
importance: High → Medium
summary: Memory leak in new GLProgram from compileProgram() from
- GLScreen::getProgram() from GLWindowAutoProgram::getProgram() from
- PrivateVertexBuffer::render()
+ GLScreen::getProgram() from GLWindowAutoProgram::getProgram()
summary: - Memory leak in new GLProgram from compileProgram() from
+ Several leaks in new GLProgram from compileProgram() from
GLScreen::getProgram() from GLWindowAutoProgram::getProgram()
Changed in compiz:
assignee: nobody → Daniel van Vugt (vanvugt)
Changed in compiz:
status: Triaged → In Progress
importance: Medium → High
Changed in compiz (Ubuntu):
importance: Medium → High
Changed in compiz (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Daniel van Vugt (vanvugt)
Changed in compiz:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package compiz - 1:0.9.9~daily13.01.14-0ubuntu1

---------------
compiz (1:0.9.9~daily13.01.14-0ubuntu1) raring; urgency=low

  [ sampo555 ]
  * compiz crashed with SIGSEGV in DodgeAnim::applyDodgeTransform() (LP:
    #1048840)
  * compiz crashing if window un-/minimize animation is "Random" (LP:
    #1098185)

  [ Daniel van Vugt ]
  * Several leaks in new GLProgram from compileProgram() from
    GLScreen::getProgram() from GLWindowAutoProgram::getProgram() (LP:
    #1097644)

  [ Sam Spilsbury ]
  * Several leaks in ccsIntegratedSettingListAppend() ... from
    ccsGNOMEIntegrationBackendGetIntegratedSetting() from readSetting
    (gsettings.c:375) (LP: #1097661)

  [ MC Return ]
  * Thumbnail Window Previews: Flickering of background/glow and window
    title text (LP: #1098758)

  [ Automatic PS uploader ]
  * Automatic snapshot from revision 3561
 -- Automatic PS uploader <email address hidden> Mon, 14 Jan 2013 04:03:09 +0000

Changed in compiz (Ubuntu):
status: In Progress → Fix Released
Changed in compiz:
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

Bug attachments

Remote bug watches

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