Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 267 by [email protected]: Segmentation fault with if_lua
(during or after the GC)
https://code.google.com/p/vim/issues/detail?id=267
What steps will reproduce the problem?
1. Install a plugin which makes use of if_lua (e.g. neocomplete)
2. Wait some hours or days, until the lua GC kicks in
3. Watch it crash
Is there a way to force the GC in vim? I tried to
evaluate "collectgarbage()"
and some tricks from here [1], but that didn't reproduce the crash.
[1] http://luatut.com/collectgarbage.html
What is the expected output? No Segfault
What do you see instead? A segfault
What version of the product are you using? On what operating system?
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Sep 24 2014 05:04:14)
Included patches: 1-459
Compiled by Arch Linux
Huge version with GTK2 GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +syntax
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
+balloon_eval +float +mouse_urxvt -tag_any_white
+browse +folding +mouse_xterm -tcl
++builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent +gettext -mzscheme +textobjects
+clientserver -hangul_input +netbeans_intg +title
+clipboard +iconv +path_extra +toolbar
+cmdline_compl +insert_expand +perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak +python +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con_gui +lua +rightleft +windows
+diff +menu +ruby +writebackup
+digraphs +mksession +scrollbind +X11
+dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent +xim
+emacs_tags +mouseshape -sniff +xsmp_interact
+eval +mouse_dec +startuptime +xterm_clipboard
+ex_extra +mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop -xpm
system vimrc file: "/etc/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "/etc/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1
-I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2
-I/usr/include/libpng16 -I/usr/include/harfbuzz -D_FORTIFY_SOURCE=2
-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
--param=ssp-buffer-size=4 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L. -Wl,-O1,--sort-common,--as-needed,-z,relro
-fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E
-Wl,-rpath,/usr/lib/perl5/core_perl/CORE
-Wl,-O1,--sort-common,--as-needed,-z,relro -L/usr/local/lib -Wl,--as-needed
-o vim -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo
-lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0
-lglib-2.0 -lfontconfig -lfreetype -lSM -lICE -lXt -lX11 -lXdmcp -lSM
-lICE -lm -lncurses -lelf -lnsl -lacl -lattr -lgpm -ldl -L/usr/lib
-llua -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE
-Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector
-L/usr/local/lib -L/usr/lib/perl5/core_perl/CORE -lperl -lnsl -ldl -lm
-lcrypt -lutil -lpthread -lc -L/usr/lib/python2.7/config -lpython2.7
-lpthread -ldl -lutil -lm -Xlinker -export-dynamic -lruby -lpthread -lgmp
-ldl -lcrypt -lm -L/usr/lib
Please provide any additional information below.
Backtrace with gdb, obtained from a core dump
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f0630571097 in kill () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007f0630571097 in kill () from /usr/lib/libc.so.6
#1 0x0000000000529580 in mch_exit ()
#2 <signal handler called>
#3 0x0000000000462838 in set_ref_in_item ()
#4 0x00000000005cbb15 in ?? ()
#5 0x00007f0630ed1d5d in ?? () from /usr/lib/liblua.so.5.2
#6 0x00007f0630ed20bd in ?? () from /usr/lib/liblua.so.5.2
#7 0x00007f0630ece2c8 in lua_callk () from /usr/lib/liblua.so.5.2
#8 0x000000000046bb0d in garbage_collect ()
#9 0x000000000052b130 in mch_inchar ()
#10 0x00000000005a5588 in ui_inchar ()
#11 0x00000000004bde5f in inchar ()
#12 0x00000000004bfe81 in ?? ()
#13 0x00000000004c0646 in vgetc ()
#14 0x00000000004c0a99 in safe_vgetc ()
#15 0x000000000050c5dd in normal_cmd ()
#16 0x00000000005e5abd in main_loop ()
#17 0x000000000043a4c1 in main ()
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.