我已经安装了无头 11.04 变体在我的 pandaboard 上安装了 Ubuntu。大多数东西似乎都正常工作,但当我启动屏幕时,bash 似乎挂起了,我必须使用 ctrl-z kill %1 将其杀死才能继续。
有人能使用 pandaboard 上的屏幕吗?有没有关于如何调试这种不良行为的好线索?
当我启动 strace 调试时,我收到以下消息:
mprotect(0x4008b000, 4096, PROT_READ) = 0
munmap(0x40123000, 30983) = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=4*1024}) = 0
close(1023) = -1 EBADF (Bad file descriptor)
close(1022) = -1 EBADF (Bad file descriptor)
close(1021) = -1 EBADF (Bad file descriptor)
close(1020) = -1 EBADF (Bad file descriptor)
close(1019) = -1 EBADF (Bad file descriptor)
close(1018) = -1 EBADF (Bad file descriptor)
...
关闭消息持续了一段时间然后它说:
Directory '/var/run/screen' must have mode 775.
接下来 chmod 屏幕再次挂起。新的 strace 屏幕显示:
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40084000
write(1, "Directory '/var/run/screen' must"..., 49Directory '/var/run/screen' must have mode 777.
) = 49
exit_group(1) = ?
无论哪种情况,它似乎都坏了……