Bug 2210488

Summary: [abrt] neovim: uv_close(): nvim killed by SIGABRT
Product: [Fedora] Fedora Reporter: kapsh
Component: neovimAssignee: Andreas Schneider <asn>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: aron, asn, gchamoul, igor.raits, kapsh, michel
Target Milestone: ---Flags: kapsh: needinfo-
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/eb844e45d9374d9014658330805be1b01fd1bb7
Whiteboard: abrt_hash:321bb47c96375b79ccf23fec96d5a474db6d2586;VARIANT_ID=kde;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: open_fds
none
File: cpuinfo
none
File: mountinfo
none
File: core_backtrace
none
File: os_info
none
File: limits
none
File: proc_pid_status
none
File: backtrace
none
File: environ
none
File: dso_list
none
File: maps none

Description kapsh 2023-05-27 20:21:36 UTC
Description of problem:
edit file and exit 

Version-Release number of selected component:
neovim-0.9.0-3.fc38

Additional info:
reporter:       libreport-2.17.10
rootdir:        /
kernel:         6.2.15-300.fc38.x86_64
cgroup:         0::/user.slice/user-2222.slice/user/app.slice/app-konsole-1753224c4c654148b0bce0c01b1ee12d.scope
reason:         nvim killed by SIGABRT
uid:            2222
cmdline:        /usr/bin/nvim --embed ssh_utils.zsh
package:        neovim-0.9.0-3.fc38
crash_function: uv_close
journald_cursor: s=8f897091100045fe94a4e40db508db06;i=c506a;b=66f8571737d3456699586da34bfbdf29;m=45a69b3993;t=5fcb233702956;x=6a69ca007fb505b1
backtrace_rating: 4
runlevel:       N 5
comment:        edit file and exit 
executable:     /usr/bin/nvim
type:           CCpp

Truncated backtrace:
Thread no. 1 (21 frames)
 #6 uv_close at src/unix/core.c:116
 #7 stream_close_handle at /usr/src/debug/neovim-0.9.0-3.fc38.x86_64/src/nvim/event/stream.c:142
 #8 write_cb at /usr/src/debug/neovim-0.9.0-3.fc38.x86_64/src/nvim/event/wstream.c:145
 #9 uv__write_callbacks at src/unix/stream.c:959
 #10 uv__stream_destroy at src/unix/stream.c:456
 #11 uv__finish_close at src/unix/core.c:303
 #12 uv__run_closing_handles at src/unix/core.c:333
 #13 uv_run at src/unix/core.c:421
 #14 loop_close at /usr/src/debug/neovim-0.9.0-3.fc38.x86_64/src/nvim/event/loop.c:166
 #15 event_teardown at /usr/src/debug/neovim-0.9.0-3.fc38.x86_64/src/nvim/main.c:170
 #16 os_exit at /usr/src/debug/neovim-0.9.0-3.fc38.x86_64/src/nvim/main.c:662
 #17 getout at /usr/src/debug/neovim-0.9.0-3.fc38.x86_64/src/nvim/main.c:799
 #18 ex_exit at /usr/src/debug/neovim-0.9.0-3.fc38.x86_64/src/nvim/ex_docmd.c:4877
 #19 execute_cmd0 at /usr/src/debug/neovim-0.9.0-3.fc38.x86_64/src/nvim/ex_docmd.c:1620
 #20 do_one_cmd at /usr/src/debug/neovim-0.9.0-3.fc38.x86_64/src/nvim/ex_docmd.c:2279
 #21 do_cmdline at /usr/src/debug/neovim-0.9.0-3.fc38.x86_64/src/nvim/ex_docmd.c:578
 #22 do_cmdline_cmd at /usr/src/debug/neovim-0.9.0-3.fc38.x86_64/src/nvim/ex_docmd.c:281
 #23 nv_Zet at /usr/src/debug/neovim-0.9.0-3.fc38.x86_64/src/nvim/normal.c:3319
 #24 normal_execute at /usr/src/debug/neovim-0.9.0-3.fc38.x86_64/src/nvim/normal.c:1196
 #25 state_enter at /usr/src/debug/neovim-0.9.0-3.fc38.x86_64/src/nvim/state.c:99
 #26 normal_enter at /usr/src/debug/neovim-0.9.0-3.fc38.x86_64/src/nvim/normal.c:497


