2009年12月18日星期五

cat引起的一个奇怪的问题,bug?

今天,在gnome里面cat /var/run/utmp
就因为这个,gnome崩溃了,现象如下:
登录gnome的时候,只有桌面,没有任何菜单,和图标之类的东西,同时在主目录下面生成了一个文件:[.xsession-errors]内容如下:
/etc/gdm/Xsession: Beginning session setup...
Setting IM through im-switch for locale=zh_CN.
Start IM through /etc/X11/xinit/xinput.d/zh_CN linked to /etc/X11/xinit/xinput.d/scim.
Smart Common Input Method 1.4.7

Launching a SCIM process with x11...
Loading simple Config module ...
Creating backend ...
Loading x11 FrontEnd module ...
GTK Panel of SCIM 1.4.7

Starting SCIM as daemon ...
SCIM has been successfully launched.

** (seahorse-agent:8599): WARNING **: Wrong permissions for /tmp/orbit-bjn


** (gconf-sanity-check-2:8685): WARNING **: Wrong permissions for /tmp/orbit-bjn


** (x-session-manager:8599): WARNING **: Wrong permissions for /tmp/orbit-bjn

SESSION_MANAGER=local/ggjd:/tmp/.ICE-unix/8599

** (gnome-settings-daemon:8687): WARNING **: Wrong permissions for /tmp/orbit-bjn

