neovim / neovim

Vim-fork focused on extensibility and usability
https://neovim.io
Other
82.64k stars 5.66k forks source link

occasionally crashes when writing javascript code #20756

Open cnfczn opened 2 years ago

cnfczn commented 2 years ago

Neovim version (nvim -v)

NVIM v0.8.0 Build type: Release LuaJIT 2.1.0-beta3

Vim (not Nvim) behaves the same?

Unable to verify

Operating system/version

gentoo linux

Terminal name/version

rxvt-unicode (urxvt) v9.30 - released: 2021-11-27

$TERM environment variable

rxvt-unicode-256color

Installation

system package manager

How to reproduce the issue

It is unclear how to reproduce this problem. After using neovim to input code for a period of time, it will directly crash

Expected behavior

-

Actual behavior

journalctl
Oct 21 12:11:52 potato kernel: nvim[21776]: segfault at aeb73870 ip 00007f6c8e11de5e sp 00007fff934eb0d0 error 4
Oct 21 12:11:52 potato kernel: Code: 24 a0 00 00 00 33 f6 e8 5f 9e 38 22 92 4c 8b 9c 24 a8 00 00 00 49 8b be f0 f1 ff ff 49 8d b6 08 d5 fe ff 49 8d 8e b8 a5 fe ff <c4> 63 fb>
Oct 21 12:11:52 potato systemd[1]: Started Process Core Dump (PID 38000/UID 0).
Oct 21 12:11:52 potato systemd-coredump[38001]: [🡕] Process 21776 (nvim) of user 1000 dumped core.

                                                Module /home/user1/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/javascript.so without build-id.
                                                Module linux-vdso.so.1 with build-id d419ffd788a2e3f159f698df9b1cf549f81d0771
                                                Module libstdc++.so.6 without build-id.
                                                Module libgcc_s.so.1 without build-id.
                                                Module ld-linux-x86-64.so.2 without build-id.
                                                Module libc.so.6 without build-id.
                                                Module libluajit-5.1.so.2 without build-id.
                                                Module libm.so.6 without build-id.
                                                Module libtree-sitter.so.0 without build-id.
                                                Module libunibilium.so.4 without build-id.
                                                Module libtermkey.so.1 without build-id.
                                                Module libvterm.so.0 without build-id.
                                                Module libmsgpackc.so.2 without build-id.
                                                Module libuv.so.1 without build-id.
                                                Module libluv.so.1 without build-id.
                                                Module nvim without build-id.
                                                Stack trace of thread 21776:
                                                #0  0x00007f6c8e11de5e n/a (n/a + 0x0)
                                                ELF object binary architecture: AMD x86-64
Oct 21 12:11:52 potato systemd[1]: systemd-coredump@1-38000-0.service: Deactivated successfully.
Oct 21 12:11:52 potato nvim-qt[21771]: Neovim fatal error "The Neovim process has crashed"
zeertzjq commented 2 years ago

Can you try obtaining a backtrace? https://github.com/neovim/neovim/wiki/FAQ#backtrace-linux

cnfczn commented 2 years ago

@zeertzjq

coredumpctl -1 gdb
           PID: 21776 (nvim)
           UID: 1000 (user1)
           GID: 1000 (user1)
        Signal: 11 (SEGV)
     Timestamp: Fri 2022-10-21 12:11:52 CST (1h 25min ago)
  Command Line: /usr/bin/nvim --embed --cmd $'let &rtp.=\',/home/user1/tools/neovim-qt-master/src/gui/runtime/\'' --cmd $'set termguicolors'
    Executable: /usr/bin/nvim
 Control Group: /user.slice/user-1000.slice/session-3.scope
          Unit: session-3.scope
         Slice: user-1000.slice
       Session: 3
     Owner UID: 1000 (user1)
       Boot ID: ce269dc02bcd4e8b971538ec6c5709d8
    Machine ID: cfadb160985f43f3bca92b7718b81e6a
      Hostname: potato
       Storage: /var/lib/systemd/coredump/core.nvim.1000.ce269dc02bcd4e8b971538ec6c5709d8.21776.1666325512000000.zst (present)
     Disk Size: 4.9M
       Message: Process 21776 (nvim) of user 1000 dumped core.

                Module /home/user1/.local/share/nvim/site/pack/packer/start/nvim-treesitter/parser/javascript.so without build-id.
                Module linux-vdso.so.1 with build-id d419ffd788a2e3f159f698df9b1cf549f81d0771
                Module libstdc++.so.6 without build-id.
                Module libgcc_s.so.1 without build-id.
                Module ld-linux-x86-64.so.2 without build-id.
                Module libc.so.6 without build-id.
                Module libluajit-5.1.so.2 without build-id.
                Module libm.so.6 without build-id.
                Module libtree-sitter.so.0 without build-id.
                Module libunibilium.so.4 without build-id.
                Module libtermkey.so.1 without build-id.
                Module libvterm.so.0 without build-id.
                Module libmsgpackc.so.2 without build-id.
                Module libuv.so.1 without build-id.
                Module libluv.so.1 without build-id.
                Module nvim without build-id.
                Stack trace of thread 21776:
                #0  0x00007f6c8e11de5e n/a (n/a + 0x0)
                ELF object binary architecture: AMD x86-64

zst file mentioned in the log (compressed)