!PbcQeaWcgMyjVfeGQN:nixos.org

Nix Mozilla 🦊🐦🐒

168 Members
A room about a number of weird animals (also known as Mozilla products): Firefox, Thunderbird, Spidermonkey, NSS, cacert. Also a little bit of fun times, small amounts of extreme, when building weird animals. But for bugs please file GitHub issues. | Release Schedule: https://whattrainisitnow.com | Crash-Stats: https://crash-stats.mozilla.org/search/?distribution_id=%3Dnixos&product=Firefox&product=Thunderbird47 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
12 Nov 2024
@nbp:mozilla.orgnbp

emily: I can forward questions if needed.

The whole concept is kind of fun. Some components are compiled as WebAssembly before being compiled to assembly and embedded in the binary. There is no WebAssembly interpreted/jitted at the end, but all the sand-boxing of the execution remains around the embedded component. This is a security feature to isolate components of Firefox.

10:51:40
@nbp:mozilla.orgnbpunless you are referring to WASI as a target, in which case I am not aware, but I can still forward questions.10:53:53
@emilazy:matrix.orgemily
In reply to @nbp:mozilla.org

emily: I can forward questions if needed.

The whole concept is kind of fun. Some components are compiled as WebAssembly before being compiled to assembly and embedded in the binary. There is no WebAssembly interpreted/jitted at the end, but all the sand-boxing of the execution remains around the embedded component. This is a security feature to isolate components of Firefox.

so here's my understanding of the situation:

  • https://bugzilla.mozilla.org/show_bug.cgi?id=1905251 was opened for an LLVM 19-related regression in the WASI build
  • https://hg.mozilla.org/integration/autoland/rev/23a9f6555c7c was merged as a workaround
  • it was backed out in https://hg.mozilla.org/mozilla-central/rev/b8a794387245 because it was fixed upstream
  • from my digging, it seems pretty clear that the upstream fix was https://github.com/llvm/llvm-project/pull/97451
  • but we seem to get the same error even in the latest LLVM 19 released months after that fix
  • re-applying the previous Firefox workaround fixes it
13:49:39
@emilazy:matrix.orgemilywhich makes me wonder "are we absolutely sure it was tested that the fix actually fixed it?"13:49:51
@emilazy:matrix.orgemilybut – Nixpkgs compilers are weird. it's also possible we're messing it up somehow and it's our fault13:50:02
@nbp:mozilla.orgnbphave the changes stick in LLVM, or did they got backed out of LLVM?13:56:14
@hexa:lossy.networkhexaI can see the changes are still applied in 19.1.314:07:51
@emilazy:matrix.orgemilyI didn't see any indication of revert14:12:07
@emilazy:matrix.orgemilythe Mozilla bug does not directly link the LLVM change, but the circumstances, error message, and workaround are an exact match14:12:23
@emilazy:matrix.orgemilyand it seems like it should directly fix the build error I saw14:12:33
@emilazy:matrix.orgemilyso I'm wondering if upstream LLVM fix is broken and Mozilla didn't fully test it (understandable since they haven't yet upgraded their actual builders to LLVM 19 yet AFAIK), or if somehow we are breaking things with our weirdness14:12:57
@emilazy:matrix.orgemilyit is no longer urgent since I reapplied the workaround on our LLVM 19 branch, but it is concerning14:13:11
@nbp:mozilla.orgnbpMozilla maintains its own version of LLVM, maybe there is another fix that went in that has not been upstreamed?14:21:20
@nbp:mozilla.orgnbp * Mozilla maintains its pinned version of LLVM, maybe there is another fix that went in that has not been upstreamed?14:21:38
@emilazy:matrix.orgemilythey said "Backed out as requested by owner because the upstream issue was fixed."14:30:41
@emilazy:matrix.orgemilyand AFAIK the Mozilla builders are not yet on LLVM 19 (https://bugzilla.mozilla.org/show_bug.cgi?id=1925199)14:30:50
@emilazy:matrix.orgemilyand the timing of the backout was very close to the LLVM PR I linked14:30:59
@emilazy:matrix.orgemilyso I would be surprised were that the case14:31:03
@nbp:mozilla.orgnbpin this change, I see https://phabricator.services.mozilla.com/differential/changeset/?ref=8497643 , would that help?14:46:06

Show newer messages


Back to Room ListRoom Version: 9