Hello,

What I am trying to do is open 60 files, each in their own tabpage,
with the names of the files given on the command line.

Here is my command:

$ find . -mindepth 1 -maxdepth 1 -name '*.pm' | xargs sh -c '/usr/
local/bin/vim -p "$@" </dev/tty'

The find command has 60 hits. Now, if I just run this command, it
works fine, and I get 10 tabpages. I want each in their own tabpage,
so I put this in my .vimrc file

set tpm=60

With that change, when I run the command, I get the following:

Vim: Caught deadly signal SEGV
Vim: Finished
Segmentation fault

If I run it under valgrind, I get the following, just before the crash

==5802== Invalid read of size 1
==5802==    at 0x9298C27: ??? (in /lib/libgcc_s.so.1)
==5802==    by 0x929948A: _Unwind_Backtrace (in /lib/libgcc_s.so.1)
==5802==    by 0x564ECCD: backtrace (backtrace.c:85)
==5802==    by 0x55C31CA: __libc_message (libc_fatal.c:168)
==5802==    by 0x564EB86: __fortify_fail (fortify_fail.c:32)
==5802==    by 0x564EB4F: __stack_chk_fail (stack_chk_fail.c:29)
==5802==    by 0x408C76: ??? (in /usr/local/bin/vim)
==5802==    by 0x3: ???
==5802==    by 0x335B205D6D702E77: ???
==5802==    by 0x6966737973202934: ???
==5802==    by 0x205D6D702E6A656B: ???
==5802==    by 0x786574202936335A: ???
==5802==  Address 0x4 is not stack'd, malloc'd or (recently) free'd

My system:

$ uname -a
Linux hossbeast 2.6.31-22-generic #69-Ubuntu SMP Wed Nov 24 09:13:09
UTC 2010 x86_64 GNU/Linux

$ vim --version

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jan 24 2011 13:06:14)
Compiled by todd@hossbeast
Normal version without GUI.  Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset
+cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info
+comments
-conceal +cryptv -cscope +cursorbind +cursorshape +dialog_con +diff
+digraphs
-dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi
+file_in_path
+find_in_path +float +folding -footer +fork() +gettext -hangul_input -
iconv
+insert_expand +jumplist -keymap -langmap +libcall +linebreak
+lispindent
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -
mouseshape
-mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse
+mouse_xterm -multi_byte +multi_lang -mzscheme +netbeans_intg -
osfiletype
+path_extra -perl +persistent_undo +postscript +printer -profile -
python
-python3 +quickfix +reltime -rightleft -ruby +scrollbind +signs
+smartindent
-sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white -tcl +terminfo +termresponse
+textobjects +title
 -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra
+viminfo
+vreplace +wildignore +wildmenu +windows +writebackup +X11 -xfontset -
xim
+xsmp_interact +xterm_clipboard -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation:
gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -
D_FORTIFY_SOURCE=1
Linking: gcc   -L/usr/local/lib -o vim    -lXt -lm -lncurses

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