Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482600 - app-editors/vim-7.4.5 crash with segfault on some text files (new regexp engine)
Summary: app-editors/vim-7.4.5 crash with segfault on some text files (new regexp engine)
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-26 21:01 UTC by Tolga Dalman
Modified: 2013-11-20 20:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
File that causes the vim crash while scrolling page-wise (README.bz2,5.36 KB, application/x-bzip)
2013-08-26 21:01 UTC, Tolga Dalman
Details
emerge --info output (emerge.info,4.77 KB, text/plain)
2013-08-26 21:02 UTC, Tolga Dalman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tolga Dalman 2013-08-26 21:01:45 UTC
Created attachment 357120 [details]
File that causes the vim crash while scrolling page-wise

vim crashes while scrolling within the attached file (README from dropbox-2.2.13). The problem occurs with bzip'ed and normal text. The GDB backtrace is as follows:

Program received signal SIGSEGV, Segmentation fault.
0x000000000049c590 in copy_pim.52259.3191 ()
(gdb) bt
#0  0x000000000049c590 in copy_pim.52259.3191 ()
#1  0x000000000049cd54 in addstate.52453 ()
#2  0x000000000049cdf5 in addstate.52453 ()
#3  0x000000000049d3f8 in addstate_here.52460 ()
#4  0x000000000047ff7e in nfa_regmatch.52549 ()
#5  0x0000000000480457 in nfa_regtry.52648.3406 ()
#6  0x0000000000480a32 in nfa_regexec_both.52652.3402 ()
#7  0x0000000000480eae in nfa_regexec_multi.52656 ()
#8  0x0000000000481069 in vim_regexec_multi ()
#9  0x0000000000449bda in syn_regexec.59617.3338 ()
#10 0x0000000000447a86 in syn_current_attr.60146 ()
#11 0x0000000000447417 in get_syntax_attr ()
#12 0x000000000048a004 in win_line.54722.3101 ()
#13 0x0000000000485407 in win_update.54733.3137 ()
#14 0x000000000048320c in update_screen ()
#15 0x00000000004057e5 in main_loop ()
#16 0x000000000041b735 in main ()

vim is emerged with these flags:
[ebuild   R    ] app-editors/vim-7.4.5  USE="X acl cscope vim-pager -debug -gpm -lua -luajit -minimal -nls -perl -python -ruby" PYTHON_SINGLE_TARGET="python2_7 -python2_6 -python3_2 -python3_3" PYTHON_TARGETS="python2_7 python3_2 -python2_6 -python3_3"
Comment 1 Tolga Dalman 2013-08-26 21:02:16 UTC
Created attachment 357122 [details]
emerge --info output
Comment 2 Rafał Mużyło 2013-08-27 07:55:20 UTC
Just a general note: putting '-w' in your global C{XX}FLAGS tends to lead to unexpected results every now and then (see bug 292416).
Comment 3 Tolga Dalman 2013-08-27 17:45:23 UTC
Thanks for the hint, I've removed it. I have never had issues with -w.
Comment 4 Tolga Dalman 2013-09-06 18:27:05 UTC
For the sake of completeness: still crashes with vim-7.4.22
Comment 5 Tim Harder gentoo-dev 2013-11-19 19:08:33 UTC
Appears to be fixed in 7.4.94.
Comment 6 Tolga Dalman 2013-11-20 20:53:41 UTC
The crash is indeed fixed. Thank you!