!PbcQeaWcgMyjVfeGQN:nixos.org

Nix Mozilla ๐ŸฆŠ๐Ÿฆ๐Ÿ’

175 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=Thunderbird51 Servers

Load older messages


SenderMessageTime
20 Sep 2023
@k900:0upti.meK900 โšก๏ธYeah but it could work as a proof of concept10:31:15
@k900:0upti.meK900 โšก๏ธTo make sure it's patchelf that's breaking things10:31:26
@k900:0upti.meK900 โšก๏ธ $env.LD_LIBRARY_PATH = (nix-instantiate --eval --expr --json 'let pkgs = import <nixpkgs> {}; in pkgs.lib.strings.makeLibraryPath (with pkgs; [ alsa-lib gtk3 xorg.libXtst dbus-glib ])' | jq -r); ./firefox 10:47:00
@k900:0upti.meK900 โšก๏ธWorks on the latest nightly10:47:03
@k900:0upti.meK900 โšก๏ธTime to break it10:47:25
@k900:0upti.meK900 โšก๏ธ * $env.LD_LIBRARY_PATH = (nix-instantiate --eval --expr --json 'let pkgs = import <nixpkgs> {}; in pkgs.lib.strings.makeLibraryPath (with pkgs; [ alsa-lib gtk3 xorg.libXtst dbus-glib ])' | jq -r); ./firefox ( + nix-ld) 10:47:37
@k900:0upti.meK900 โšก๏ธOk found it10:54:11
@k900:0upti.meK900 โšก๏ธ OK so basically patchelf --set-rpath on pretty much any .so file makes it die horribly 10:57:16
@k900:0upti.meK900 โšก๏ธThe executables are fine10:57:20
@k900:0upti.meK900 โšก๏ธIt's the dylibs that are the problem10:57:24
@k900:0upti.meK900 โšก๏ธhttps://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/applications/networking/browsers/firefox-bin/default.nix#L179-L18110:58:14
@k900:0upti.meK900 โšก๏ธI'm pretty sure this is entirely unnecessary10:58:20
@k900:0upti.meK900 โšก๏ธAnd can just be removed10:58:22
@k900:0upti.meK900 โšก๏ธAlso I'm pretty sure literally any attempt to load the patchelf-ed library just dies10:59:13
@k900:0upti.meK900 โšก๏ธ
~/downloads/firefox 
โ„ โฏ bat test.c
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
       โ”‚ File: test.c
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
   1   โ”‚ #include <dlfcn.h> 
   2   โ”‚ 
   3   โ”‚ int main() {
   4   โ”‚   dlopen("./libmozsqlite3.so", RTLD_LAZY);
   5   โ”‚ }
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

~/downloads/firefox 
โ„ โฏ gcc test.c

~/downloads/firefox 
โ„ โฏ ./a.out
Segmentation fault: oops, process './a.out' core dumped
Error: nu::shell::external_command

  ร— External command failed
   โ•ญโ”€[entry #7:1:1]
 1 โ”‚ ./a.out
   ยท โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€
   ยท    โ•ฐโ”€โ”€ core dumped
   โ•ฐโ”€โ”€โ”€โ”€
  help: Segmentation fault: child process './a.out' core dumped
11:00:44
@k900:0upti.meK900 โšก๏ธ I think we need @Mic92 11:01:19
@k900:0upti.meK900 โšก๏ธOK what the fuck is going on with firefox-bin anyway11:10:08
@k900:0upti.meK900 โšก๏ธIs it just older than autoPatchelfHook11:10:13
@vcunat:matrix.orgvcunatIIRC it can be necessary to set RPATHs on libs, not just executables. Generally, I mean.11:25:39
@k900:0upti.meK900 โšก๏ธhttps://github.com/NixOS/nixpkgs/pull/25629211:28:04
@k900:0upti.meK900 โšก๏ธOK I just deleted like half the firefox-bin expression11:28:14
@k900:0upti.meK900 โšก๏ธAnd it still works11:28:16
@k900:0upti.meK900 โšก๏ธNow let's see if this also works with Nightly11:31:42
* @nbp:mozilla.orgnbp will not ask about GPU support โ€ฆ11:33:11
@k900:0upti.meK900 โšก๏ธNope, still crashes11:39:37
@k900:0upti.meK900 โšก๏ธ
In reply to@nbp:mozilla.org
will not ask about GPU support โ€ฆ
It does work
11:39:41
@k900:0upti.meK900 โšก๏ธimage.png
Download image.png
11:40:52
@k900:0upti.meK900 โšก๏ธ[GFX1-]: glxtest: libpci missing11:40:57
@k900:0upti.meK900 โšก๏ธDoes say this11:40:59
@k900:0upti.meK900 โšก๏ธI wonder if it'll stop if I just add it11:41:03

Show newer messages


Back to Room ListRoom Version: 9