Potential duplicate: bug 1912024

Comment 1 kapsh 2023-05-27 20:21:40 UTC
Created attachment 1967348 [details]
File: open_fds

Comment 2 kapsh 2023-05-27 20:21:41 UTC
Created attachment 1967349 [details]
File: cpuinfo

Comment 3 kapsh 2023-05-27 20:21:43 UTC
Created attachment 1967350 [details]
File: mountinfo

Comment 4 kapsh 2023-05-27 20:21:45 UTC
Created attachment 1967351 [details]
File: core_backtrace

Comment 5 kapsh 2023-05-27 20:21:47 UTC
Created attachment 1967352 [details]
File: os_info

Comment 6 kapsh 2023-05-27 20:21:48 UTC
Created attachment 1967353 [details]
File: limits

Comment 7 kapsh 2023-05-27 20:21:50 UTC
Created attachment 1967354 [details]
File: proc_pid_status

Comment 8 kapsh 2023-05-27 20:21:52 UTC
Created attachment 1967355 [details]
File: backtrace

Comment 9 kapsh 2023-05-27 20:21:54 UTC
Created attachment 1967356 [details]
File: environ

Comment 10 kapsh 2023-05-27 20:21:55 UTC
Created attachment 1967357 [details]
File: dso_list

Comment 11 kapsh 2023-05-27 20:21:57 UTC
Created attachment 1967358 [details]
File: maps

Comment 12 Andreas Schneider 2023-05-31 13:28:19 UTC
In order to debug this we would need a reproducer with an minimal config file. Please document the steps clearly how to reproduce.

Here is a minimal config file you can modify. Save as repro.lua and run with `nvim -u repro.lua`. Once you have a reproducer create a tarball of the ~/.repro directory:




-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here

Comment 13 kapsh 2023-06-12 09:01:45 UTC
I cannot reliably reproduce it with my usual vimrc nor your setup, this only happened once so far. Any other options to explore?

Comment 14 Andreas Schneider 2023-06-12 12:13:29 UTC
I can't find any obvious issue in the code.

Comment 15 clobrano 2023-06-13 07:15:51 UTC
just shutdown neovim in a saved session


reporter:       libreport-2.17.10
type:           CCpp
reason:         nvim killed by SIGABRT
journald_cursor: s=022f9e51d14a4b938334433092a24785;i=869a0;b=ca1df5887b2e455db979a132d929daa4;m=954c0609;t=5fdfd8f2a60e6;x=80e052425901d678
executable:     /usr/bin/nvim
cmdline:        /usr/bin/nvim --embed
cgroup:         0::/user.slice/user-4211261.slice/user/app.slice/flatpak-session-helper.service
rootdir:        /
uid:            4211261
kernel:         6.3.6-200.fc38.x86_64
package:        neovim-0.9.1-2.fc38
runlevel:       N 5
backtrace_rating: 4
crash_function: uv_close
comment:        just shutdown neovim in a saved session

Comment 16 Torgny Bjers 2023-07-04 04:30:52 UTC
I was editing files of relatively small sizes in a few different panes in Zellij, and all of a sudden one of the instances crashed.


reporter:       libreport-2.17.11
type:           CCpp
reason:         nvim killed by SIGABRT
journald_cursor: s=011ed7828d954dae82bec55adc7102d0;i=274ab;b=80719f4d74264309b1ae2c66c3849432;m=13bc180fc;t=5ff8ca9799a20;x=32aeaf0acb8fd365
executable:     /usr/bin/nvim
cmdline:        /usr/bin/nvim --embed bootstrap.sh
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-alacritty-3543.scope
rootdir:        /
uid:            1000
kernel:         6.3.8-200.fc38.x86_64
package:        neovim-0.9.1-2.fc38
runlevel:       N 5
backtrace_rating: 4
crash_function: uv_close
comment:        I was editing files of relatively small sizes in a few different panes in Zellij, and all of a sudden one of the instances crashed.