Vim crash when opening the following xpm file.
http://sites.google.com/site/yukihironakadaira/100x100.xpm
100x100.xpm is 100x100 size with 10000 different colors. I generated it
with the following code and converted to xpm with Gimp.
# Python + OpenCV
import cv
img = cv.CreateImage((100, 100), 8, 3)
for x in range(img.width):
for y in range(img.height):
cv.Set2D(img, y, x, cv.Scalar(x, y, 0))
cv.SaveImage("100x100.png", img)
Steps to reproduce:
$ cat test.vim
filetype on
syntax on
" move to pixel data area
edit +10004 100x100.xpm
$ vim -u test.vim -g
"100x100.xpm" "100x100.xpm" 10103 lines, 200462 characters
Vim: Caught deadly signal SEGV
Vim: Finished.
Segmentation fault
gdb backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x000000000058dfc0 in in_id_list (cur_si=0x0, list=0x21, ssp=0x299b2e0,
contained=1) at syntax.c:6068
6068 item = *list;
(gdb) bt
#0 0x000000000058dfc0 in in_id_list (cur_si=0x0, list=0x21, ssp=0x299b2e0,
contained=1) at syntax.c:6068
#1 0x000000000058e10a in in_id_list (cur_si=0x130b3a0, list=0x16bb000,
ssp=0x299b2e0, contained=1) at syntax.c:6110
#2 0x0000000000585b76 in syn_current_attr (syncing=0, displaying=1,
can_spell=0x0, keep_state=0) at syntax.c:2040
#3 0x0000000000585518 in get_syntax_attr (col=0, can_spell=0x0, keep_state=0)
at syntax.c:1817
#4 0x00000000005484dc in win_line (wp=0x866610, lnum=9995, startrow=1,
endrow=26, nochange=1) at screen.c:4073
#5 0x000000000054389d in win_update (wp=0x866610) at screen.c:1850
#6 0x0000000000540f77 in update_screen (type=40) at screen.c:531
#7 0x00000000004b4b2b in main_loop (cmdwin=0, noexmode=0) at main.c:1161
#8 0x00000000004b473d in main (argc=5, argv=0x7fffffffe258) at main.c:961
Tested with Vim-7.3.125 on Ubuntu 10.10 64bit and Windows Vista 32bit.
--
Yukihiro Nakadaira - [email protected]
--
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