Linux之strace

Last login: Tue Jul 29 17:55:11 2014 from 10.129.254.46
/usr/bin/xauth:  timeout in locking authority file /oracle/.Xauthority


[root@dwh1 ~]# ps -ef | grep ssh | grep pts
oracle    3600  3596  0 17:55 ?        00:00:00 sshd: oracle@pts/3
root      4006  3756  0 18:14 pts/3    00:00:00 grep ssh

[root@dwh1 ~]# ps -ef | grep ssh | grep pts
oracle    3600  3596  0 17:55 ?        00:00:00 sshd: oracle@pts/3

oracle    4012  4008  0 18:14 ?        00:00:00 sshd: oracle@pts/2
oracle    4013  4012  0 18:14 pts/2    00:00:00 sshd: oracle@pts/2
root      4016  3756  0 18:14 pts/3    00:00:00 grep ssh
[root@dwh1 ~]# strace -p 4013
Process 4013 attached - interrupt to quit
wait4(4014, 
^C <unfinished ...>
Process 4013 detached

发现在等待4014进程,strace4014后

[root@dwh1 ~]# strace -p 4014
Process 4014 attached - interrupt to quit
restart_syscall(<... resuming interrupted call ...>

) = 0
open("/oracle/.Xauthority-c", O_WRONLY|O_CREAT|O_EXCL, 0600) = -1 EACCES (Permission denied)
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({2, 0}, 0x7fff5b9aae50)       = 0
open("/oracle/.Xauthority-c", O_WRONLY|O_CREAT|O_EXCL, 0600) = -1 EACCES (Permission denied)
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({2, 0}, ^C <unfinished ...>
Process 4014 detached

touch 文件/oracle/.Xauthority-c 后登陆正常


你可能感兴趣的:(Linux之strace)