On Mi, 26 Okt 2016, LCD 47 wrote:

> * There is even a segfault:
> 
>         json_decode(repeat('[', 100000))    " segfault
> 

Oh, that one is nasty. I just made a backtrace:
#0  0x00007ffff4d0bbab in _int_malloc (av=av@entry=0x7ffff502bb00 <main_arena>, 
bytes=bytes@entry=88) at malloc.c:3384
#1  0x00007ffff4d0dd94 in __GI___libc_malloc (bytes=88) at malloc.c:2925
#2  0x00000000004ea63a in lalloc (size=88, message=1) at misc2.c:942
#3  0x00000000004ea565 in alloc_clear (size=88) at misc2.c:864
#4  0x00000000004c3dff in list_alloc () at list.c:75
#5  0x00000000004c3e62 in rettv_list_alloc (rettv=0x7fffff7ff230) at list.c:95
#6  0x000000000060c9e6 in json_decode_array (reader=0x7fffffffd1b0, 
res=0x7fffff7ff230, options=0) at json.c:388
#7  0x000000000060d692 in json_decode_item (reader=0x7fffffffd1b0, 
res=0x7fffff7ff230, options=0) at json.c:732
#8  0x000000000060ca9e in json_decode_array (reader=0x7fffffffd1b0, 
res=0x7fffff7ff2f0, options=0) at json.c:408
#9  0x000000000060d692 in json_decode_item (reader=0x7fffffffd1b0, 
res=0x7fffff7ff2f0, options=0) at json.c:732
#10 0x000000000060ca9e in json_decode_array (reader=0x7fffffffd1b0, 
res=0x7fffff7ff3b0, options=0) at json.c:408
#11 0x000000000060d692 in json_decode_item (reader=0x7fffffffd1b0, 
res=0x7fffff7ff3b0, options=0) at json.c:732
#12 0x000000000060ca9e in json_decode_array (reader=0x7fffffffd1b0, 
res=0x7fffff7ff470, options=0) at json.c:408
#13 0x000000000060d692 in json_decode_item (reader=0x7fffffffd1b0, 
res=0x7fffff7ff470, options=0) at json.c:732
#14 0x000000000060ca9e in json_decode_array (reader=0x7fffffffd1b0, 
res=0x7fffff7ff530, options=0) at json.c:408
#15 0x000000000060d692 in json_decode_item (reader=0x7fffffffd1b0, 
res=0x7fffff7ff530, options=0) at json.c:732
#16 0x000000000060ca9e in json_decode_array (reader=0x7fffffffd1b0, 
res=0x7fffff7ff5f0, options=0) at json.c:408
#17 0x000000000060d692 in json_decode_item (reader=0x7fffffffd1b0, 
res=0x7fffff7ff5f0, options=0) at json.c:732
#18 0x000000000060ca9e in json_decode_array (reader=0x7fffffffd1b0, 
res=0x7fffff7ff6b0, options=0) at json.c:408
#19 0x000000000060d692 in json_decode_item (reader=0x7fffffffd1b0, 
res=0x7fffff7ff6b0, options=0) at json.c:732
#20 0x000000000060ca9e in json_decode_array (reader=0x7fffffffd1b0, 
res=0x7fffff7ff770, options=0) at json.c:408
#21 0x000000000060d692 in json_decode_item (reader=0x7fffffffd1b0, 
res=0x7fffff7ff770, options=0) at json.c:732
#22 0x000000000060ca9e in json_decode_array (reader=0x7fffffffd1b0, 
res=0x7fffff7ff830, options=0) at json.c:408
#23 0x000000000060d692 in json_decode_item (reader=0x7fffffffd1b0, 
res=0x7fffff7ff830, options=0) at json.c:732
#24 0x000000000060ca9e in json_decode_array (reader=0x7fffffffd1b0, 
res=0x7fffff7ff8f0, options=0) at json.c:408
#25 0x000000000060d692 in json_decode_item (reader=0x7fffffffd1b0, 
res=0x7fffff7ff8f0, options=0) at json.c:732
#26 0x000000000060ca9e in json_decode_array (reader=0x7fffffffd1b0, 
res=0x7fffff7ff9b0, options=0) at json.c:408
#27 0x000000000060d692 in json_decode_item (reader=0x7fffffffd1b0, 
res=0x7fffff7ff9b0, options=0) at json.c:732
#28 0x000000000060ca9e in json_decode_array (reader=0x7fffffffd1b0, 
res=0x7fffff7ffa70, options=0) at json.c:408
#29 0x000000000060d692 in json_decode_item (reader=0x7fffffffd1b0, 
res=0x7fffff7ffa70, options=0) at json.c:732
#30 0x000000000060ca9e in json_decode_array (reader=0x7fffffffd1b0, 
res=0x7fffff7ffb30, options=0) at json.c:408
#31 0x000000000060d692 in json_decode_item (reader=0x7fffffffd1b0, 
res=0x7fffff7ffb30, options=0) at json.c:732

and goes on until:
(gdb) bt -1
#87314 0x000000000060e06b in main (argc=4, argv=0x7fffffffe2e8) at main.c:415

That looks like some kind of memory corruption, however neither valgrind
nor asan return anything useful


Best,
Christian
-- 
Des Schweines Ende ist der Wurst Anfang.
                -- Wilhelm Busch

-- 
-- 
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.

Raspunde prin e-mail lui