-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
segfault when editing iptables dump file commited in a git repo #7896
Comments
I don't know exactly which part of the file is the trigger. I tried the same thing with other config files (fstab, passwd, to name a few) but only the iptables format triggered the issue (so far). |
This was fixed a while ago by #7227. Either upgrade to master or build with rustc <= 1.70 |
When are you planning on releasing this important fix? The current situation is really annoying for anyone not wanting to build the package themselves |
I've been trying to build the package on NixOS but nixpkgs uses the release tarball to build the package and not the repo and I have zero experience building rust packages on NixOS. An ETA on the release would be nice so I know if I should invest time to learn Rust build principles (which I will likely never use again) or wait for the release. |
Releases happen approximately every 3 months so it will likely happen this or next month. We don't have any strict timelines, and will not commit to such. The official 23.5 release that you can download from our website was built with a rust-toolchain where this issue doesn't occur so you can just use the official release to avoid the problem (or the official nix flake). All other sources of helix builds (package managers) are unofficial and not supported by us. If they ship a broken package that is their problem. In this case, the issue seems to be nixos so the nixpkgs should either continue building helix with the older toolchain (as they have done in the past) or apply the liked PR as a patch until then. |
Summary
This is and oddly specific bug.
When doing
xxd
action in an iptables config file that is commited in git, helix segfaults with no apparently usable logs. It also breaks the terminal.Tried foot and kitty terminals, zsh and bash shells. Seems to be independent of these.
Reproduction Steps
git init repo; cd repo
sudo iptables-save > iptables
git add iptables; git commit -m 'test'
hx iptables
NOR
mode and presxxxd
Asciinema record: https://asciinema.org/a/VF4XKet1b8X8ljjrhElvqEjla
Warning: this will likely break your terminal's input, you will need to close it and start a new one. If you play the asciinema record locally, it will also most likely break your terminal.
Helix log
Platform
Linux - NixOS
Terminal Emulator
kitty, foot
Helix Version
helix 23.05 (7f5940b)
The text was updated successfully, but these errors were encountered: