Tor Browser crash

Hello, Nix community.

When I launch tor-browser-bundle-bin package i got something like this:

I have inspected my system logs and got crash message:

Module /nix/store/9xfad3b5z4y00mzmk2wnn4900q0qmxns-glibc-2.35-224/lib/ld-linux-x86-64.so.2 with build-id 3be2bc3749163683f612e0fb8169ce51f75742fe
                Module linux-vdso.so.1 with build-id 4b65306f10cc16b697414c0163bb32ec2789167b
                Module libpciaccess.so.0 without build-id.
                Module libncursesw.so.6 without build-id.
                Module libdrm_intel.so.1 without build-id.
                Module libdrm_nouveau.so.2 without build-id.
                Module libdrm_amdgpu.so.1 without build-id.
                Module libelf.so.0 without build-id.
                Module libdrm_radeon.so.1 without build-id.
                Module libLLVM-14.so with build-id 413b2069f34cc62e715622f70b0514cd5d90a283
                Module radeonsi_dri.so with build-id 2728fa0e1302e965bef4adb60965cfdbb4c1f5ad
                Module libxshmfence.so.1 without build-id.
                Module libxcb-sync.so.1 without build-id.
                Module libxcb-present.so.0 without build-id.
                Module libxcb-dri3.so.0 without build-id.
                Module libwayland-server.so.0 with build-id d75f285bdd509c508571419f7e5a5d40849e9c6e
                Module libdrm.so.2 without build-id.
                Module libxcb-xfixes.so.0 without build-id.
                Module libxcb-dri2.so.0 without build-id.
                Module libglapi.so.0 without build-id.
                Module libgbm.so.1 without build-id.
                Module libEGL_mesa.so.0 without build-id.
                Module libX11-xcb.so.1 without build-id.
                Module libdbus-glib-1.so.2 without build-id.
                Module libasound.so.2 without build-id.
                Module libxul.so with build-id 440e0cec9bf0c59ac29f7cd86e8999149c69dafc
                Module libmozwayland.so with build-id 70f3e5407165f04ddcb4fa2f47194fc866b9ebf2
                Module libcap.so.2 without build-id.
                Module libicudata.so.72 without build-id.
                Module libsystemd.so.0 without build-id.
                Module libGLX.so.0 without build-id.
                Module libXdmcp.so.6 without build-id.
                Module libXau.so.6 without build-id.
                Module libGLdispatch.so.0 without build-id.
                Module libdatrie.so.1 without build-id.
                Module libpcre.so.1 without build-id.
                Module libblkid.so.1 with build-id d8ed2081e3b05092908b5543c8414552fcac0c82
                Module libsqlite3.so.0 with build-id 134bad57fc05037be1a4091783f101d5dcc1f8cd
                Module libxml2.so.2 without build-id.
                Module libjson-glib-1.0.so.0 without build-id.
                Module libicui18n.so.72 without build-id.
                Module libicuuc.so.72 without build-id.
                Module libdbus-1.so.3 without build-id.
                Module libatspi.so.0 without build-id.
                Module libjpeg.so.62 without build-id.
                Module libexpat.so.1 without build-id.
                Module libbz2.so.1 without build-id.
                Module libGL.so.1 without build-id.
                Module libXrender.so.1 without build-id.
                Module libxcb-render.so.0 without build-id.
                Module libxcb.so.1 without build-id.
                Module libxcb-shm.so.0 without build-id.
                Module libpng16.so.16 without build-id.
                Module libEGL.so.1 without build-id.
                Module libpixman-1.so.0 with build-id c4928726699593f434ff67f3d8df6603711a97cd
                Module libgraphite2.so.3 without build-id.
                Module libfreetype.so.6 without build-id.
                Module libthai.so.0 without build-id.
                Module libselinux.so.1 without build-id.
                Module libmount.so.1 with build-id 10ca2d38b086e9dfd686f26f019bffa09becaa25
                Module libz.so.1 without build-id.
                Module libffi.so.8 without build-id.
                Module libpcre2-8.so.0 without build-id.
                Module libXinerama.so.1 without build-id.
                Module libXrandr.so.2 without build-id.
                Module libXcomposite.so.1 without build-id.
                Module libXdamage.so.1 without build-id.
                Module libXcursor.so.1 without build-id.
                Module libXext.so.6 without build-id.
                Module libwayland-egl.so.1 with build-id c5d4e9c3c41cc5e3fd4bf72e9690fa1ef4e44995
                Module libwayland-client.so.0 with build-id 293f2432932ce4710bfa9acbfe17ff1d46b24ffb
                Module libxkbcommon.so.0 without build-id.
                Module libXfixes.so.3 without build-id.
                Module libtracker-sparql-3.0.so.0 without build-id.
                Module libatk-bridge-2.0.so.0 without build-id.
                Module libX11.so.6 without build-id.
                Module libXi.so.6 without build-id.
                Module libepoxy.so.0 without build-id.
                Module libatk-1.0.so.0 without build-id.
                Module libgdk_pixbuf-2.0.so.0 with build-id 40d1667712d70ff8171f56d5cda025ee220da7a8
                Module libcairo-gobject.so.2 with build-id 5bbd0c51d1cc7ffb1eaa24a6dd0c6e14689a42a4
                Module libfribidi.so.0 without build-id.
                Module libfontconfig.so.1 without build-id.
                Module libpangoft2-1.0.so.0 without build-id.
                Module libcairo.so.2 with build-id 0d052fc40b4b3363ddf20b5767a7c32d9b546b72
                Module libharfbuzz.so.0 without build-id.
                Module libpango-1.0.so.0 without build-id.
                Module libpangocairo-1.0.so.0 without build-id.
                Module libgio-2.0.so.0 with build-id 22b0b697c5fb96f9854883ee5b72ba83720935f9
                Module libgobject-2.0.so.0 with build-id e40d6a631ab6a98feca46a45008c874ac3b05750
                Module libglib-2.0.so.0 with build-id cd4a1b50260ebd15cc08477502a9a4f2ea4c193c
                Module libgmodule-2.0.so.0 with build-id ab4b10ee20b228d1fa4be27f29ebae890807ff80
                Module libgdk-3.so.0 with build-id b97698a4a0fef1737f4508e2679ff960e92d7d6f
                Module libgtk-3.so.0 with build-id 865ec84a2e9a588e5084b8f29b8022b73c0b5a83
                Module libmozgtk.so with build-id bd6441644d00ce4f24880b27ac337723349ce00c
                Module libssl3.so with build-id a60c7243ef8a50f937dc94b2c47ed87a6a44acc5
                Module libmozsqlite3.so with build-id c4fdc7481c1e842bb48c9f2f98d80e486a91642d
                Module libsmime3.so with build-id 984d17b1c88a0dc9a2e05f0537583bdd21c131b5
                Module libnss3.so with build-id 4c8ddf05cf81b30726228330d200dd33c8dc4e09
                Module libnssutil3.so with build-id b493be95e229bdfc7ee76c6bbc531866d312ea0b
                Module liblgpllibs.so with build-id 3e1e90cfc722ba6093565714ee8313dcbcb9b272
                Module librt.so.1 with build-id 704dc642317eaae908d64fd755285392a8825146
                Module libmozsandbox.so with build-id 34f2e5be347e2169a0ec591f0c8f212adadff5a9
                Module libplds4.so with build-id 151c17c928ea7e68eb80031471259f4d9479c1df
                Module libplc4.so with build-id 329efa04957422bb1677ba1de92a2285b066e3d2
                Module libnspr4.so with build-id fb8d7aa5d7ac5ed4bc747451f6dee98b326ed2d0
                Module libc.so.6 with build-id 3d6884d200ead572b7b89a4133f645c7a3c039ed
                Module libgcc_s.so.1 without build-id.
                Module libm.so.6 with build-id 5cc630080219b350d8f9e4573c65d2dd931ea978
                Module libstdc++.so.6 without build-id.
                Module libdl.so.2 with build-id 2e86539e324ffb14e185718fd284d3f3f2568f06
                Module libpthread.so.0 with build-id 0f7050f6ef81222c7290351dfa67e5e062c797bf
                Module libhardened_malloc.so with build-id 266ab444ca77fb75aee0d2ada1c2b9796443725f
                Module firefox with build-id 1f9720f3e5384180eeeb195fecef36f5b6e9f34e
                Stack trace of thread 54907:
                #0  0x000055cba18163b0 mozalloc_abort (firefox + 0x183b0)
                #1  0x000055cba18163d0 abort (firefox + 0x183d0)
                #2  0x00007f6ebfea90d9 fatal_error (libhardened_malloc.so + 0x20d9)
                #3  0x00007f6ebfea92ca deallocate_large.cold (libhardened_malloc.so + 0x22ca)
                #4  0x00007f6ebfeacff8 free_sized (libhardened_malloc.so + 0x5ff8)
                #5  0x00007f6ebfeada9a _ZdlPvm (libhardened_malloc.so + 0x6a9a)
                #6  0x00007f6eaa9d0545 _ZNSt17_Function_handlerIFvRKiESt8functionIFviEEE10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation (libLLVM-14.so + 0x1059545)
                #7  0x00007f6eaa9d0ba3 _ZN4llvm2cl5applyINS0_3optIiLb0ENS0_6parserIiEEEEA17_cJNS0_12OptionHiddenENS0_11initializerIiEENS0_18NumOccurrencesFlagENS0_2cbIviEENS0_4descEEEEvPT_RKT0_DpRKT1_ (libLLVM-14.so + 0x1059ba3)
                #8  0x00007f6eaa5c470b _GLOBAL__sub_I_OptBisect.cpp (libLLVM-14.so + 0xc4d70b)
                #9  0x00007f6ebfebce1e call_init (/nix/store/9xfad3b5z4y00mzmk2wnn4900q0qmxns-glibc-2.35-224/lib/ld-linux-x86-64.so.2 + 0x5e1e)
                #10 0x00007f6ebfebcf0c _dl_init (/nix/store/9xfad3b5z4y00mzmk2wnn4900q0qmxns-glibc-2.35-224/lib/ld-linux-x86-64.so.2 + 0x5f0c)
                #11 0x00007f6ebfad873c _dl_catch_exception (libc.so.6 + 0x15673c)
                #12 0x00007f6ebfec3c6e dl_open_worker (/nix/store/9xfad3b5z4y00mzmk2wnn4900q0qmxns-glibc-2.35-224/lib/ld-linux-x86-64.so.2 + 0xcc6e)
                #13 0x00007f6ebfad86e4 _dl_catch_exception (libc.so.6 + 0x1566e4)
                #14 0x00007f6ebfec3e3e _dl_open (/nix/store/9xfad3b5z4y00mzmk2wnn4900q0qmxns-glibc-2.35-224/lib/ld-linux-x86-64.so.2 + 0xce3e)
                #15 0x00007f6ebfa06d0a dlopen_doit (libc.so.6 + 0x84d0a)
                #16 0x00007f6ebfad86e4 _dl_catch_exception (libc.so.6 + 0x1566e4)
                #17 0x00007f6ebfad87a3 _dl_catch_error (libc.so.6 + 0x1567a3)
                #18 0x00007f6ebfa067fe _dlerror_run (libc.so.6 + 0x847fe)
                #19 0x00007f6ebfa06dd1 dlopen@GLIBC_2.2.5 (libc.so.6 + 0x84dd1)
                #20 0x00007f6eb24ebc8a loader_open_driver_lib (libEGL_mesa.so.0 + 0x27c8a)
                #21 0x00007f6eb24ebd69 loader_open_driver (libEGL_mesa.so.0 + 0x27d69)
                #22 0x00007f6eb24de54b dri2_load_driver_common.isra.0 (libEGL_mesa.so.0 + 0x1a54b)
                #23 0x00007f6eb24ea5fb dri2_initialize_wayland (libEGL_mesa.so.0 + 0x265fb)
                #24 0x00007f6eb24de198 dri2_initialize (libEGL_mesa.so.0 + 0x1a198)
                #25 0x00007f6eb24d5e8d eglInitialize (libEGL_mesa.so.0 + 0x11e8d)
                #26 0x00007f6eb6591593 n/a (libxul.so + 0x3f4c593)
                #27 0x00007f6eb658cfea n/a (libxul.so + 0x3f47fea)
                #28 0x00007f6eb658d676 n/a (libxul.so + 0x3f48676)
                #29 0x00007f6eb65845a3 n/a (libxul.so + 0x3f3f5a3)
                #30 0x00007f6eb6589c7b n/a (libxul.so + 0x3f44c7b)
                #31 0x00007f6eb658a0d5 n/a (libxul.so + 0x3f450d5)
                #32 0x000055cba180b548 _start (firefox + 0xd548)
                #33 0x00007f6ebf9ab24e __libc_start_call_main (libc.so.6 + 0x2924e)
                #34 0x00007f6ebf9ab309 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x29309)
                #35 0x000055cba180b01c _start (firefox + 0xd01c)
                ELF object binary architecture: AMD x86-64

My linux kernel: Linux nixos 5.15.89-xanmod1
My DE: sway
My environment variables:

export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=sway
export XDG_CURRENT_DESKTOP=sway
export MOZ_ENABLE_WAYLAND=1

export QT_QPA_PLATFORM=wayland
export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
export QT_QPA_PLATFORMTHEME=gnome

Could you check the value of network.proxy.socks in your about:config? It should be file:///run/user/1000/Tor/socks.socket (Adjust for your user ID. It may be other than 1000.), unless you configured Tor differently on purpose.

Using the correct path already fixed the same apparent issue for someone.

thank you. adding file:///run/user/1000/Tor/socks.socket fixed my problem.

Confirmed.

network.proxy.socks was set to 127.0.0.1 as installed. Behaviour was as described in the OP.
Changing it to file:///run/user/1000/Tor/socks.sockethas resolved the problem.