macvim-dev / macvim-dev/macvim

Crash when using :rewind

Open
#1,057 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I noticed this in the latest builds:
Starting the editor with multiple files (e.g. vim *.txt or gvim *.txt), using :rew after I have switched files with :n at least once results in a crash. The output is:

Vim(32023,0x119aefdc0) malloc: *** error for object 0x100000000: pointer being freed was not allocated
Vim(32023,0x119aefdc0) malloc: *** set a breakpoint in malloc_error_break to debug
Vim: Caught deadly signal ABRT
Vim: Finished.

I build vim/gvim from source after pulling the latest changes via git, the latest version I observed the behaviour with is 8.2.1045.

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 crash by opening multiple files with vim *.txt or gvim *.txt, switching with :n, and then using :rew. Trace the handling of :rew after navigation has occurred; done means the command completes without the reported malloc error or abort.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.