Client fails to work with multiple client platform versions installed
Bug #1488500 reported by
Sebastien Bacher
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mir |
Fix Released
|
High
|
Alan Griffiths | ||
mir (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Using a current wily which has been regularly updated though the cycle, you can end up with old client platform versions still installed and mir trying to load those before the current once.
With the mesa module this results in a segfault (after the correct library is identified).
Related branches
lp://staging/~alan-griffiths/mir/fix-1488500
- PS Jenkins bot (community): Approve (continuous-integration)
- Daniel van Vugt: Approve
- Alexandros Frantzis (community): Approve
-
Diff: 80 lines (+39/-15)1 file modifiedsrc/common/sharedlibrary/shared_library_prober.cpp (+39/-15)
Changed in mir: | |
status: | Confirmed → In Progress |
summary: |
- Client fails to work with multiple client platform versions installed, - picking wrong one + Client fails to work with multiple client platform versions installed |
description: | updated |
Changed in mir: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
It is weird:
The client modules appear to have correctly versioned symbols:
$ objdump -T /usr/lib/ x86_64- linux-gnu/ mir/client- platform/ mesa.so. 2 | grep is_appropriate_ module PLATFORM_ 2 is_appropriate_ module
0000000000004270 g DF .text 0000000000000054 MIR_CLIENT_
$ objdump -T /usr/lib/ x86_64- linux-gnu/ mir/client- platform/ mesa.so. 3 | grep is_appropriate_ module ??????? ??????? ? g DF .text ??????? ??????? ??????? MIR_CLIENT_ PLATFORM_ 3 is_appropriate_ module
???????
And we specify the version:
auto probe = module- >|load_ function< mir::client: :ClientPlatform Probe>( "is_appropriate _module" , CLIENT_ PLATFORM_ VERSION) ;