gecko-dev/mozglue
Mike Hommey fc327076fb Bug 1918285 - Avoid lz4frame symbols being exported from gtest libxul. r=firefox-build-system-reviewers,sergesanspaille
The lz4 symbols were never meant to be exposed, the API in Compression.h
being the official way to use it. This is we had LZ4LIB_VISIBILITY set to
nothing. Unfortunately, that wasn't enough, because there is another
similar define for lz4frame: LZ4FLIB_VISIBILITY.

So we had been exporting those lz4frame symbols from firefox-bin
forever, without noticing, but it didn't cause problems until the
symbols were moved to libxul. With them moved to libxul, we end up
with the situation where we might actually end up using the symbols
from the system liblz4, which is pulled indirectly through other
dependencies (through libsystemd, which comes through libdbus).

This is all fine-ish on a "normal" opt build, but with LTO, things
end up such that some calls go through our copy of lz4frame and others
through the system one, and the discrepancy causes a crash.

The symbols file for non-gtest libxul, that hides all symbols but a few,
was saving the non-gtest case, fortunately.

Differential Revision: https://phabricator.services.mozilla.com/D222574
2024-09-18 05:23:16 +00:00
..
android Bug 1908725 - Part 5: Add additional validation for early-startup command line checks, r=ipc-reviewers,mccr8 2024-08-07 20:39:41 +00:00
baseprofiler Backed out 8 changesets (bug 1634785) for causing bustages in EHABIStackWalk.cpp CLOSED TREE 2024-09-17 02:48:59 +03:00
build Bug 1894073 - Suppress TSan false positive during an edge case in process launch. r=decoder,ipc-reviewers,nika 2024-06-18 13:47:52 +00:00
interposers Bug 1883615 - Move libdl checks to moz.configure and make libdl dependencies explicit r=glandium 2024-05-15 20:29:07 +00:00
linker Bug 1898382 - Remove Android < 5.0 specific code from the linker. r=gsvelto 2024-05-23 06:48:36 +00:00
misc Bug 1915228 - Remove expired telemetry scalar startup.skeleton_ui_disabled_reason, r=win-reviewers,TravisLong,gstoll. 2024-08-28 19:44:36 +00:00
static Bug 1918285 - Avoid lz4frame symbols being exported from gtest libxul. r=firefox-build-system-reviewers,sergesanspaille 2024-09-18 05:23:16 +00:00
tests Bug 1902138 - part2 : add a new marker type for video sink rendering. r=media-playback-reviewers,profiler-reviewers,padenot,canaltinova 2024-06-13 17:18:28 +00:00
moz.build Bug 1917739 - Move Lz4 and mfbt/Compression* to mozglue/static. r=nika,frontend-codestyle-reviewers 2024-09-10 20:35:56 +00:00