!PbcQeaWcgMyjVfeGQN:nixos.org

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

171 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
19 Sep 2023
@colemickens:matrix.orgcolemickens K900 โšก๏ธ: yes. Or at least it flat out didn't open and I just assumed it was the same issue. 19:34:57
@k900:0upti.meK900 I think I'm off to sleep for nowย  19:35:59
@k900:0upti.meK900 I might look at it tomorrow 19:36:03
20 Sep 2023
@artturin:matrix.orgArtturinhttps://github.com/colemickens/flake-firefox-nightly/pull/1201:13:08
@k900:0upti.meK900So uh is it still broken06:19:51
@k900:0upti.meK900OK I just tried and yes06:40:31
@k900:0upti.meK900I also just tried injecting the latest patchelf and that didn't help either06:40:41
@elvishjerricco:matrix.orgElvishJerricco joined the room.09:25:50
@joerg:thalheim.ioMic92 You can skip patchelf and use LDLIBRARYPATH and see if that can help you fix the issue. 10:20:01
@joerg:thalheim.ioMic92 LD_LIBRARY_PATH 10:20:14
@nbp:mozilla.orgnbp This is doable, IIRC there is already a wrapper script around Firefox which used to preload everything using ls on Linux. 10:20:52
@vcunat:matrix.orgvcunatYes, but I recall issues due to env propagating to sub-processes, so that programs getting run from browser can then get broken.10:26:17
@vcunat:matrix.orgvcunat Therefore I don't think $LD_* approaches can be a good solution here. 10:27:56
@nbp:mozilla.orgnbphum โ€ฆ indeed, that could happen if an addons were to start something on the system. However, I am not sure this is still possible with WebExtensions.10:28:34
@vcunat:matrix.orgvcunatI meant mainly user clicking to open a downloaded file, etc.10:29:31
@k900:0upti.meK900Yeah but it could work as a proof of concept10:31:15
@k900:0upti.meK900To 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.meK900Works on the latest nightly10:47:03
@k900:0upti.meK900Time 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.meK900Ok 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.meK900The executables are fine10:57:20
@k900:0upti.meK900It's the dylibs that are the problem10:57:24
@k900:0upti.meK900https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/applications/networking/browsers/firefox-bin/default.nix#L179-L18110:58:14
@k900:0upti.meK900I'm pretty sure this is entirely unnecessary10:58:20
@k900:0upti.meK900And can just be removed10:58:22
@k900:0upti.meK900Also 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

Show newer messages


Back to Room ListRoom Version: 9