Bug#657777: vim crashes with with SIGFPE, Arithmetic exception by search a string again via 'n' in a tex-file
Hello James, On Sat, 28 Jan 2012 14:17:12 -0500 James McCoy james...@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 vS-}gqEnd 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 showmatchShow matching brackets. set ignorecase Do case insensitive matching set smartcaseDo smart case matching set incsearchIncremental search set autowriteAutomatically 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/ \documentclass[german,14pt]{beamer} \usepackage[utf8x]{inputenc} %\usepackage{libertine} \usepackage[T1]{fontenc} \usepackage{url} \usepackage{listings} %für HTML-Listings \usepackage{alltt} %verbatim umgebung \usepackage{textcomp} %textsymbole \usepackage{multimedia} \usepackage{synttree} % für Bäume \usepackage{color} \usepackage{relsize} \PreloadUnicodePage{0} %verhindert Probleme mit unicode in Ãberschriften für toc %\usepackage{qtree} %\qtreecenterfalse %
Bug#657777: vim crashes with with SIGFPE, Arithmetic exception by search a string again via 'n' in a tex-file
Package: vim Version: 2:7.3.363-1 Severity: normal Dear Maintainer, 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. 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. Here the gdb-backtrace: language=html, showspaces=false,= showtabs=true, tab=\rightarrowfill, frameround=fttt, numbers=left, stepnumber=1, numberstyle=\tiny, numbersep=10pt, extendedchars=false, basicstyle=\ttfamily, keywordstyle=\bfseries\ttfamily, commentstyle=\color{gray}\ttfamily\small, linebreak=true, xleftmargin=1cm,xrightmargin=1cm } \resetcounteronoverlays{lstlisting} /lstlist Program received signal SIGFPE, Arithmetic exception. 0x004f51fe in utf_convert (a=119070, table=optimized out, tableSize=optimized out) at mbyte.c:2780 2780mbyte.c: Datei oder Verzeichnis nicht gefunden. in mbyte.c (gdb) bt #0 0x004f51fe in utf_convert (a=119070, table=optimized out, tableSize=optimized out) at mbyte.c:2780 #1 0x0044781d in str_foldcase (str=optimized out, orglen=optimized out, buf=0x7fffd890 턞, buflen=81) at charset.c:467 #2 0x00576b4f in check_keyword_id (ccharp=synthetic pointer, cur_si=0x9c6f40, next_listp=synthetic pointer, flagsp=0x7fffd880, endcolp=synthetic pointer, startcol=18, line=optimized out) at syntax.c:3305 #3 syn_current_attr (syncing=optimized out, displaying=0, can_spell=0x0, keep_state=0) at syntax.c:1967 #4 0x0057711a in syn_finish_line (syncing=optimized out) at syntax.c:1749 #5 syn_finish_line (syncing=0) at syntax.c:1739 #6 0x0057759c in syntax_start (wp=optimized out, lnum=optimized out) at syntax.c:584 #7 0x00540c23 in win_line (wp=0x879e90, lnum=160, startrow=0, endrow=22, nochange=1) at screen.c:2856 #8 0x00545797 in win_update (wp=0x879e90) at screen.c:1850 #9 0x00547ea8 in update_screen (type=optimized out) at screen.c:531 #10 0x005bf2d7 in main_loop (cmdwin=0, noexmode=0) at main.c:1169 #11 0x0043c314 in main (argc=optimized out, argv=optimized out) at main.c:967 The same behaviour in gvim. -- System Information: Debian Release: wheezy/sid APT prefers testing-proposed-updates APT policy: (500, 'testing-proposed-updates'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.1.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages vim depends on: ii libacl1 2.2.51-5 ii libc62.13-24 ii libgpm2 1.20.4-4 ii libselinux1 2.1.0-4 ii libtinfo55.9-4 ii vim-common 2:7.3.363-1 ii vim-runtime 2:7.3.363-1 vim recommends no packages. Versions of packages vim suggests: ii exuberant-ctags [ctags] 1:5.9~svn20110310-3 ii vim-doc 2:7.3.363-1 ii vim-scripts 20110813 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#657777: vim crashes with with SIGFPE, Arithmetic exception by search a string again via 'n' in a tex-file
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? 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. At least using the tex files I have access to, I'm unable to reproduce a crash. -- James GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy james...@debian.org signature.asc Description: Digital signature