Hello,
First, thanks for this wonderful software !

I am using tslime[1] with a custom vim plugin [2] to copy/paste code
from vim to an ipython session running in tmux. It's working great but
sometimes, tmux crashes with "[lost server]".

In the background, tslime use 'tmux set-buffer' to send text to tmux.
It seems the crash is very dependent on the content of the buffer and
it mostly happens with somewhat large buffers.

I wrote a small script [3] that contains an example buffer that
reproduces the crash.

For example :
$ ./crash_tmux.sh
failed to connect to server: Connection refused

If I remove (or add) one line from the buffer (for example the "if
True" near the end), tmux doesn't crash anymore :
# Modify crash_tmux.sh to remove the "if True" line
$ ./crash_tmux.sh
test: 1 windows (created Fri Apr 11 15:25:26 2014) [80x22]

System informations :
- tmux version : 1.9a
- terminal emulator : gnome-terminal
- $TERM : xterm-256color
- OS : Ubuntu 13.10

I also tried removing my .tmux.conf, but it doesn't help.

Then, I checked out the git master and started a bisect. (see
bisect.log on the gist [3] linked below). It seems the problem is
introduced in this revision :
http://sourceforge.net/p/tmux/tmux-code/ci/f8c86a9515ae863fcbc38769544be983ce494a3c

So I tried commenting out the lines added by this commit and it
appears line 217 of cmd-queue.c is the problem :

  cmd_print(cmdq->cmd, s, sizeof s);

If i comment this line, the crash goes away ! Since this seems like
those are debug statements, I'll try to run the patched tmux and I'll
see if I get any more crashes in the next days.

Best regards
Julien

[1] https://github.com/kikijump/tslime.vim
[2] https://github.com/julienr/vimux-pyutils
[3] https://gist.github.com/julienr/10470414

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to