mhinz / mhinz/vim-grepper

A bug about memory leak whiling search a char Colon(:)

Open
#223 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
1.2k
Forks
62
PR merge metrics
No merged PRs in 30d

Description

# environment
- vim: VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jan 7 2020 22:53:41)
- grepper.commit: 'dde6a66'
- OS:arch linux x86_64
- Mem: 8GB
- grepper configuration in vimrc:
Plug 'mhinz/vim-grepper' , { 'on': ['Grepper',
\ '(GrepperOperator)'] }
- other plugin:
![2020-01-18_15-12-02](https://user-images.githubusercontent.com/29906128/72660186-1cc2d700-3a05-11ea-9b15-9dac6f80010a.png)

# actual behavior
```bash
$ cd ~/.vim && vim vimrc

:GrepperAg :
```
# expected behavior
I want search all colon(:) in vimrc.

# bug
The terrible consequence of the above behavior is to cause a serious memory leak in just a few seconds, and finally the entire system must be reboot violently.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in Vim 8.2 with the reported vimrc setup by running :GrepperAg : and searching for colons in vimrc. Trace the GrepperAg entry point and the configured search backend, then verify that searching for : completes without runaway memory use and returns the expected matches.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
search, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.