Skip to content

vi crash occasionally when opening large file #17935

@xiaoge1001

Description

@xiaoge1001

Steps to reproduce

  1. Generate a very large file, such as: fallocate -l 10G bigfile.
  2. Run vi bigfile
  3. After about 30 seconds, run ':q" doesn't exit, press ctrl-c, vi program coredump

Expected behaviour

vi exits normally without coredump

Version of Vim

9.0

Environment

openEuler

Logs and stack traces

Program terminated with signal SIGSEGV, Segmentation fault.

#0  kill()
#1  may_core_dump() os_unix.c:3519
#2  may_core_dump() os_unix.c:3514
#3 mch_exit()  
#4 <signal handler called>
#5 __memmove_evex_unaligned_erma()
#6 memmove()
#7 ml_append_int()
#8 ml_append_flush()
#9 ml_append()
#10 readfile()
#11 open_buffer()
#12 create_windows()
#13 vim_main2()
#14 __libc_start_call_main()
#15 __libc_start_main_impl()
#16 _start()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions