Bug 2165805

Summary: [abrt] neovim: snprintf(): nvim killed by SIGABRT
Product: [Fedora] Fedora Reporter: vitalik.birulya
Component: neovimAssignee: Andreas Schneider <asn>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: aron, asn, gchamoul, igor.raits, michel
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/6de3765d81b909e3690b81ac26da97340deb331
Whiteboard: abrt_hash:99e61e175083c5b49f004e0e424fbe8daa8acdc1;VARIANT_ID=workstation;
Fixed In Version: neovim-0.8.3-3.fc39 neovim-0.8.3-4.fc38 neovim-0.8.3-4.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-25 20:03:03 UTC 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: dso_list
none
File: core_backtrace
none
File: limits
none
File: proc_pid_status
none
File: environ
none
File: backtrace
none
File: mountinfo
none
File: cpuinfo
none
File: open_fds
none
File: os_info
none
File: maps
none
File: backtrace
none
File: backtrace
none
File: backtrace
none
File: backtrace none

Description vitalik.birulya 2023-01-31 06:33:02 UTC
Description of problem:
Crash Neovim when I switch git branch. I used vim-fugitive plugin

Version-Release number of selected component:
neovim-0.8.2-2.fc38

Additional info:
reporter:       libreport-2.17.6
executable:     /usr/bin/nvim
uid:            1000
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-kitty-19278.scope
type:           CCpp
crash_function: snprintf
runlevel:       N 5
reason:         nvim killed by SIGABRT
package:        neovim-0.8.2-2.fc38
cmdline:        nvim
kernel:         6.2.0-0.rc5.20230126git7c46948a6e9c.41.fc38.x86_64
backtrace_rating: 4
journald_cursor: s=5466554a1b744edfb0ff535ea9bd8566;i=d2a7a;b=cc19103144984513880d0e974743db4f;m=1c8fe333c;t=5f37535f32c75;x=355482c9876d6da1
comment:        Crash Neovim when I switch git branch. I used vim-fugitive plugin
rootdir:        /

Truncated backtrace:
Thread no. 1 (24 frames)
 #8 snprintf at /usr/include/bits/stdio2.h:54
 #9 set_cmdarg at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/eval.c:7044
 #10 apply_autocmds_group at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/autocmd.c:1843
 #11 apply_autocmds_exarg at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/autocmd.c:1549
 #12 readfile at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/fileio.c:617
 #13 buf_reload at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/fileio.c:5038
 #14 buf_check_timestamp at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/fileio.c:4952
 #15 check_timestamps at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/fileio.c:4678
 #16 ex_checktime at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/ex_cmds2.c:765
 #17 execute_cmd0 at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/ex_docmd.c:1620
 #18 do_one_cmd at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/ex_docmd.c:2275
 #19 do_cmdline at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/ex_docmd.c:584
 #20 ex_execute at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/eval.c:7727
 #21 execute_cmd0 at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/ex_docmd.c:1620
 #22 do_one_cmd at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/ex_docmd.c:2275
 #23 do_cmdline at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/ex_docmd.c:584
 #24 do_ucmd at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/usercmd.c:1661
 #25 execute_cmd0 at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/ex_docmd.c:1612
 #26 do_one_cmd at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/ex_docmd.c:2275
 #27 do_cmdline at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/ex_docmd.c:584
 #28 nv_colon at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/normal.c:4058
 #29 normal_execute at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/normal.c:1172
 #30 state_enter at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/state.c:88
 #31 normal_enter at /usr/src/debug/neovim-0.8.2-2.fc38.x86_64/src/nvim/normal.c:471

Comment 1 vitalik.birulya 2023-01-31 06:33:07 UTC
Created attachment 1941222 [details]
File: dso_list

Comment 2 vitalik.birulya 2023-01-31 06:33:08 UTC
Created attachment 1941223 [details]
File: core_backtrace

Comment 3 vitalik.birulya 2023-01-31 06:33:10 UTC
Created attachment 1941224 [details]
File: limits

Comment 4 vitalik.birulya 2023-01-31 06:33:12 UTC
Created attachment 1941225 [details]
File: proc_pid_status

Comment 5 vitalik.birulya 2023-01-31 06:33:14 UTC
Created attachment 1941226 [details]
File: environ

Comment 6 vitalik.birulya 2023-01-31 06:33:16 UTC
Created attachment 1941227 [details]
File: backtrace

Comment 7 vitalik.birulya 2023-01-31 06:33:18 UTC
Created attachment 1941228 [details]
File: mountinfo

Comment 8 vitalik.birulya 2023-01-31 06:33:20 UTC
Created attachment 1941229 [details]
File: cpuinfo

Comment 9 vitalik.birulya 2023-01-31 06:33:22 UTC
Created attachment 1941230 [details]
File: open_fds

Comment 10 vitalik.birulya 2023-01-31 06:33:24 UTC
Created attachment 1941231 [details]
File: os_info

Comment 11 vitalik.birulya 2023-01-31 06:33:26 UTC
Created attachment 1941232 [details]
File: maps

Comment 12 Ben Cotton 2023-02-07 15:07:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 13 Andreas Schneider 2023-02-15 14:00:47 UTC
Can you still reproduce this with neovim 0.8.3?

