• 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基础知识
    前端性能优化篇
    placeholder兼容ie8,9
    阻止事件冒泡 和 阻止事件默认行为
    DOM对象加载完成后再执行操作
    cs3完成的钟表
    常见前端算法面试题
    苹果手机浏览器$(document).on(“click”,function(){})点击无效的问题
    JQuery $(function(){})和$(document).ready(function(){})
    css3 pointer-events:none 允许点击穿透
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13352183.html
Copyright © 2020-2023  润新知