Skip to content

Fails to open an extremely large .sh file #6113

Description

@mksinicus

Summary

I tried to open a large (247.8 MB) .sh file with helix, which contains a tar archive at its EOF. Then the terminal freezed for about 40s and helix didn't start, leaving the message below:

munmap_chunk(): invalid pointer
Aborted (core dumped)

Reproduction Steps

$ hx racket-8.8-v86_64-linux-cs.sh
munmap_chunk(): invalid pointer
Aborted (core dumped)

racket-8.8-v86_64-linux-cs.sh was downloaded from https://download.racket-lang.org/installers/8.8/racket-8.8-x86_64-linux-cs.sh

Helix log

RUST_BACKTRACE=1 hx -vv prints the same thing as above.

Below are the only entries of the day. Seems irrelevant to me (?)

~/.cache/helix/helix.log

2023-02-26T21:55:11.993 helix_loader [DEBUG] Located configuration folders: []
2023-02-26T21:55:12.004 helix_view::clipboard [DEBUG] Using xclip to interact with the system and selection (primary) clipboard

Platform

Linux (Kubuntu 22.04)

Terminal Emulator

Alacritty 0.11.0, as well as Konsole 21.12.3

Helix Version

helix 22.12 (98a3d46)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions