我有一台运行 SLES 11 SP3 的 HP 服务器,有时会出现一些奇怪的问题。
每当您运行命令时,问题都与命令无关, .egps -ef
等rcapache2 restart
它启动命令, .eg 会输出一些内容,但是当它完成时,它实际上并没有完成并且卡住了,所以我不不回到提示。如果我然后按 CTRL+C 尝试杀死它,我会得到输出到 putty (SSH) 会话的字符,但它仍然不会退出。
我查看了 HP iLO 管理界面,但它没有报告任何故障。
感谢您的任何帮助,您可以提供。
shell 的 strace 输出
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {0x808c610, [], SA_RESTART}, {0xb778e8b0, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x1, [], SA_RESTART}, {0x1, [], SA_RESTART}, 8) = 0
rt_sigaction(SIGQUIT, {0x1, [], SA_RESTART}, {0x1, [], SA_RESTART}, 8) = 0
rt_sigaction(SIGALRM, {0x808c360, [HUP INT ILL TRAP ABRT BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM SYS], 0}, {0xb778e8b0, [], 0}, 8) = 0
rt_sigaction(SIGTSTP, {0x1, [], SA_RESTART|SA_NODEFER}, {0x1, [], SA_RESTART|SA_NODEFER}, 8) = 0
rt_sigaction(SIGTTOU, {0x1, [], SA_RESTART|SA_NODEFER}, {0x1, [], SA_RESTART|SA_NODEFER}, 8) = 0
rt_sigaction(SIGTTIN, {0x1, [], SA_RESTART|SA_NODEFER}, {0x1, [], SA_RESTART|SA_NODEFER}, 8) = 0
rt_sigaction(SIGWINCH, {0x808c120, [], SA_RESTART}, {0xb778e860, [], SA_RESTART}, 8) = 0
rt_sigaction(SIGINT, {0x808c610, [], SA_RESTART}, {0x808c610, [], SA_RESTART}, 8) = 0
time(NULL) = 1433749648
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [INT CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0
pipe([5, 6]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb75bc728) = 4879
setpgid(4879, 4879) = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
close(4) = 0
close(4) = -1 EBADF (Bad file descriptor)
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb75bc728) = 4880
setpgid(4880, 4879) = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
close(5) = 0
close(6) = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
我对 strace 不太了解,但错误的文件描述符似乎盯着我看,但不确定是什么原因造成的。