Bug#657777: vim crashes with with SIGFPE, Arithmetic exception by search a string again via 'n' in a tex-file
Andreas Romeyke
art1 at andreas-romeyke.de
Sun Jan 29 12:18:18 UTC 2012
Hello James,
On Sat, 28 Jan 2012 14:17:12 -0500
James McCoy <jamessan at debian.org> wrote:
> On Sat, Jan 28, 2012 at 06:27:00PM +0100, art1 wrote:
> > Loading an utf-8 encoded tex-file and searching a string via "/
> > foo", vim sets the cursor to first match. If you press the
> > 'n'-button, vim dies with SIGFPE.
>
> Are you able to share that file?
Jep, the file is attached, the search term is "lstlist"
> > I have also tested vim with:
> > * (g)vim -u NONE -U NONE -N
> > * (g)vim -u NORC -U NORC -N
> > * (g)vim -u NORC -U NORC --cmd 'filetype plugin indent on' -N
> >
> > In these cases vim does not crash.
>
> This leads me to believe that it's some setting in your vimrc that's
> causing the crash. If that's true, then "vim -u ~/.vimrc -N" should
> exhibit the crash as well.
>
> You can use the "finish" command to bisect your vimrc to determine
> what exactly is causing the problem. That is, put "finish" about
> half-way through your vimrc. If you're not able to reproduce, the
> problem is in the second half of your vimrc. Move "finish" to half
> way through the second half of your vimrc. Repeat.
The crash occurs with "syntax on". I am using same configuration with
debian squeeze, and no crash will be happen.
Ok, here is my local ~/.vimrc:
--- 8>< --- 8>< --- 8>< --- 8>< --- 8>< --- 8>< --- 8>< --- 8>< ---
" Highlighting-File auch in älteren VIMs öffnen
if version < 600
let mysyntaxfile = "~/.vim/syntax/xpress.vim"
endif
" Highlighting einschalten
syntax on
finish
" Cursor-Tasten sollen nach Display-Zeile arbeiten, nicht nach
" echter Textzeile
noremap j gj
noremap k gk
" Absatz formatieren
map <C-j> v<S-}>gq<End>
" Line-Wrapping an Wortgrenzen und nicht hart am Zeilenende
set linebreak
runtime presentation.vimrc
--- ><8 --- ><8 --- ><8 --- ><8 --- ><8 --- ><8 --- ><8 --- ><8 ---
The local ~/.vim dir is:
.vim
├── filetype.vim
├── presentation.vimrc
├── scripts.vim
└── syntax
├── presentation_pclcomplete.vim
├── presentation_pcl.vim
├── presentation_sdlcomplete.vim
├── presentation_sdl.vim
└── xpress.vim
The global vimrc is:
--- 8>< --- 8>< --- 8>< --- 8>< --- 8>< --- 8>< --- 8>< --- 8>< ---
" All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually
just " /usr/share/vim/vimcurrent/debian.vim) and sourced by the call
to :runtime " you can find below. If you wish to change any of those
settings, you should " do it in this file (/etc/vim/vimrc), since
debian.vim will be overwritten " everytime an upgrade of the vim
packages is performed. It is recommended to " make changes after
sourcing debian.vim since it alters the value of the " 'compatible'
option.
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in
Debian. runtime! debian.vim
" Uncomment the next line to make Vim more Vi-compatible
" NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes
numerous " options, so any other options should be set AFTER setting
'compatible'. "set compatible
" Vim5 and later versions support syntax highlighting. Uncommenting the
next " line enables syntax highlighting by default.
syntax on
" If using a dark background within the editing area and syntax
highlighting " turn on this option as well
"set background=dark
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g'\"" | endif
endif
" Uncomment the following to have Vim load indentation rules and plugins
" according to the detected filetype.
if has("autocmd")
filetype plugin indent on
endif
" The following are commented out as they cause vim to behave a lot
" differently from regular Vi. They are highly recommended though.
"set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
"set ignorecase " Do case insensitive matching
set smartcase " Do smart case matching
set incsearch " Incremental search
set autowrite " Automatically save before commands
like :next and :make "set hidden " Hide buffers when they
are abandoned "set mouse=a " Enable mouse usage (all
modes) in terminals
" Source a global configuration file if available
" XXX Deprecated, please move your changes here in /etc/vim/vimrc
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif
--- ><8 --- ><8 --- ><8 --- ><8 --- ><8 --- ><8 --- ><8 --- ><8 ---
Hope it helps, and thanks in advance
With best regards
Andreas
--
Dipl. Inf. (FH) Andreas Romeyke, http://andreas-romeyke.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tag3.tex
Type: text/x-tex
Size: 20364 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20120129/b1a3e6be/attachment-0001.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20120129/b1a3e6be/attachment-0001.pgp>
More information about the pkg-vim-maintainers
mailing list