tmux 不能正常啟動 - Linux

By Steve
at 2015-10-05T12:19
at 2015-10-05T12:19
Table of Contents
大家好,
上週的某天開始,我在一台Ubuntu 14.04 Server上的tmux 就無法新增window/session
而只要我在輸入: `tmux` ,螢幕就會跳出62;9;c
另外若用root帳號,開tmux是成功的,而一般使用者底下則都會失敗,
並且有一樣詭異的62;9;c 的錯誤訊息。
我嘗試google,但是找到的解法都沒用。
另一個可能的方向,是permission的問題,所以我在bash輸入:
`strace -f -e trace=file tmux`
並且得到以下的log:
```
execve("/usr/bin/tmux", ["tmux"], [/* 26 vars */]) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/x86_64-linux-gnu/libutil.so.1", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/x86_64-linux-gnu/libtinfo.so.5", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/usr/lib/x86_64-linux-gnu/libevent-2.0.so.5", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
access("/bin/bash", X_OK) = 0
access("/home/users/wush/.tmux.conf", R_OK) = 0
mkdir("/tmp//tmux-1000", 0700) = -1 EEXIST (File exists)
lstat("/tmp//tmux-1000", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
lstat("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
lstat("/tmp/tmux-1000", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
open("/tmp/tmux-1000/default.lock", O_WRONLY|O_CREAT, 0600) = 5
unlink("/tmp/tmux-1000/default") = 0
Process 18202 attached
Process 18203 attached
[pid 18203] open(0x7ff2a80a75b4, O_RDWR <unfinished ...>
[pid 18202] +++ exited with 0 +++
[pid 18201] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18202,
si_status=0, si_utime=0, si_stime=0} ---
[pid 18203] <... open resumed> ) = 6
[pid 18201] getcwd("/home/users/wush", 4096) = 17
[pid 18203] unlink(0x7fff56b274c2) = -1 ENOENT (No such file or
directory)
[pid 18203] stat(0x7ff2a902b200, {...}) = 0
[pid 18203] chmod(0x7ff2a902b200, 0140660) = 0
[pid 18203] unlink(0x7ff2aae8ca60) = 0
[pid 18203] access(0x7ff2a8df5c4d, R_OK) = -1 ENOENT (No such file or
directory)
[pid 18203] open(0x7ff2aae8c610, O_RDONLY) = 5
[pid 18203] readlink(0x7fff56b23550, 0x7ff2aaebe020, 4095) = 11
[pid 18203] stat(0x7ff2aaebe020, {...}) = 0
[pid 18203] stat(0x7ff2aaebc860, 0x7ff2aaebdbd0) = -1 ENOENT (No such file or
directory)
[pid 18203] stat(0x7ff2aaebc87b, {...}) = 0
[pid 18203] stat(0x7ff2aaebc889, {...}) = 0
[pid 18203] stat(0x7ff2aaebc897, {...}) = 0
[pid 18203] access(0x7fff56b220a0, R_OK) = -1 ENOENT (No such file or
directory)
[pid 18203] access(0x7fff56b220a0, R_OK) = 0
[pid 18203] open(0x7fff56b220a0, O_RDONLY) = 8
[pid 18203] open(0x7ff2a80ab01c, O_RDWR) = -1 EACCES (Permission denied)
[pid
18203] open(0x7fff56b21f00, O_RDWR) = -1 ENOENT (No such file or directory)
+++
exited with 0 +++
```
我猜測是最後那幾個動作導致tmux啟動失敗,
可惜在child process中strace沒有自動解出指標的filepath。
(我是不是漏了什麼參數呢?)
請問各位還有沒有什麼建議呢?
ps. 我很想重開機,但是這是多人共用的server,所以目前無法重開...
--
上週的某天開始,我在一台Ubuntu 14.04 Server上的tmux 就無法新增window/session
而只要我在輸入: `tmux` ,螢幕就會跳出62;9;c
另外若用root帳號,開tmux是成功的,而一般使用者底下則都會失敗,
並且有一樣詭異的62;9;c 的錯誤訊息。
我嘗試google,但是找到的解法都沒用。
另一個可能的方向,是permission的問題,所以我在bash輸入:
`strace -f -e trace=file tmux`
並且得到以下的log:
```
execve("/usr/bin/tmux", ["tmux"], [/* 26 vars */]) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/x86_64-linux-gnu/libutil.so.1", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/x86_64-linux-gnu/libtinfo.so.5", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/usr/lib/x86_64-linux-gnu/libevent-2.0.so.5", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
access("/bin/bash", X_OK) = 0
access("/home/users/wush/.tmux.conf", R_OK) = 0
mkdir("/tmp//tmux-1000", 0700) = -1 EEXIST (File exists)
lstat("/tmp//tmux-1000", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
lstat("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
lstat("/tmp/tmux-1000", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
open("/tmp/tmux-1000/default.lock", O_WRONLY|O_CREAT, 0600) = 5
unlink("/tmp/tmux-1000/default") = 0
Process 18202 attached
Process 18203 attached
[pid 18203] open(0x7ff2a80a75b4, O_RDWR <unfinished ...>
[pid 18202] +++ exited with 0 +++
[pid 18201] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18202,
si_status=0, si_utime=0, si_stime=0} ---
[pid 18203] <... open resumed> ) = 6
[pid 18201] getcwd("/home/users/wush", 4096) = 17
[pid 18203] unlink(0x7fff56b274c2) = -1 ENOENT (No such file or
directory)
[pid 18203] stat(0x7ff2a902b200, {...}) = 0
[pid 18203] chmod(0x7ff2a902b200, 0140660) = 0
[pid 18203] unlink(0x7ff2aae8ca60) = 0
[pid 18203] access(0x7ff2a8df5c4d, R_OK) = -1 ENOENT (No such file or
directory)
[pid 18203] open(0x7ff2aae8c610, O_RDONLY) = 5
[pid 18203] readlink(0x7fff56b23550, 0x7ff2aaebe020, 4095) = 11
[pid 18203] stat(0x7ff2aaebe020, {...}) = 0
[pid 18203] stat(0x7ff2aaebc860, 0x7ff2aaebdbd0) = -1 ENOENT (No such file or
directory)
[pid 18203] stat(0x7ff2aaebc87b, {...}) = 0
[pid 18203] stat(0x7ff2aaebc889, {...}) = 0
[pid 18203] stat(0x7ff2aaebc897, {...}) = 0
[pid 18203] access(0x7fff56b220a0, R_OK) = -1 ENOENT (No such file or
directory)
[pid 18203] access(0x7fff56b220a0, R_OK) = 0
[pid 18203] open(0x7fff56b220a0, O_RDONLY) = 8
[pid 18203] open(0x7ff2a80ab01c, O_RDWR) = -1 EACCES (Permission denied)
[pid
18203] open(0x7fff56b21f00, O_RDWR) = -1 ENOENT (No such file or directory)
+++
exited with 0 +++
```
我猜測是最後那幾個動作導致tmux啟動失敗,
可惜在child process中strace沒有自動解出指標的filepath。
(我是不是漏了什麼參數呢?)
請問各位還有沒有什麼建議呢?
ps. 我很想重開機,但是這是多人共用的server,所以目前無法重開...
--
Tags:
Linux
All Comments

By Faithe
at 2015-10-08T03:45
at 2015-10-08T03:45
Related Posts
登入自動開啟家目錄

By Connor
at 2015-10-05T03:15
at 2015-10-05T03:15
輕量隨身碟開機?

By Tracy
at 2015-10-04T21:43
at 2015-10-04T21:43
新手想灌linux的雜問

By John
at 2015-10-04T21:43
at 2015-10-04T21:43
rsync 傳檔設定問題

By Genevieve
at 2015-10-04T21:38
at 2015-10-04T21:38
蘋果新版中文字體...

By Liam
at 2015-10-04T17:24
at 2015-10-04T17:24