-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crash with text properties and foldenable #3766
Comments
I confirm the bug with-8.1.693. Valgrind gives:
|
Andy Massimino wrote:
I'm seeing a segfault with the following simple text properties example. It seems to depend on foldmethod=marker or =indent (no crash with manual or when nofoldenable).
Run as: `./src/vim --clean +'source %' propcrash.vim`
```vim
call prop_type_add('test', {
\ 'highlight': 'Constant',
\ 'start_incl': 0,
\ 'end_incl': 0, })
call prop_add(6, 11, {
\ 'length': 1,
\ 'type': 'test'})
set foldenable foldmethod=marker
call cursor(6, 5)
normal! x
```
Backtrace:
```
#0 0x00007ffff673cf73 in free () at /usr/lib/libc.so.6
#1 0x00005555556b7307 in vim_free (x=0x555555967d11) at misc2.c:1863
#2 0x000055555569a0b7 in ml_flush_line (buf=0x55555593bfc0) at memline.c:3834
#3 0x000055555569755a in ml_get_buf (buf=0x55555593bfc0, lnum=1, will_change=0) at memline.c:2518
#4 0x00005555556a5a90 in plines_win_nofold (wp=0x555555939ef0, lnum=1) at misc1.c:2185
#5 0x00005555556a5a3a in plines_win_nofill (wp=0x555555939ef0, lnum=1, winheight=1) at misc1.c:2168
#6 0x00005555556be856 in curs_rows (wp=0x555555939ef0) at move.c:752
#7 0x00005555556bef24 in curs_columns (may_scroll=1) at move.c:967
#8 0x00005555556be4fd in validate_cursor () at move.c:658
#9 0x0000555555860a35 in main_loop (cmdwin=0, noexmode=0) at main.c:1247
#10 0x00005555558603d3 in vim_main2 () at main.c:917
#11 0x000055555585fa77 in main (argc=2, argv=0x7fffffffd8c8) at main.c:441
```
I fixed something like that recently. I can still reproduce this
though.
Probably the cached line is marked dirty but not allocated.
…--
hundred-and-one symptoms of being an internet addict:
109. You actually read -- and enjoy -- lists like this.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm seeing a segfault with the following simple text properties example. It seems to depend on foldmethod=marker or =indent (no crash with manual or when nofoldenable).
Run as:
./src/vim --clean +'source %' propcrash.vim
Backtrace:
The text was updated successfully, but these errors were encountered: