Isso não tem nada a ver com tmux
, mas sim com a configuração zsh
.
Parece que tmux
falha porque zsh
falha.
A máquina é um VPS que eu SSH em. O problema começou quando eu instalei o Prezto
tmux -v
também sai com [exited]
sudo tmux
não funciona |
Eu não tenho um .tmux.conf
Eu pareço ter um tmux-server.log
e um tmux-client.log
no meu diretório pessoal, Gist
Atualizar : tmux new /bin/bash
funciona. tmux new /bin/zsh
não.
Atualização 2 : /bin/zsh
sai com um segfault, which zsh
me dá /usr/bin/zsh
. tmux new /usr/bin/zsh
também não funciona.
Saída de strace tmux
rt_sigaction(SIGINT, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, NULL, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, NULL, 8) = 0
rt_sigaction(SIGUSR2, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, NULL, 8) = 0
rt_sigaction(SIGTSTP, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, NULL, 8) = 0
rt_sigaction(SIGHUP, {0x7f00bfbafa20, ~[RTMIN RT_1], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGCHLD, {0x7f00bfbafa20, ~[RTMIN RT_1], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGCONT, {0x7f00bfbafa20, ~[RTMIN RT_1], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x7f00bfbafa20, ~[RTMIN RT_1], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGUSR1, {0x7f00bfbafa20, ~[RTMIN RT_1], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGWINCH, {0x7f00bfbafa20, ~[RTMIN RT_1], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, {SIG_DFL, [], 0}, 8) = 0
getcwd("/home/play", 4096) = 11
dup(0) = 5
clock_gettime(CLOCK_MONOTONIC, {268773, 757524851}) = 0
gettimeofday({1448764191, 87929}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN|POLLOUT}], 2, 4294967295) = 1 ([{fd=6, revents=POLLOUT}])
clock_gettime(CLOCK_MONOTONIC, {268773, 758107534}) = 0
gettimeofday({1448764191, 88462}, NULL) = 0
sendmsg(6, {msg_name(0)=NULL, msg_iov(41)=[{"rt_sigaction(SIGINT, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, NULL, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, NULL, 8) = 0
rt_sigaction(SIGUSR2, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, NULL, 8) = 0
rt_sigaction(SIGTSTP, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, NULL, 8) = 0
rt_sigaction(SIGHUP, {0x7f00bfbafa20, ~[RTMIN RT_1], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGCHLD, {0x7f00bfbafa20, ~[RTMIN RT_1], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGCONT, {0x7f00bfbafa20, ~[RTMIN RT_1], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x7f00bfbafa20, ~[RTMIN RT_1], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGUSR1, {0x7f00bfbafa20, ~[RTMIN RT_1], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGWINCH, {0x7f00bfbafa20, ~[RTMIN RT_1], SA_RESTORER|SA_RESTART, 0x7f00bf5e4d40}, {SIG_DFL, [], 0}, 8) = 0
getcwd("/home/play", 4096) = 11
dup(0) = 5
clock_gettime(CLOCK_MONOTONIC, {268773, 757524851}) = 0
gettimeofday({1448764191, 87929}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN|POLLOUT}], 2, 4294967295) = 1 ([{fd=6, revents=POLLOUT}])
clock_gettime(CLOCK_MONOTONIC, {268773, 758107534}) = 0
gettimeofday({1448764191, 88462}, NULL) = 0
sendmsg(6, {msg_name(0)=NULL, msg_iov(41)=[{"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LC_CTYPE=UTF-8%pre%%pre%"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777USER=play%pre%TF-8%pre%%pre%"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LOGNAME=play%pre%08%pre%%pre%"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777HOME=/home/play%pre%"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777PATH=/home/play/"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777MAIL=/var/mail/p"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777SHELL=/bin/zsh%pre%p"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777SSH_CLIENT=210.6"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777SSH_CONNECTION=2"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777SSH_TTY=/dev/pts"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777TERM=xterm-256co"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777XDG_SESSION_ID=2"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777XDG_RUNTIME_DIR="..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LANG=en_US.UTF-8"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777SHLVL=1%pre%US.UTF-8"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777PWD=/home/play%pre%08"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777OLDPWD=/tmp%pre%ay%pre%08"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777EDITOR=nano%pre%ay%pre%08"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777VISUAL=nano%pre%ay%pre%08"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777PAGER=less%pre%%pre%ay%pre%08"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESS=-F -g -i -M"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESSOPEN=| /usr/"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777TMPDIR=/tmp/play"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESS_TERMCAP_mb="..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESS_TERMCAP_md="..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESS_TERMCAP_me="..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESS_TERMCAP_se="..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESS_TERMCAP_so="..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESS_TERMCAP_ue="..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESS_TERMCAP_us="..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777GREP_COLOR=37;45"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777GREP_COLORS=mt=3"..., 1040}, ...], msg_controllen=24, {cmsg_len=20, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {5}}, msg_flags=0}, 0) = 45844
close(5) = 0
poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN|POLLOUT}], 2, 4294967295) = 1 ([{fd=6, revents=POLLOUT}])
clock_gettime(CLOCK_MONOTONIC, {268773, 759315479}) = 0
gettimeofday({1448764191, 89667}, NULL) = 0
sendmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%777777777777%pre%%pre%%pre%%pre%%pre%7%pre%%pre%"..., 2076}], msg_controllen=0, msg_flags=0}, 0) = 2076
poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN}], 2, 4294967295) = ? ERESTART_RESTARTBLOCK (Interrupted by signal)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=32118, si_status=0, si_utime=0, si_stime=0} ---
sendto(3, "", 1, 0, NULL, 0) = 1
rt_sigreturn() = -1 EINTR (Interrupted system call)
clock_gettime(CLOCK_MONOTONIC, {268773, 761009573}) = 0
gettimeofday({1448764191, 91368}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN}], 2, 4294967295) = 1 ([{fd=4, revents=POLLIN}])
clock_gettime(CLOCK_MONOTONIC, {268773, 761682098}) = 0
gettimeofday({1448764191, 92049}, NULL) = 0
recvfrom(4, "", 1024, 0, NULL, NULL) = 1
recvfrom(4, 0x7f00bfdd14c0, 1024, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 32118
poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN}], 2, 4294967295) = 1 ([{fd=6, revents=POLLIN}])
clock_gettime(CLOCK_MONOTONIC, {268773, 770399000}) = 0
gettimeofday({1448764191, 100640}, NULL) = 0
recvmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777", 65535}], msg_controllen=0, msg_flags=0}, 0) = 16
poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN|POLLOUT}], 2, 4294967295) = 1 ([{fd=6, revents=POLLOUT}])
clock_gettime(CLOCK_MONOTONIC, {268773, 770618590}) = 0
gettimeofday({1448764191, 100853}, NULL) = 0
sendmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"\t%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777", 16}], msg_controllen=0, msg_flags=0}, 0) = 16
poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN}], 2, 4294967295) = 1 ([{fd=6, revents=POLLIN}])
clock_gettime(CLOCK_MONOTONIC, {268775, 925607357}) = 0
gettimeofday({1448764193, 255856}, NULL) = 0
recvmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777", 65535}], msg_controllen=0, msg_flags=0}, 0) = 16
poll([{fd=4, events=POLLIN}], 1, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {268775, 925793410}) = 0
gettimeofday({1448764193, 256037}, NULL) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f00c0687000
write(1, "[exited]\n", 9[exited]
) = 9
getppid() = 32114
fcntl(0, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl(0, F_SETFL, O_RDWR|O_LARGEFILE) = 0
exit_group(0)
+++ exited with 0 +++
%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LC_CTYPE=UTF-8%pre%%pre%"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777USER=play%pre%TF-8%pre%%pre%"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LOGNAME=play%pre%08%pre%%pre%"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777HOME=/home/play%pre%"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777PATH=/home/play/"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777MAIL=/var/mail/p"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777SHELL=/bin/zsh%pre%p"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777SSH_CLIENT=210.6"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777SSH_CONNECTION=2"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777SSH_TTY=/dev/pts"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777TERM=xterm-256co"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777XDG_SESSION_ID=2"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777XDG_RUNTIME_DIR="..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LANG=en_US.UTF-8"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777SHLVL=1%pre%US.UTF-8"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777PWD=/home/play%pre%08"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777OLDPWD=/tmp%pre%ay%pre%08"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777EDITOR=nano%pre%ay%pre%08"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777VISUAL=nano%pre%ay%pre%08"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777PAGER=less%pre%%pre%ay%pre%08"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESS=-F -g -i -M"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESSOPEN=| /usr/"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777TMPDIR=/tmp/play"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESS_TERMCAP_mb="..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESS_TERMCAP_md="..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESS_TERMCAP_me="..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESS_TERMCAP_se="..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESS_TERMCAP_so="..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESS_TERMCAP_ue="..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777LESS_TERMCAP_us="..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777GREP_COLOR=37;45"..., 1040}, {"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777GREP_COLORS=mt=3"..., 1040}, ...], msg_controllen=24, {cmsg_len=20, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {5}}, msg_flags=0}, 0) = 45844
close(5) = 0
poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN|POLLOUT}], 2, 4294967295) = 1 ([{fd=6, revents=POLLOUT}])
clock_gettime(CLOCK_MONOTONIC, {268773, 759315479}) = 0
gettimeofday({1448764191, 89667}, NULL) = 0
sendmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%777777777777%pre%%pre%%pre%%pre%%pre%7%pre%%pre%"..., 2076}], msg_controllen=0, msg_flags=0}, 0) = 2076
poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN}], 2, 4294967295) = ? ERESTART_RESTARTBLOCK (Interrupted by signal)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=32118, si_status=0, si_utime=0, si_stime=0} ---
sendto(3, "", 1, 0, NULL, 0) = 1
rt_sigreturn() = -1 EINTR (Interrupted system call)
clock_gettime(CLOCK_MONOTONIC, {268773, 761009573}) = 0
gettimeofday({1448764191, 91368}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN}], 2, 4294967295) = 1 ([{fd=4, revents=POLLIN}])
clock_gettime(CLOCK_MONOTONIC, {268773, 761682098}) = 0
gettimeofday({1448764191, 92049}, NULL) = 0
recvfrom(4, "", 1024, 0, NULL, NULL) = 1
recvfrom(4, 0x7f00bfdd14c0, 1024, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 32118
poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN}], 2, 4294967295) = 1 ([{fd=6, revents=POLLIN}])
clock_gettime(CLOCK_MONOTONIC, {268773, 770399000}) = 0
gettimeofday({1448764191, 100640}, NULL) = 0
recvmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777", 65535}], msg_controllen=0, msg_flags=0}, 0) = 16
poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN|POLLOUT}], 2, 4294967295) = 1 ([{fd=6, revents=POLLOUT}])
clock_gettime(CLOCK_MONOTONIC, {268773, 770618590}) = 0
gettimeofday({1448764191, 100853}, NULL) = 0
sendmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"\t%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777", 16}], msg_controllen=0, msg_flags=0}, 0) = 16
poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN}], 2, 4294967295) = 1 ([{fd=6, revents=POLLIN}])
clock_gettime(CLOCK_MONOTONIC, {268775, 925607357}) = 0
gettimeofday({1448764193, 255856}, NULL) = 0
recvmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%7777", 65535}], msg_controllen=0, msg_flags=0}, 0) = 16
poll([{fd=4, events=POLLIN}], 1, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {268775, 925793410}) = 0
gettimeofday({1448764193, 256037}, NULL) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f00c0687000
write(1, "[exited]\n", 9[exited]
) = 9
getppid() = 32114
fcntl(0, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl(0, F_SETFL, O_RDWR|O_LARGEFILE) = 0
exit_group(0)
+++ exited with 0 +++
Isso não tem nada a ver com tmux
, mas sim com a configuração zsh
.
Parece que tmux
falha porque zsh
falha.