Re: Tmux hangs after a while

2012-12-21 Thread Nicholas Marriott
Well, the question is really why the kernel doesn't wake tmux up when the tty goes away. tmux is blocked writing to it, but when the tty goes away it should wake up. Are you using tmux over ssh? Is your ssh sitting around holding the pty with tmux until the TCP/IP connection drops? If you ssh in a

Re: Tmux hangs after a while

2012-12-20 Thread Guang-Nan Cheng
Hi Guys, I have no idea. But the same tmux-server is back now. On Wed, Dec 19, 2012 at 8:42 PM, Guang-Nan Cheng wrote: > No the server did not recover. > > Here is some addition info that I found. It seems that tmux lost it's TTY? > > 9655 *?*Ss 101:03 tmux > > > I tried the tip >

Re: Tmux hangs after a while

2012-12-19 Thread Guang-Nan Cheng
No the server did not recover. Here is some addition info that I found. It seems that tmux lost it's TTY? 9655 *?*Ss 101:03 tmux I tried the tip here but doesn't resolve my pro

Re: Tmux hangs after a while

2012-12-19 Thread Nicholas Marriott
What happens if you kill the tmux client or close the terminal it is in? Does the server recover? On Wed, Dec 19, 2012 at 07:54:28PM +0800, Guang-Nan Cheng wrote: >Okay, PID 578 is the hanging attaching tmux clients. Here is the backtrace >for the original tmux server. >(gdb) bt >

Re: Tmux hangs after a while

2012-12-19 Thread Nicholas Marriott
What tmux and libevent versions are you using? On Wed, Dec 19, 2012 at 07:39:14PM +0800, Guang-Nan Cheng wrote: >Thanks for the tip. It seems**related**with epoll_wait. I have no idea >what it is. >> strace -p 578 >Process 578 attached >epoll_wait(3,** >> gdb >Missing

Re: Tmux hangs after a while

2012-12-19 Thread Guang-Nan Cheng
Okay, PID 578 is the hanging attaching tmux clients. Here is the backtrace for the original tmux server. (gdb) bt #0 0x7f8696181950 in __write_nocancel () at ../sysdeps/unix/syscall-template.S:82 #1 0x0042d1c0 in tty_stop_tty (tty=tty@entry=0xe12c68) at tty.c:242 #2 0x0042d3

Re: Tmux hangs after a while

2012-12-19 Thread Guang-Nan Cheng
Thanks for the tip. It seems related with epoll_wait. I have no idea what it is. > strace -p 578 Process 578 attached *epoll_wait(3, * > gdb Missing separate debuginfos, use: debuginfo-install tmux-1.6-1.fc17.x86_64 (gdb) bt *#0 0x7f18e7b9dc53 in __epoll_wait_nocancel () from /lib64/libc.so

Re: Tmux hangs after a while

2012-12-18 Thread Thomas Adam
On 18 December 2012 16:11, Guang-Nan Cheng wrote: > It happend again. This time, I don't even have a .tmux.conf file. > > Is there any trick so that I can send a signal to the PID and tmux will > print the stack so we know why it hangs? Attach strace to the server pid of tmux. Or better yet, gdb

Re: Tmux hangs after a while

2012-12-18 Thread Guang-Nan Cheng
It happend again. This time, I don't even have a .tmux.conf file. Is there any trick so that I can send a signal to the PID and tmux will print the stack so we know why it hangs? On Sun, Dec 9, 2012 at 3:22 AM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > Does this happen if you r

Re: Tmux hangs after a while

2012-12-09 Thread Ben Boeckel
On Sat, Dec 08, 2012 at 18:29:24 GMT, Guang-Nan Cheng wrote: > set-option -g set-titles-string "@#(hostname | sed 's/..*//')" Why not use #h or hostname -s? --Ben -- LogMeIn Rescue: Anywhere, Anytime Remote support

Re: Tmux hangs after a while

2012-12-09 Thread Guang-Nan Cheng
bind C-a last-window bind C-n next-window bind p previous-window bind | split-window -h #unbind C-b unbind % # mode-keys set-window-option -g mode-keys vi # View set -g status-interval 5 set -g status-left-length 100 set -g status-right-length 50 set-option -g set-titles on set-option -g set-

Re: Tmux hangs after a while

2012-12-08 Thread Nicholas Marriott
Does this happen if you remove the #() from your set-titles-string? On Sun, Dec 09, 2012 at 02:29:24AM +0800, Guang-Nan Cheng wrote: >bind C-a last-window >bind C-n next-window >bind p previous-window >bind | split-window -h >#unbind C-b >unbind % ># mode-keys >set

Re: Tmux hangs after a while

2012-12-08 Thread Nicholas Marriott
Hi What is in your .tmux.conf? On Wed, Dec 05, 2012 at 05:09:53PM +0800, Guang-Nan Cheng wrote: >I'm on Fedora 17 64 bit and installed tmux. >I found that if I left the tmux open for few days then it will hangs. >I can not attach or start a new one. `tmux kill-server` hangs too. >

Tmux hangs after a while

2012-12-07 Thread Guang-Nan Cheng
I'm on Fedora 17 64 bit and installed tmux. I found that if I left the tmux open for few days then it will hangs. I can not attach or start a new one. `tmux kill-server` hangs too. What should I do in this case? Here is a ps xf. 1915 ?Ss 0:42 /usr/sbin/sshd -D 14506 ?Ss