DSO linking causing segfaults.

Bug #959249 reported by micove
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Compiz
Fix Released
Critical
Unassigned

Bug Description

Hello:

I was going to post this in the #compiz-dev IRC channel but noticed that it was not used anymore and my previous report was taken care of rather quickly.

While packaging compiz-core for Debian and testing it I noticed LP: #958540 and other segfaults. Might as well report the ones I could not find previous reports.

Taken from the attached patch header:
Description: Add missing library links.
 Loading imgsvg was causing segfaults and saying it was missing a symbol from
 libdecoration. I checked the buildlogs and found:
 .
 libimgsvg.so contains an unresolvable reference to symbol decor_apply_gravity: it's probably a plugin.
 libopengl.so contains an unresolvable reference to symbol dlsym: it's probably a plugin.
 libcompiztoolbox.so contains an unresolvable reference to symbol XRenderFindVisualFormat: it's probably a plugin.
 .
 These 3 files are obviously plugins and dpkg-shlibdeps assumes that the program
 that loads the plugins provides these symbols therefore not giving an error.

Basically since indirect linking does not work anymore (DSO) these plugins have to be linked to the libraries that provides this symbols unless the program that actually loads them provides them.

I could only trigger segfaults with just loading/unloading imgsvg but I could not make the other 2 call their missing symbols. Other plugins in compiz-plugins-{main,extra} and libcompizconfig also suffer from these. I will report those to their respective packages I guess.

Also I added a miscellanous patch about one of the pc files.

Revision history for this message
micove (micove) wrote :
Revision history for this message
micove (micove) wrote :
Changed in compiz-core:
milestone: none → 0.9.7.4
Changed in compiz-core:
milestone: 0.9.7.4 → none
Changed in compiz-core:
milestone: none → 0.9.7.6
Changed in compiz-core:
milestone: 0.9.7.6 → 0.9.7.8
Changed in compiz-core:
milestone: 0.9.7.8 → 0.9.8.0
Changed in compiz:
milestone: none → 0.9.8.0
Changed in compiz-core:
milestone: 0.9.8.0 → none
Changed in compiz:
milestone: 0.9.8.0 → 0.9.8.1
Changed in compiz:
milestone: 0.9.8.2 → 0.9.8.4
Changed in compiz:
milestone: 0.9.8.4 → 0.9.9.0
Changed in compiz:
milestone: 0.9.9.0 → 0.9.9.2
Changed in compiz:
milestone: 0.9.9.2 → 0.9.10.0
Revision history for this message
MC Return (mc-return) wrote :

Is this still valid ?

Changed in compiz:
importance: Undecided → Critical
MC Return (mc-return)
Changed in compiz:
status: New → Incomplete
no longer affects: compiz-core
Changed in compiz:
milestone: 0.9.10.0 → 0.9.10.2
MC Return (mc-return)
Changed in compiz:
milestone: 0.9.10.2 → 0.9.11.0
Revision history for this message
Stephen M. Webb (bregma) wrote :

Visual inspection of the listed plugins show dependent libraries are explicitly linked in now. Toolchains adopted by the continuous integration testing used by Compiz will now automatically detect and report this situation as a build failure, so I'm fairly confident it's been fixed.

Changed in compiz:
milestone: 0.9.11.0 → none
status: Incomplete → 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.