Merge lp:~nabil-stendardo/ubuntu/quantal/compiz/fix-segfault-related-to-shaders-and-uniforms into lp:ubuntu/quantal/compiz

Proposed by NabilStendardo
Status: Rejected
Rejected by: Martin Pitt
Proposed branch: lp:~nabil-stendardo/ubuntu/quantal/compiz/fix-segfault-related-to-shaders-and-uniforms
Merge into: lp:ubuntu/quantal/compiz
Diff against target: 29 lines (+10/-1)
2 files modified
debian/changelog (+9/-0)
plugins/opengl/src/vertexbuffer.cpp (+1/-1)
To merge this branch: bzr merge lp:~nabil-stendardo/ubuntu/quantal/compiz/fix-segfault-related-to-shaders-and-uniforms
Reviewer Review Type Date Requested Status
Daniel van Vugt (community) Needs Resubmitting
Ubuntu branches Pending
Review via email: mp+130709@code.launchpad.net

Description of the change

I fixed an annoying segfault (probably due to a typo) in plugins/opengl/src/vertexbuffer.cpp concerning functions third-party plugins would want to use (one such plugin/revision is <https://github.com/gebner/compiz-cms/tree/e6ebd9ae76c87069527004f1b4e9190d90f1c59a)>.

The fix was trivial (found "program" where it clearly should have been "tmpProgram").

To post a comment you must log in.
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks Nabil. Please propose to branch "lp:compiz" instead.

And no changes to debian/changelog for now thanks.

review: Needs Resubmitting
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please also log a bug for the crash in Launchpad and make sure your branch is linked to it.

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Thanks a lot for your patch!

The best way to deal with this one is to get upstream in touch and proposing the fix directly to them, they will review it (seems a trivial typo, indeed). I just pinged duflu on IRC and he will give you more instruction (proposing something against lp:compiz) :)

We will then backport it.

Thanks again ;)

Unmerged revisions

3320. By NabilStendardo

* Fixed segfault in plugins/opengl/src/vertexbuffer.cpp.
  - It concerns third-party plugins using the compiz opengl API.
  - The crash occurs during rendering after shaders are added using GLWindow.addShaders and
  after a Uniform is manually added to the vertex buffer.

3319. By Didier Roche-Tolomelli

releasing version 1:0.9.8.4+bzr3407-0ubuntu1

3318. By Timo Jyrinki

* New upstream snapshot.
  - Cherry-picked fixes in Ubuntu merged to development branch
  - Disable failing tests due to distro patch (LP: #1058577)
  - Fix leakage of destroyed_pixmaps_table, containing pointers to freed
    decor_t's which could result in a freed GHashTable being passed into
    g_hash_table_remove and causing a crash. (LP: #1060171)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-10-17 06:06:09 +0000
3+++ debian/changelog 2012-10-21 18:59:21 +0000
4@@ -1,3 +1,12 @@
5+compiz (1:0.9.8.4+bzr3407-0ubuntu2) UNRELEASED; urgency=low
6+
7+ * Fixed segfault in plugins/opengl/src/vertexbuffer.cpp.
8+ - It concerns third-party plugins using the compiz opengl API.
9+ - The crash occurs during rendering after shaders are added using GLWindow.addShaders and
10+ after a Uniform is manually added to the vertex buffer.
11+
12+ -- Nabil Stendardo <nabil@stendardo.org> Sun, 21 Oct 2012 20:42:01 +0200
13+
14 compiz (1:0.9.8.4+bzr3407-0ubuntu1) quantal-proposed; urgency=low
15
16 * New upstream snapshot.
17
18=== modified file 'plugins/opengl/src/vertexbuffer.cpp'
19--- plugins/opengl/src/vertexbuffer.cpp 2012-09-05 23:54:21 +0000
20+++ plugins/opengl/src/vertexbuffer.cpp 2012-10-21 18:59:21 +0000
21@@ -522,7 +522,7 @@
22 // set per-plugin uniforms
23 for (unsigned int i = 0; i < uniforms.size (); i++)
24 {
25- uniforms[i]->set (program);
26+ uniforms[i]->set (tmpProgram);
27 }
28
29 //convert paint attribs to 0-1 range

Subscribers

People subscribed via source and target branches