CentOS 上的 ps 段错误

CentOS 上的 ps 段错误

我有一台 CentOS- 5.5 服务器,安装了来自 epel repo 的 python2.6(默认情况下禁用)。它不断出现分段错误。我还安装了来自 epel repo 的 maatkit。此外,我正在运行 percona 作为复制从属。我这里有 strace 的最后几行。(对于 pastebin 来说太长了)

stat("/proc/17774", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/proc/17774/stat", O_RDONLY)      = 6
read(6, "17774 (bash) S 17772 17774 17774"..., 1023) = 256
close(6)                                = 0
open("/proc/17774/status", O_RDONLY)    = 6
read(6, "Name:\tbash\nState:\tS (sleeping)\nS"..., 1023) = 753
close(6)                                = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2acda8509000
write(1, "  PID TTY          TIME CMD\n", 28  PID TTY          TIME CMD
) = 28
open("/proc/tty/drivers", O_RDONLY)     = 6
read(6, "/dev/tty             /dev/tty   "..., 9999) = 465
close(6)                                = 0
stat("/dev/pts1", 0x7fffaf85c6b0)       = -1 ENOENT (No such file or directory)
stat("/dev/pts", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
readlink("/proc/17774/fd/2", "/dev/pts/1"..., 127) = 10 
stat("/dev/pts/1", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

不确定设备出了什么问题。

答案1

尝试重新挂载“/dev/pts”:

 mount -o remount /dev/pts

尝试以 root 身份运行 python。

还添加“mount”输出和python脚本/命令。

相关内容