Firefox ends up with 2 different copies of sqlite loaded in to memory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
WebApps: libunity-webapps |
Confirmed
|
High
|
Maxim Ermilov | ||
libunity-webapps (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Quantal |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Firefox contains its own copy of sqlite which is updated in regular updates. Currently, libunity-webapps links against the system libsqlite causing 2 copies of it to be mapped in to memory at the same time. This results in symbol collisions and probably only currently works because the wind is blowing in the right direction. As the copy of sqlite shipped with Firefox changes in regular updates, this is likely to go wrong at some point in a future update.
chr1s@farnsworth:~$ cat /proc/`pidof firefox`/maps | grep sqlite
7f7b043f8000-
7f7b0c6bf000-
7f7b0c764000-
7f7b0c964000-
7f7b0c966000-
7f7b276ab000-
7f7b2772c000-
7f7b2792c000-
7f7b2792e000-
7f7b28a09000-
affects: | libunity-webapps (Ubuntu) → ubuntu |
affects: | ubuntu → libunity-webapps (Ubuntu) |
Changed in libunity-webapps (Ubuntu Quantal): | |
status: | New → Fix Released |
Changed in libunity-webapps (Ubuntu): | |
status: | New → Fix Released |
status: | Fix Released → New |
Changed in libunity-webapps (Ubuntu Quantal): | |
status: | Fix Released → New |
Changed in libunity-webapps: | |
assignee: | nobody → Alexandre Abreu (abreu-alexandre) |
importance: | Undecided → High |
Changed in libunity-webapps: | |
status: | New → Confirmed |
Changed in libunity-webapps: | |
assignee: | Alexandre Abreu (abreu-alexandre) → Maxim Ermilov (zaspire) |
Hi Chris! I cannot comment on the libunity-webapps's usage of SQLite -- I'll leave that to the webapps developers.
However, our Online Accounts extension is probably also causing the system libsqlite to be loaded into FF process space: we are opening (via js-ctypes) a library called libwebaccounts.so, which in turn depends on libaccounts-glib, which uses libsqlite. Is this unsafe as well?
I don't think that FF code would have access to the system libsqlite symbols in this case.