Tor Browser crashing on startup

Tor browser crashes on start with the following output. I installed tor-browser-bundle-bin as a system package. Is there something I need to do in addition or something I need to do differently?

Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libpci missing (t=0.295305) [GFX1-]: glxtest: libpci missing
Fontconfig warning: "/nix/store/8s3w3vy7pvkvxhjjzndbqxybzsgj62i3-tor-browser-bundle-bin-11.0/share/tor-browser/TorBrowser/Data/fontconfig/fonts.conf", line 85: unknown element "blank"
Dec 03 14:14:17.950 [notice] Tor 0.4.6.8 (git-d5efc2c98619568e) running on Linux with Libevent 2.1.12-stable, OpenSSL 1.1.1l, Zlib 1.2.11, Liblzma N/A, Libzstd N/A and Glibc 2.33 as libc.
Dec 03 14:14:17.950 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Dec 03 14:14:17.950 [notice] Read configuration file "/nix/store/8s3w3vy7pvkvxhjjzndbqxybzsgj62i3-tor-browser-bundle-bin-11.0/share/tor-browser/TorBrowser/Data/Tor/torrc-defaults".
Dec 03 14:14:17.950 [notice] Read configuration file "/home/username/.local/share/tor-browser/TorBrowser/Data/Tor/torrc".
Dec 03 14:14:17.952 [notice] Opening Control listener on /home/username/.local/share/tor-browser/TorBrowser/Data/Tor/control.socket
Dec 03 14:14:17.953 [notice] Opened Control listener connection (ready) on /home/username/.local/share/tor-browser/TorBrowser/Data/Tor/control.socket
Dec 03 14:14:17.953 [notice] DisableNetwork is set. Tor will not make or accept non-control network connections. Shutting down all existing connections.
Dec 03 14:14:17.000 [notice] Parsing GEOIP IPv4 file /nix/store/8s3w3vy7pvkvxhjjzndbqxybzsgj62i3-tor-browser-bundle-bin-11.0/share/tor-browser/TorBrowser/Data/Tor/geoip.
Dec 03 14:14:18.000 [notice] Parsing GEOIP IPv6 file /nix/store/8s3w3vy7pvkvxhjjzndbqxybzsgj62i3-tor-browser-bundle-bin-11.0/share/tor-browser/TorBrowser/Data/Tor/geoip6.
Dec 03 14:14:18.000 [notice] Bootstrapped 0% (starting): Starting
Dec 03 14:14:18.000 [notice] Starting with guard context "default"
Dec 03 14:14:18.000 [notice] Delaying directory fetches: DisableNetwork is set.
Dec 03 14:14:18.000 [notice] New control connection opened.
Dec 03 14:14:18.000 [notice] New control connection opened.
Dec 03 14:14:18.000 [notice] New control connection opened.
Dec 03 14:14:18.000 [notice] New control connection opened.
Fontconfig warning: "/nix/store/8s3w3vy7pvkvxhjjzndbqxybzsgj62i3-tor-browser-bundle-bin-11.0/share/tor-browser/TorBrowser/Data/fontconfig/fonts.conf", line 85: unknown element "blank"
Dec 03 14:14:18.000 [notice] New control connection opened.
Dec 03 14:14:18.000 [notice] New control connection opened.
fatal allocator error: invalid uninitialized allocator usage
Redirecting call to abort() to mozalloc_abort

Exiting due to channel error.
Dec 03 14:14:19.000 [notice] Owning controller connection has closed -- exiting now.
Dec 03 14:14:19.000 [notice] Owning controller connection has closed -- exiting now.
Dec 03 14:14:19.000 [notice] Owning controller connection has closed -- exiting now.
Dec 03 14:14:19.000 [notice] Catching signal TERM, exiting cleanly.

My prior two queries were answered within a day. Bug perhaps?

I found this issue with a possible workaround. As a complete newb, how do I set useHardenedMalloc = false?

When you normally add a package without overrides, it would look like:

environment.systemPackages = with pkgs; [
  tor-browser-bundle-bin
]:

With overrides you can override the inputs to a package. Inputs are all the tings in the curly braces at the top.

See tor-browserbundle-bin/default.

For this case the override should look like this:

environment.systemPackages = with pkgs; [
  (tor-browser-bundle-bin.override {
    useHardenedMalloc = false;
   })
]:
1 Like

Many thanks! That seemed to do the trick, at least from the terminal. I also had to switch the installation of tor-browser-bundle-bin to the unstable channel.

One niggling little issue: it won’t start from Gnome dash. When I try to start it via Gnome dash, an icon shows up in dash but no browser window and then the icon disappears.

Restart the gnome session by logging out or restarting.

1 Like