Comment 14 Jani Heinonen 2023-03-20 07:25:11 UTC
I was editing a file using suda (https://github.com/lambdalisue/suda.vim) to provide root access. When launching new foot instance, first one coredumped either neovim or shell itself.

Now the shell instance is writing nonsense to terminal when interacting with mouse.


reporter:       libreport-2.17.8
type:           CCpp
reason:         nvim killed by SIGABRT
journald_cursor: s=62794396469f46beaaf17c6f082d7eed;i=12226;b=6575f03d29fc4b8d91c786987b752a00;m=a3969573;t=5f74f9b0cb312;x=120ece8379480ce7
executable:     /usr/bin/nvim
cmdline:        nvim tekniset/chale_ja_trikkipower.md
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-foot.slice/app-foot-1893.scope
rootdir:        /
uid:            1000
kernel:         6.2.7-300.fc38.x86_64
package:        neovim-0.8.3-2.fc38
runlevel:       N 5
backtrace_rating: 4
crash_function: snprintf

Comment 15 Jani Heinonen 2023-03-20 07:25:13 UTC
Created attachment 1951919 [details]
File: backtrace

Comment 16 Jani Heinonen 2023-03-20 07:32:03 UTC
I was editing a file using suda (https://github.com/lambdalisue/suda.vim) to provide root access. When launching new foot instance, first one coredumped either neovim or shell itself.

Now the shell instance is writing nonsense to terminal when interacting with mouse.


reporter:       libreport-2.17.8
type:           CCpp
reason:         nvim killed by SIGABRT
journald_cursor: s=62794396469f46beaaf17c6f082d7eed;i=12226;b=6575f03d29fc4b8d91c786987b752a00;m=a3969573;t=5f74f9b0cb312;x=120ece8379480ce7
executable:     /usr/bin/nvim
cmdline:        nvim tekniset/chale_ja_trikkipower.md
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-foot.slice/app-foot-1893.scope
rootdir:        /
uid:            1000
kernel:         6.2.7-300.fc38.x86_64
package:        neovim-0.8.3-2.fc38
runlevel:       N 5
backtrace_rating: 4
crash_function: snprintf

Comment 17 Jani Heinonen 2023-03-20 07:32:05 UTC
Created attachment 1951921 [details]
File: backtrace

Comment 18 Jani Heinonen 2023-03-20 07:32:42 UTC
I was editing a file using suda (https://github.com/lambdalisue/suda.vim) to provide root access. When launching new foot instance, first one coredumped either neovim or shell itself.

Now the shell instance is writing nonsense to terminal when interacting with mouse.


reporter:       libreport-2.17.8
type:           CCpp
reason:         nvim killed by SIGABRT
journald_cursor: s=62794396469f46beaaf17c6f082d7eed;i=12226;b=6575f03d29fc4b8d91c786987b752a00;m=a3969573;t=5f74f9b0cb312;x=120ece8379480ce7
executable:     /usr/bin/nvim
cmdline:        nvim tekniset/chale_ja_trikkipower.md
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-foot.slice/app-foot-1893.scope
rootdir:        /
uid:            1000
kernel:         6.2.7-300.fc38.x86_64
package:        neovim-0.8.3-2.fc38
runlevel:       N 5
backtrace_rating: 4
crash_function: snprintf

Comment 19 Jani Heinonen 2023-03-20 07:32:43 UTC
Created attachment 1951922 [details]
File: backtrace

Comment 20 Jani Heinonen 2023-03-20 07:37:58 UTC
I was editing a file using suda (https://github.com/lambdalisue/suda.vim) to provide root access. When launching new foot instance, first one coredumped either neovim or shell itself.

Now the shell instance is writing nonsense to terminal when interacting with mouse.


reporter:       libreport-2.17.8
type:           CCpp
reason:         nvim killed by SIGABRT
journald_cursor: s=62794396469f46beaaf17c6f082d7eed;i=12226;b=6575f03d29fc4b8d91c786987b752a00;m=a3969573;t=5f74f9b0cb312;x=120ece8379480ce7
executable:     /usr/bin/nvim
cmdline:        nvim tekniset/chale_ja_trikkipower.md
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-foot.slice/app-foot-1893.scope
rootdir:        /
uid:            1000
kernel:         6.2.7-300.fc38.x86_64
package:        neovim-0.8.3-2.fc38
runlevel:       N 5
backtrace_rating: 4
crash_function: snprintf

Comment 21 Jani Heinonen 2023-03-20 07:37:59 UTC
Created attachment 1951923 [details]
File: backtrace

Comment 22 Andreas Schneider 2023-03-20 14:29:43 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 23 Fedora Update System 2023-03-25 20:00:33 UTC
FEDORA-2023-7416df909b has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-7416df909b

Comment 24 Fedora Update System 2023-03-25 20:03:03 UTC
FEDORA-2023-7416df909b has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 25 Fedora Update System 2023-03-25 20:27:58 UTC
FEDORA-2023-d8042dffac has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-d8042dffac

Comment 26 Fedora Update System 2023-03-25 20:42:57 UTC
FEDORA-2023-127fdc9d84 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-127fdc9d84

Comment 27 Fedora Update System 2023-03-26 01:29:14 UTC
FEDORA-2023-127fdc9d84 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-127fdc9d84`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-127fdc9d84

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 28 Fedora Update System 2023-03-26 03:34:40 UTC
FEDORA-2023-d8042dffac has been pushed to the Fedora 38 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-d8042dffac

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 29 Fedora Update System 2023-03-28 03:27:57 UTC
FEDORA-2023-5e6280ef5d has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-5e6280ef5d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-5e6280ef5d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 30 Fedora Update System 2023-03-28 03:42:18 UTC
FEDORA-2023-b9ec085715 has been pushed to the Fedora 38 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-b9ec085715

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 31 Fedora Update System 2023-04-04 00:17:26 UTC
FEDORA-2023-b9ec085715 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 32 Fedora Update System 2023-04-05 01:34:54 UTC
FEDORA-2023-5e6280ef5d has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 33 Red Hat Bugzilla 2023-09-19 04:33:00 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days