Warning: Key not found in xfree86(jp106)+aliases(qwerty) keycodes
Symbols ignored
Warning: Key not found in xfree86(jp106)+aliases(qwerty) keycodes
Symbols ignored
Warning: No symbols defined for (keycode 92)
Warning: No symbols defined for (keycode 101)
Warning: No symbols defined for (keycode 114)
Warning: No symbols defined for (keycode 118)
Warning: No symbols defined for (keycode 119)
Warning: No symbols defined for (keycode 120)
Warning: No symbols defined for (keycode 121)
Warning: No symbols defined for (keycode 122)
Warning: No symbols defined for (keycode 123)
Warning: No symbols defined for (keycode 130)
Warning: No symbols defined for (keycode 132)
Warning: No symbols defined for (keycode 134)
Warning: No symbols defined for (keycode 135)
Warning: No symbols defined for (keycode 136)
Warning: No symbols defined for (keycode 137)
Warning: No symbols defined for (keycode 138)
Warning: No symbols defined for (keycode 139)
Warning: No symbols defined for (keycode 140)
Warning: No symbols defined for (keycode 141)
Warning: No symbols defined for (keycode 142)
Warning: No symbols defined for (keycode 143)
Warning: No symbols defined for (keycode 144)
Warning: No symbols defined for (keycode 145)
Warning: No symbols defined for (keycode 146)
Warning: No symbols defined for (keycode 147)
Warning: No symbols defined for (keycode 148)
Warning: No symbols defined for (keycode 149)
Warning: No symbols defined for (keycode 150)
Warning: No symbols defined for (keycode 151)
Warning: No symbols defined for (keycode 152)
Warning: No symbols defined for (keycode 153)
Warning: No symbols defined for (keycode 154)
Warning: No symbols defined for (keycode 155)
Warning: No symbols defined for (keycode 157)
Warning: No symbols defined for (keycode 158)
Warning: No symbols defined for (keycode 159)
Warning: No symbols defined for (keycode 160)
Warning: No symbols defined for (keycode 161)
Warning: No symbols defined for (keycode 162)
Warning: No symbols defined for (keycode 163)
Warning: No symbols defined for (keycode 164)
Warning: No symbols defined for (keycode 165)
Warning: No symbols defined for (keycode 166)
Warning: No symbols defined for (keycode 167)
Warning: No symbols defined for (keycode 168)
Warning: No symbols defined for (keycode 169)
Warning: No symbols defined for (keycode 170)
Warning: No symbols defined for (keycode 171)
Warning: No symbols defined for (keycode 172)
Warning: No symbols defined for (keycode 173)
Warning: No symbols defined for (keycode 174)
Warning: No symbols defined for (keycode 175)
Warning: No symbols defined for (keycode 176)
Warning: No symbols defined for (keycode 177)
Warning: No symbols defined for (keycode 178)
Warning: No symbols defined for (keycode 179)
Warning: No symbols defined for (keycode 180)
Warning: No symbols defined for (keycode 181)
Warning: No symbols defined for (keycode 182)
Warning: No symbols defined for (keycode 183)
Warning: No symbols defined for (keycode 184)
Warning: No symbols defined for (keycode 185)
Warning: No symbols defined for (keycode 186)
Warning: No symbols defined for (keycode 187)
Warning: No symbols defined for (keycode 188)
Warning: No symbols defined for (keycode 189)
Warning: No symbols defined for (keycode 190)
Warning: No symbols defined for (keycode 191)
Warning: No symbols defined for (keycode 192)
Warning: No symbols defined for (keycode 193)
Warning: No symbols defined for (keycode 194)
Warning: No symbols defined for (keycode 195)
Warning: No symbols defined for (keycode 196)
Warning: No symbols defined for (keycode 197)
Warning: No symbols defined for (keycode 198)
Warning: No symbols defined for (keycode 199)
Warning: No symbols defined for (keycode 200)
Warning: No symbols defined for (keycode 201)
Warning: No symbols defined for (keycode 202)
Warning: No symbols defined for (keycode 203)
Warning: No symbols defined for (keycode 204)
Warning: No symbols defined for (keycode 205)
Warning: No symbols defined for (keycode 206)
Warning: No symbols defined for (keycode 207)
Warning: No symbols defined for (keycode 212)
Warning: No symbols defined for (keycode 213)
Warning: No symbols defined for (keycode 218)
Warning: No symbols defined for (keycode 219)
Warning: No symbols defined for (keycode 220)
Warning: No symbols defined for (keycode 221)
Warning: No symbols defined for (keycode 222)
Warning: No symbols defined for (keycode 223)
Warning: No symbols defined for (keycode 224)
Warning: No symbols defined for (keycode 225)
Warning: No symbols defined for (keycode 226)
Warning: No symbols defined for (keycode 227)
Warning: No symbols defined for (keycode 228)
Warning: No symbols defined for (keycode 229)
Warning: No symbols defined for (keycode 230)
Warning: No symbols defined for (keycode 231)
Warning: No symbols defined for (keycode 232)
Warning: No symbols defined for (keycode 233)
Warning: No symbols defined for (keycode 234)
Warning: No symbols defined for (keycode 235)
Warning: No symbols defined for (keycode 236)
Warning: No symbols defined for (keycode 237)
Warning: No symbols defined for (keycode 238)
Warning: No symbols defined for (keycode 239)
Warning: No symbols defined for (keycode 240)
Warning: No symbols defined for (keycode 241)
Warning: No symbols defined for (keycode 242)
Warning: No symbols defined for (keycode 243)
Warning: No symbols defined for (keycode 244)
Warning: No symbols defined for (keycode 245)
Warning: No symbols defined for (keycode 246)
Warning: No symbols defined for (keycode 247)
Warning: No symbols defined for (keycode 248)
Warning: No symbols defined for (keycode 249)
Warning: No symbols defined for (keycode 250)
Warning: No symbols defined for (keycode 251)
Warning: No symbols defined for (keycode 252)
Warning: No symbols defined for (keycode 253)
Warning: No symbols defined for (keycode 254)
Warning: No symbols defined for (keycode 255)

** (gnome-screensaver:8707): WARNING **: Wrong permissions for /tmp/orbit-bjn


** (gconftool-2:8716): WARNING **: Wrong permissions for /tmp/orbit-bjn


** (gnome-settings-daemon:8687): WARNING **: Failed to open file '/etc/gnome/config/General.ad': 没有那个文件或目录

** (gnome-panel:8709): WARNING **: Wrong permissions for /tmp/orbit-bjn


** (nautilus:8712): WARNING **: Wrong permissions for /tmp/orbit-bjn


** (x-session-manager:8599): WARNING **: Host name lookup failure on localhost.

** (metacity:8708): WARNING **: Wrong permissions for /tmp/orbit-bjn

