Consider the following script:

    autocmd BufReadCmd read://* call setline('.', split(expand('<amatch>'), 
'/')[1:])
    edit `='read://'.join(range(1000000), '/')`
    file
. Being launched with “vim -u NONE -S longfnamebug.vim -s <(<<< $'\n')” it 
causes vim to crash with SIGABRT, but not when using debug version, in this 
case it does not crash but opened buffer contains only 1041 lines, with last 
line containing “103” instead of “1039”.

Both normal and debugging versions are vim-7.3.646, debugging is built with 
script

    #!/bin/zsh
    make distclean
    make clean
    CFLAGS=' -O0 -ggdb3 ' ./configure --with-features=huge 
--enable-python3interp=dynamic 
--with-python3-config-dir=/usr/lib64/python3.2/config-3.2 
--enable-pythoninterp=dynamic --enable-gui=no --enable-rubyinterp 
--enable-perlinterp --enable-luainterp=dynamic --enable-tclinterp 
--enable-mzschemeinterp --prefix=/usr
    make -j5
, working with script

    #!/bin/zsh
    source /etc/paludis/bashrc
    export CFLAGS="${CFLAGS/-O2/-O3}"
    rm -f src/auto/config.cache
    make distclean
    make clean
    ./configure --with-features=huge \
        --enable-python3interp=dynamic 
--with-python3-config-dir=/usr/lib64/python3.2/config-3.2 \
        --enable-pythoninterp=dynamic \
        --enable-rubyinterp \
        --enable-perlinterp \
        --enable-luainterp=dynamic \
        --enable-tclinterp \
        --enable-mzschemeinterp \
        --enable-gui=no \
        --prefix=/usr
    make -j5
(/etc/paludis/bashrc contains

    CHOST="x86_64-pc-linux-gnu"
    CFLAGS="-O2 -march=amdfam10 -pipe -mmmx -msse -msse2 -msse3 -msse4a -m3dnow 
-mfpmath=sse,387 -fomit-frame-pointer"
    LDFLAGS="-Wl,-O1"
    # Fix for the lirc
    LDFLAGS_amd64="-melf_x86_64"
and some other irrelevant stuff).

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

Raspunde prin e-mail lui