Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: static version with -l flag will segfault #466

Closed
laoshaw opened this issue Oct 2, 2023 · 8 comments
Closed

bug: static version with -l flag will segfault #466

laoshaw opened this issue Oct 2, 2023 · 8 comments

Comments

@laoshaw
Copy link

laoshaw commented Oct 2, 2023

If eza does something unexpected, or its output looks wrong, or it displays an error on the screen, or if it outright crashes, then please include the following information in your report:

  • The version of eza being used (eza --version)
    v0.13.1
  • The command-line arguments you are using
    -l
  • Your operating system and hardware platform
    ubuntu 22.04 x86

If it’s a crash, please include the full text of the crash that gets printed to the screen. If you’re seeing unexpected behaviour, a screenshot of the issue will help a lot.


if I use the static version, eza_x86_64-unknown-linux-gnu_static.tar.gz, when '-l' option is used, it segfaults.

@laoshaw laoshaw added the errors Something isn't working label Oct 2, 2023
@laoshaw laoshaw changed the title bug: bug: static version with -l flag will segfault Oct 2, 2023
@PThorpe92
Copy link
Member

image
Indeed it does...

Thank you for reporting this.

@gierens
Copy link
Member

gierens commented Oct 2, 2023

I think we should first confirm this still happens with v0.14.0 before investigating further.

@gierens
Copy link
Member

gierens commented Oct 2, 2023

@gierens
Copy link
Member

gierens commented Oct 2, 2023

According to valgrind there seems to be some uninitialized syscall parameter ... for more info we probably need a debug build to track this down.

@gierens
Copy link
Member

gierens commented Oct 2, 2023

@laoshaw ... quick fix for you ... use the static musl builds like: https://github.com/eza-community/eza/releases/download/v0.14.0/eza_x86_64-unknown-linux-musl.tar.gz

Also since you are on Ubuntu ... you can install eza from the deb repo mentioned in the README.

@laoshaw
Copy link
Author

laoshaw commented Oct 2, 2023

Thanks. I'm using the shared lib version and it works. Hope eza can get into official deb repo soon.

@MartinFillon MartinFillon self-assigned this Oct 3, 2023
@MartinFillon
Copy link
Contributor

Okay so according to valgrind it seems like our parallelisation usage is not well supported when using static libs

@MartinFillon
Copy link
Contributor

Isuue is known in rust please don't use statically linked binaries rust-lang/rust#94564

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants