Git Product home page Git Product logo

Comments (7)

fernvenue avatar fernvenue commented on June 2, 2024

What happened when you use bash instead of fish?

from rathole.

rlue avatar rlue commented on June 2, 2024

No difference; see point 8 above.

from rathole.

rapiz1 avatar rapiz1 commented on June 2, 2024

from rathole.

rapiz1 avatar rapiz1 commented on June 2, 2024

from rathole.

rlue avatar rlue commented on June 2, 2024

That last one is plausible. This is a work laptop, and I did get a slack message from IT asking about me running rathole that same morning. Still weird that 1) curl is broken, 2) rathole via cargo install works, and 3) they aren't blocked for the first 90 seconds after startup.


I suspect it's related to upx. Could you try upx the binary produced by cargo install? The upx version used by rathole can be found under.github

How? Sorry, I am not the smartest.

$ cargo install upx
    Updating crates.io index
error: could not find `upx` in registry `crates-io` with version `*`
$ fd -uuu upx ~/.cargo
$ cargo install --force rathole 2>&1 | grep upx

all turned up nothing. Not sure where else to look. Running the upx binary from their github releases page looks normal:

$ curl -L https://github.com/upx/upx/releases/download/v4.2.2/upx-4.2.2-amd64_linux.tar.xz | tar xJf -
$ upx-4.2.2-amd64_linux/upx --version
upx 4.2.2
NRV data compression library 0.84
UCL data compression library 1.03
zlib data compression library 1.3.0.1-motley
LZMA SDK version 4.43
Copyright (C) 1996-2024 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 1996-2024 Laszlo Molnar
Copyright (C) 2000-2024 John F. Reiser
Copyright (C) 2002-2024 Jens Medoch
Copyright (C) 1995-2023 Jean-loup Gailly and Mark Adler
Copyright (C) 1999-2006 Igor Pavlov
UPX comes with ABSOLUTELY NO WARRANTY; for details type 'upx -L'.

from rathole.

rapiz1 avatar rapiz1 commented on June 2, 2024

from rathole.

rlue avatar rlue commented on June 2, 2024

Wow you are 100% correct. Compressing the binary built with cargo breaks it.

$ curl -L https://github.com/upx/upx/releases/download/v4.2.2/upx-4.2.2-amd64_linux.tar.xz | tar xJf -
$ cd upx-4.2.2-amd64_linux
$ ./upx $HOME/.cargo/bin/rathole
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2024
UPX 4.2.2       Markus Oberhumer, Laszlo Molnar & John Reiser    Jan 3rd 2024

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
   4597664 ->   1535008   33.39%   linux/amd64   rathole

Packed 1 file.
$ rathole
fish: Job 1, 'rathole' terminated by signal SIGKILL (Forced quit)

Case closed, thanks for all the help. 🙏

from rathole.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.