On 06/07/2016 10:16 PM, Bram Moolenaar wrote:
>
> Patch 7.4.1906
> Problem: Collapsing channel buffers and searching for NL does not work
> properly. (Xavier de Gary, Ramel Eshed)
> Solution: Do not assume the buffer contains a NUL or not. Change NUL bytes
> to NL to avoid the string is truncated.
> Files: src/channel.c, src/netbeans.c, src/proto/channel.pro
Running the following commands in Vim with pyclewn installed (the
first command is optional an used to set traces in the 'logfile'
file):
:let pyclewn_args="--file=logfile --level=nbdebug"
:Pyclewn
triggers a SIGSEGV with the following backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x00007f584d702760 in __memmove_ssse3_back () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007f584d702760 in __memmove_ssse3_back () from /usr/lib/libc.so.6
#1 0x0000000000600d44 in channel_consume (channel=0x1e8e1c0, part=0,
len=32258064)
at channel.c:1666
#2 0x00000000005f86b7 in netbeans_parse_messages () at netbeans.c:429
#3 0x00000000004f5b1c in parse_queued_messages () at misc2.c:6230
#4 0x00000000005f3856 in gui_mch_wait_for_chars (wtime=3600000) at
gui_gtk_x11.c:6582
#5 0x00000000005e3609 in gui_wait_for_chars_or_timer (wtime=3600000) at
gui.c:2876
#6 0x00000000005e36c4 in gui_wait_for_chars (wtime=-1) at gui.c:2939
#7 0x00000000005c8d9c in ui_inchar (buf=0x89f5b5 <typebuf_init+21> "",
maxlen=81, wtime=-1,
tb_change_cnt=22) at ui.c:186
#8 0x00000000004b3787 in inchar (buf=0x89f5b5 <typebuf_init+21> "",
maxlen=243, wait_time=-1,
tb_change_cnt=22) at getchar.c:3057
#9 0x00000000004b33c9 in vgetorpeek (advance=1) at getchar.c:2833
#10 0x00000000004b15a4 in vgetc () at getchar.c:1606
#11 0x00000000004b1ad4 in safe_vgetc () at getchar.c:1802
#12 0x00000000004d6e17 in wait_return (redraw=0) at message.c:935
#13 0x0000000000478c66 in do_cmdline (cmdline=0x0, fgetline=0x491a1a
<getexline>, cookie=0x0,
flags=0) at ex_docmd.c:1512
#14 0x00000000005095c8 in nv_colon (cap=0x7ffcf1e4a150) at normal.c:5320
#15 0x0000000000501f67 in normal_cmd (oap=0x7ffcf1e4a230, toplevel=1) at
normal.c:1149
#16 0x000000000060a13c in main_loop (cmdwin=0, noexmode=0) at main.c:1359
#17 0x0000000000609a7f in main (argc=2, argv=0x7ffcf1e4a558) at main.c:1051
--
Xavier
Les Chemins de Lokoti: http://lokoti.alwaysdata.net
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.