ironcamel/vimchat — Issue #21: segfault after connect?
Author: marvin2k
Created: 2011-10-24 08:40:38+00:00
State: open

Hi,

i'm getting a segfault after entering my password. only thing i changed were the path's leading to the config files -- to comply with pathogen directory layout.

diff --git a/plugin/vimchat.vim b/plugin/vimchat.vim
index 650c70a..3c548f6 100644
--- a/plugin/vimchat.vim
+++ b/plugin/vimchat.vim
@@ -100,7 +100,7 @@ class VimChatScope:
#Global Variables
accounts = {}
groupChatNames = [] # The names you are using in group chats.
- otr_basedir = '~/.vimchat/otr'
+ otr_basedir = '~/.vim/bundle/vimchat.git/otr'
otr_keyfile = 'otrkey'
otr_fingerprints = 'fingerprints'
buddyListBuffer = None
@@ -121,9 +121,9 @@ class VimChatScope:
global growl_icon
self.gtk_enabled = gtk_enabled
self.growl_enabled = growl_enabled
- self.configFilePath = os.path.expanduser('~/.vimchat/config')
+ self.configFilePath = os.path.expanduser('~/.vim/bundle/vimchat.git/config')

- vim.command('redir! > ~/.vimchat/vimchat.debug')
+ vim.command('redir! > ~/.vim/bundle/vimchat.git/vimchat.debug')
vim.command('nnoremap B :py VimChat.toggleBuddyList()')
vim.command('let s:hasVars = VimChatCheckVars()')
self.setupLeaderMappings()
@@ -144,7 +144,7 @@ class VimChatScope:
["msg txrx", "account status"])
self.growl_notifier.register()
self.growl_icon = Image.imageFromPath(
- os.path.expanduser('~/.vimchat/icon.gif'))
+ os.path.expanduser('~/.vim/bundle/vimchat.git/icon.gif'))

otr_enabled = int(vim.eval('g:vimchat_otr'))
otr_logging = int(vim.eval('g:vimchat_logotr'))
@@ -166,7 +166,7 @@ class VimChatScope:
for jid,password in vimChatAccounts.items():
self._signOn(jid,password)

- # Signon to accounts listed in .vimchat/config
+ # Signon to accounts listed in .vim/bundle/vimchat.git/config
if os.path.exists(self.configFilePath):
config = RawConfigParser()
config.read(self.configFilePath)
@@ -748,7 +748,7 @@ class VimChatScope:

class StatusIcon(threading.Thread):
def __init__(self):
- self.status_icon_default = "~/.vimchat/icon.gif"
+ self.status_icon_default = "~/.vim/bundle/vimchat.git/icon.gif"
self.status_icon_path = self.status_icon_default
threading.Thread.__init__(self)

@@ -1704,7 +1704,7 @@ fu! VimChatCheckVars()
let g:vimchat_libnotify=1
endif
if !exists('g:vimchat_logpath')
- let g:vimchat_logpath="~/.vimchat/logs"
+ let g:vimchat_logpath="~/.vim/bundle/vimchat.git/logs"
endif
if !exists('g:vimchat_logchats')
let g:vimchat_logchats=1

all system dependencies are installed, using ubuntu 11.04

vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Mar 24 2011 07:07:39)
Included patches: 1-35
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
Huge version with GTK2 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_gui +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/dyn +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/dyn +persistent_undo +postscript
+printer +profile +python/dyn +python3/dyn +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"
system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.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/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libdrm -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pixman-1 -Wall -g -O2 -D_FORTIFY_SOURCE=1 -I/usr/include/tcl8.4 -D_REENTRANT=1 -D_THREAD_SAFE=1 -D_LARGEFILE64_SOURCE=1 -I/usr/lib/ruby/1.8/x86_64-linux -DRUBY_VERSION=18
Linking: gcc -L/usr/lib/x86_64-linux-gnu -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,--as-needed -o vim -pthread -L/usr/lib/x86_64-linux-gnu -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lXt -lncurses -lselinux -lacl -lgpm -Wl,-E -fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -L/usr/lib -ltcl8.4 -lieee -lruby1.8 -lrt -lm

any ideas?