blueprint-freespeech / ricochet-refresh

Anonymous peer-to-peer instant messaging
https://www.ricochetrefresh.net
Other
224 stars 27 forks source link

segfaults on NixOS #175

Closed theotheroracle closed 1 year ago

theotheroracle commented 1 year ago

i'm running nixos 23.05-unstable, and when i try to run the x86_64.appimage, i get the error fish: Job 1, './RicochetRefresh-156ddee-x86…' terminated by signal SIGSEGV (Address boundary error)

theotheroracle commented 1 year ago

the tar.gz version gives the same result fish: Job 1, './ricochet-refresh' terminated by signal SIGSEGV (Address boundary error)

morganava commented 1 year ago

That's interesting. Does ricochet-refresh also crash the same way if you build from source locally (you won't have pluggable-transports and it will need a tor binary to exist in $PATH).

Doesn't crash on x86_64 Linux Mint 21.1 vOv

theotheroracle commented 1 year ago

let me try

theotheroracle commented 1 year ago

alright ! i found the issue, fmt was too new, and now i got it built, but i'm getting a different error now image although strangely enough i was getting the same error on the original ricochet package

theotheroracle commented 1 year ago

here's the package if you wanna try it on your system, you'll just need install nix, and then clone the repo and run nix run --experimental-features 'nix-command flakes'

and here's the current nixpkgs bug for the previous / possibly new package https://github.com/NixOS/nixpkgs/issues/245239

theotheroracle commented 1 year ago

alright i figured out the issue was just not being able to find tor, and i fixed that so i have a working package now !

morganava commented 1 year ago

@theotheroracle so is this donwnstream packaging issue on the NixOS side or something else?

So one issue you may run into with a new package is that Ricochet-Refresh assumes that it runs/controls its own shipped tor daemon and that the pluggable transports are in a particular location relative to the ricochet-refresh binary's location on disk. So I guess make sure PTs are working as expected?

theotheroracle commented 1 year ago

the issue with the package not being able to find tor is just a dowstream issue, the issue with the appimage segfaulting i don't understand what the issue

theotheroracle commented 1 year ago

using this tool the appimage runs fine, sorry for the confusion, but i also still intend to get the package upstreadmed in nixos !

morganava commented 1 year ago

Awesome! Thanks for following up!