Comments (10)
Please test with
nvim --clean -u init.vim
.
also crashed
And can you bisect?
i will try now
from neovim.
bisect done:
→ git bisect bad
b86381f425223adf0ff91fa0746914a5774ddabb is the first bad commit
commit b86381f425223adf0ff91fa0746914a5774ddabb (HEAD)
Author: zeertzjq <[email protected]>
Date: Tue May 21 06:22:23 2024 +0800
vim-patch:9.1.0426: too many strlen() calls in search.c
Problem: too many strlen() calls in search.c
Solution: refactor code and remove more strlen() calls,
use explicit variable to remember strlen
(John Marriott)
closes: vim/vim#14796
https://github.com/vim/vim/commit/8c85a2a49acf80e4f53ec51e6ff2a5f3830eeddb
Co-authored-by: John Marriott <[email protected]>
src/nvim/cmdhist.c | 9 +++----
src/nvim/eval/funcs.c | 27 ++++++++++++--------
src/nvim/ex_cmds.c | 22 +++++++++++-----
src/nvim/ex_docmd.c | 4 +--
src/nvim/ex_getln.c | 9 ++++---
src/nvim/insexpand.c | 36 ++++++++++++++++++--------
src/nvim/normal.c | 80 ++++++++++++++++++++++++++++++++-------------------------
src/nvim/quickfix.c | 2 +-
src/nvim/search.c | 250 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------------
src/nvim/search.h | 1 +
src/nvim/spell.c | 8 +++---
src/nvim/tag.c | 18 ++++++++-----
test/unit/search_spec.lua | 7 ++---
13 files changed, 279 insertions(+), 194 deletions(-)
from neovim.
Please test with nvim --clean -u init.vim
.
from neovim.
And can you bisect?
from neovim.
Providing a backtrace will also be helpful.
from neovim.
Backtrace:
=================================================================
==357692==ERROR: AddressSanitizer: negative-size-param: (size=-2)
#0 0x64718ac9ce49 in __asan_memmove (**/build/bin/nvim+0xce4e49) (BuildId: c6050af0ceca79d0c5c12ab8c43d39d0e748a201)
#1 0x64718bebaf27 in skip_regexp_ex **/src/nvim/regexp.c:807:9
#2 0x64718b514d0e in do_sub **/src/nvim/ex_cmds.c:3396:13
#3 0x64718b513780 in ex_substitute **/src/nvim/ex_cmds.c:4715:3
#4 0x64718b573eff in execute_cmd0 **/src/nvim/ex_docmd.c:1706:7
#5 0x64718b5501fd in do_one_cmd **/src/nvim/ex_docmd.c:2375:7
#6 0x64718b5408c3 in do_cmdline **/src/nvim/ex_docmd.c:665:20
#7 0x64718bc1c6d7 in nv_colon **/src/nvim/normal.c:3181:18
#8 0x64718bc07cf5 in normal_execute **/src/nvim/normal.c:1229:3
#9 0x64718c22ea19 in state_enter **/src/nvim/state.c:101:26
#10 0x64718bbe50ea in normal_enter **/src/nvim/normal.c:518:3
#11 0x64718b90d1eb in main **/src/nvim/main.c:664:3
#12 0x7abf96751c87 (/usr/lib/libc.so.6+0x25c87) (BuildId: 32a656aa5562eece8c59a585f5eacd6cf5e2307b)
#13 0x7abf96751d4b in __libc_start_main (/usr/lib/libc.so.6+0x25d4b) (BuildId: 32a656aa5562eece8c59a585f5eacd6cf5e2307b)
#14 0x64718abb0d64 in _start (**/build/bin/nvim+0xbf8d64) (BuildId: c6050af0ceca79d0c5c12ab8c43d39d0e748a201)
0x50b000002c47 is located 7 bytes inside of 100-byte region [0x50b000002c40,0x50b000002ca4)
allocated by thread T0 here:
#0 0x64718ac9ff49 in malloc (**/build/bin/nvim+0xce7f49) (BuildId: c6050af0ceca79d0c5c12ab8c43d39d0e748a201)
#1 0x64718baea339 in try_malloc **/src/nvim/memory.c:98:15
#2 0x64718baea564 in xmalloc **/src/nvim/memory.c:132:15
#3 0x64718b5ef0a8 in alloc_cmdbuff **/src/nvim/ex_getln.c:2990:20
#4 0x64718b6011cf in init_ccline **/src/nvim/ex_getln.c:649:3
#5 0x64718b5e662a in command_line_enter **/src/nvim/ex_getln.c:711:3
#6 0x64718b5e57e2 in getcmdline **/src/nvim/ex_getln.c:2720:18
#7 0x64718b5ee7d0 in getexline **/src/nvim/ex_getln.c:2963:10
#8 0x64718b53f8bc in do_cmdline **/src/nvim/ex_docmd.c:578:30
#9 0x64718bc1c6d7 in nv_colon **/src/nvim/normal.c:3181:18
#10 0x64718bc07cf5 in normal_execute **/src/nvim/normal.c:1229:3
#11 0x64718c22ea19 in state_enter **/src/nvim/state.c:101:26
#12 0x64718bbe50ea in normal_enter **/src/nvim/normal.c:518:3
#13 0x64718b90d1eb in main **/src/nvim/main.c:664:3
#14 0x7abf96751c87 (/usr/lib/libc.so.6+0x25c87) (BuildId: 32a656aa5562eece8c59a585f5eacd6cf5e2307b)
#15 0x7abf96751d4b in __libc_start_main (/usr/lib/libc.so.6+0x25d4b) (BuildId: 32a656aa5562eece8c59a585f5eacd6cf5e2307b)
#16 0x64718abb0d64 in _start (**/build/bin/nvim+0xbf8d64) (BuildId: c6050af0ceca79d0c5c12ab8c43d39d0e748a201)
SUMMARY: AddressSanitizer: negative-size-param (**/build/bin/nvim+0xce4e49) (BuildId: c6050af0ceca79d0c5c12ab8c43d39d0e748a201) in __asan_memmove
==357692==ABORTING
from neovim.
Providing a backtrace will also be helpful.
how can I get a backtrace?
also bisecting is hell since every build takes about 10 minutes, any way to speed it up?
from neovim.
I think this is caused by #28857
from neovim.
I think you are bisecting incorrectly. I just bisected this to 0e187fe, not b86381f.
from neovim.
I think you are bisecting incorrectly. I just bisected this to 0e187fe, not b86381f.
yeah i bisected incorrectly.. tried again and got 7d6a8438c927693701ee60be9d09581a12345270
honestly no idea how I'm bisecting wrong. but you reproduced the issue right?
from neovim.
Related Issues (20)
- LSP Error: _changetracking.lua:305: attempt to index local 'buf_state' HOT 5
- ":terminal foo" doesn't open terminal on the same active virtualenv HOT 7
- `vim.o.mouse = nil` no longer works as of nvim 0.10.0 HOT 8
- speed up check for pynvim HOT 7
- Surprising behaviour of default 0.10 color scheme groups: `Added`, `Changed`, `Delimiter`, `Operator`, `Removed` and `@variable` HOT 12
- too many curl processes make OS broken HOT 1
- Can't nested use native vim.snippet HOT 2
- `BUILD.md` file mentions non-existent `stable` branch of repository HOT 2
- Display distortion when setting window width to 1 in diff mode with set number
- Different termcodes of `<M-]>` from string vs from input HOT 4
- Crash while opening large log file HOT 1
- Integrate tree-sitter parsers into the toplevel build system HOT 19
- Perl syntax highlighting of named sub signatures highlights as a possible error HOT 1
- initial file open sometimes replaces character under cursor with 'g' HOT 5
- LSP diagnostics not cleared on client stop for unattached buffers
- SHA256 sums for multiple dependencies in deps.txt are not stable HOT 14
- "Option 'commentstring' is empty" in .cpp files HOT 4
- stylus syntax file: Undefined variable: main_syntax HOT 1
- `synIDattr` returns GUI color names with `notermguicolors` HOT 7
- Escaped commas are not handled in options HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neovim.