On Fri, 26 Mar 2010, Nicholas Marriott wrote:

Can you reproduce this in xterm?

Yes

Do you can a core?

Yes

Can you run tmux with -vvvvv, reproduce and send me the two logs?

The client log was empty, the server log is attached.  Let me know if
you'd like the core file and I'll send it off-list.  This was done in an
xterm.  I never needed to backspace to crash it in this example (just a
couple of pastes were enough).

Thanks,
Brian

On Thu, Mar 25, 2010 at 09:30:47PM -0400, Brian R. Landy wrote:
Hi, I have found a way to crash the tmux server using vim and urxvt (I suspect 
any terminal that can support ttymouse=xterm in vim would do the same).  Here's 
how I do it.  First, setup this minimal .vimrc:

"enable non-vi compatible features -- do first!
set nocompatible

"read in sample configs
source $VIMRUNTIME/vimrc_example.vim
behave xterm
set selectmode=key " using mouse enters visual mode
set keymodel=startsel ",stopsel

And add something like this to your .tmux.conf:

bind P command-prompt "set default-path '%%'"

Then follow these steps:
1. Open a urxvt terminal and start a tmux session
2. Launch vim
3. Click & drag the mouse somewhere on the empty background (avoid the vim 
startup text).  This should put vim into visual mode, of course it won't select 
anything because there is nothing to select.
4. Type your tmux prefix
5. Type "P"
6. Paste from the mouse's select buffer a couple of times.  You should see it 
enter a space each time.
7. Backspace a few times.  The tmux server should crash.

Anyway, I can repeat it every time, so am happy to run anything to help debug 
if this is difficult to recreate.  I am running a recent pull from cvs (~ 2 
weeks ago), crashes on OS X 10.6 and OpenBSD 4.6.

Thanks,
Brian
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Attachment: tmux-server-13513.log.gz
Description: Binary data

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to