Hi,

* On Tue, Aug 28, 2012 at 02:01:15PM +0100, Thomas Adam <tho...@xteddy.org> 
wrote:
Hi,

On 28 August 2012 13:43, Vladimir Lomov <lomov...@gmail.com> wrote:
I'm using Archlinux x86_64, tmux compiled from SVN, rev. 2860. Recently
I updated my system with new kernel, 3.5.3, and libevent, 2.0.20. I
rebooted after update and started tmux, after I pressed `Esc' tmux
'crashed', I only see 'lose connection'. The next 'tmux attach' gives
message 'no session', simple 'tmux' is ended with message 'detach'.

Does it dump core (assuming ulimit is set correctly?)  If so, get a stack trace.

-- Thomas Adam

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

I can confirm the crash with libevent 2.0.20 (on Archlinux x86_64).

Attaching the backtrace.

Basically,

 532     partial_key:
 533             /*
 534              * Escape but no key string. If have already seen an escape 
and the
 535              * timer has expired, give up waiting and send the escape.
 536              */
 537             if ((tty->flags & TTY_ESCAPE) &&
 538                 !evtimer_pending(&tty->key_timer, NULL)) {
 539                     evbuffer_drain(tty->event->input, 1);
 540                     key = '\033';
 541                     goto handle_key;
 548             if (evtimer_pending(&tty->key_timer, NULL))

The key_timer is uninitialized at the moment which causes the crash.


git svn info
Path: .
URL: https://tmux.svn.sourceforge.net/svnroot/tmux/trunk
Repository Root: https://tmux.svn.sourceforge.net/svnroot/tmux
Repository UUID: 303bd1e2-03bb-47f1-b221-2a0928954661
Revision: 2789
Node Kind: directory
Schedule: normal
Last Changed Author: nicm
Last Changed Rev: 2789
Last Changed Date: 2012-05-10 11:34:31 +0530 (Thu, 10 May 2012)

The commit which seem to have caused seems to be ffaee5ac979129fc10bfe8b98ad8fbbed9705a0a https://tmux.svn.sourceforge.net/svnroot/tmux/trunk@2776 303bd1e2-03bb-47f1-b221-2a0928954661 (which didn't go into tmux 1.6 release I guess)

Regards,
--
Raghavendra Prabhu
GPG Id : 0xD72BE977
Fingerprint: B93F EBCB 8E05 7039 CD3C A4B8 A616 DCA1 D72B E977
www: wnohang.net

Attachment: pgptiFadLV3V4.pgp
Description: PGP signature

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to