窗口管理器警告:无法读取保存的会话文件 /home/bjn/.metacity/sessions/default0.ms:Failed to open file '/home/bjn/.metacity/sessions/default0.ms': 没有那个文件或目录

** (bluetooth-applet:8726): WARNING **: Wrong permissions for /tmp/orbit-bjn


** (gconftool-2:8729): WARNING **: Wrong permissions for /tmp/orbit-bjn


** (update-notifier:8732): WARNING **: Wrong permissions for /tmp/orbit-bjn

Initializing gnome-mount extension
seahorse nautilus module initialized

** (gconftool-2:8733): WARNING **: Wrong permissions for /tmp/orbit-bjn


** (gnome-power-manager:8734): WARNING **: Wrong permissions for /tmp/orbit-bjn


** (gconftool-2:8738): WARNING **: Wrong permissions for /tmp/orbit-bjn


** (gconftool-2:8740): WARNING **: Wrong permissions for /tmp/orbit-bjn


** (gnome-volume-manager:8739): WARNING **: Wrong permissions for /tmp/orbit-bjn


** (nm-applet:8746): WARNING **: Wrong permissions for /tmp/orbit-bjn


(gnome-panel:8709): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -13 and height 24

(qq:8786): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: 错误 ELF 类: ELFCLASS64

(qq:8786): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: 错误 ELF 类: ELFCLASS64

(qq:8786): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: 错误 ELF 类: ELFCLASS64

(qq:8786): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: 错误 ELF 类: ELFCLASS64

(qq:8786): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: 错误 ELF 类: ELFCLASS64

(qq:8786): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: 错误 ELF 类: ELFCLASS64

(qq:8786): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: 错误 ELF 类: ELFCLASS64

(qq:8786): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: 错误 ELF 类: ELFCLASS64

(qq:8786): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: 错误 ELF 类: ELFCLASS64

(qq:8786): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: 错误 ELF 类: ELFCLASS64

(qq:8786): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: 错误 ELF 类: ELFCLASS64

(qq:8786): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: 错误 ELF 类: ELFCLASS64

(qq:8786): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: 错误 ELF 类: ELFCLASS64

(qq:8786): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: 错误 ELF 类: ELFCLASS64

(qq:8786): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: 错误 ELF 类: ELFCLASS64

(qq:8786): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so: 错误 ELF 类: ELFCLASS64

** (firefox-bin:8793): WARNING **: Wrong permissions for /tmp/orbit-bjn


** (firefox-bin:8793): WARNING **: Wrong permissions for /tmp/orbit-bjn

窗口管理器警告:Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x2e000cb (Iceweasel)
窗口管理器警告:meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.
LoadPlugin: failed to initialize shared library /usr/lib/iceweasel/plugins/nppdf.so [/usr/lib/iceweasel/plugins/nppdf.so: 错误 ELF 类: ELFCLASS32]
LoadPlugin: failed to initialize shared library /usr/lib/mozilla/plugins/nppdf.so [/usr/lib/mozilla/plugins/nppdf.so: 错误 ELF 类: ELFCLASS32]
LoadPlugin: failed to initialize shared library /opt/real/RealPlayer/mozilla/nphelix.so [/opt/real/RealPlayer/mozilla/nphelix.so: 错误 ELF 类: ELFCLASS32]
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)

** (gnome-terminal:8856): WARNING **: Wrong permissions for /tmp/orbit-bjn

窗口管理器警告:last_user_time (27537568) is greater than comparison timestamp (1554746). This most likely represents a buggy client sending inaccurate timestamps in messages such as _NET_ACTIVE_WINDOW. Trying to work around...
窗口管理器警告:0x2e000cb (Blogger: J) appears to be one of the offending windows with a timestamp of 27537568. Working around...


------------------------------------------------------------------
上面最关键的内容是最面:
** (gnome-terminal:8856): WARNING **: Wrong permissions for /tmp/orbit-bjn
就是/tmp的权限问题,解决办法:
chmod 1777 -R /tmp
rm /tmp/.X0-lock

没有评论: