!PbcQeaWcgMyjVfeGQN:nixos.org

Nix Mozilla 🦊🐦🐒

169 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=Thunderbird49 Servers

Load older messages


SenderMessageTime
12 Nov 2024
@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
@emilazy:matrix.orgemilythat's not relevant to us14:47:46
@emilazy:matrix.orgemilywe do not use that build infra14:47:50
@nbp:mozilla.orgnbpwould using the same revision help in identifying the issue?14:49:18
@emilazy:matrix.orgemilytechnically we went from 19.1.1 to 19.1.3, but I think I tested 19.1.2 between that too :)15:02:05
@emilazy:matrix.orgemilywe do quite a bit of patching to LLVM so it's unlikely we'll exactly reproduce their build environment15:02:16
@emilazy:matrix.orgemilybut, the patch was already in 19.1.115:02:23
@emilazy:matrix.orgemilyit would be surprising if there was a follow-up in 19.1.2 that I completely failed to find that was then regressed in 19.1.315:02:34
@emilazy:matrix.orgemilynot impossible, but surprising15:02:41
@emilazy:matrix.orgemilypretty sure the revert of the workaround predated 19.1.2 anyway15:03:06
@hexa:lossy.networkhexahttps://github.com/NixOS/nixpkgs/pull/35544417:22:49
13 Nov 2024
@inayet:matrix.orgInayet joined the room.22:15:18
16 Nov 2024
@hexa:lossy.networkhexahttps://mozillafoundation.tfaforms.net/10108:56:29

Show newer messages


Back to Room ListRoom Version: 9