Coder Social home page Coder Social logo

Neovim crashes on nightly about neovim HOT 10 CLOSED

mosheavni avatar mosheavni commented on June 28, 2024
Neovim crashes on nightly

from neovim.

Comments (10)

mosheavni avatar mosheavni commented on June 28, 2024 1

Please test with nvim --clean -u init.vim.

also crashed

And can you bisect?

i will try now

from neovim.

mosheavni avatar mosheavni commented on June 28, 2024 1

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(-)

@zeertzjq

from neovim.

clason avatar clason commented on June 28, 2024

Please test with nvim --clean -u init.vim.

from neovim.

clason avatar clason commented on June 28, 2024

And can you bisect?

from neovim.

zeertzjq avatar zeertzjq commented on June 28, 2024

Providing a backtrace will also be helpful.

from neovim.

zeertzjq avatar zeertzjq commented on June 28, 2024

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.

mosheavni avatar mosheavni commented on June 28, 2024

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.

zeertzjq avatar zeertzjq commented on June 28, 2024

I think this is caused by #28857

from neovim.

zeertzjq avatar zeertzjq commented on June 28, 2024

I think you are bisecting incorrectly. I just bisected this to 0e187fe, not b86381f.

from neovim.

mosheavni avatar mosheavni commented on June 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.