[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#489141: xserver-xorg: X server sometimes refuses local xclients to connect



On Thu, Jul 03, 2008 at 02:35:35PM +0200, Julien Cristau wrote:
> On Thu, Jul  3, 2008 at 14:20:26 +0200, Michael Hanke wrote:
> 
> > Since a few weeks I'm experiencing the situation that from time to time
> > local X clients cannot connect to the local X server:
> > 
> > 	hanke@balin:~$ xcalc
> > 	No protocol specified
> > 	Error: Can't open display: :0
> > 
> > 
> > While at the same time foreign clients (via SSH connection) can connect
> > without problems:
> > 
> > 	hanke@feanor:/media/local2/working/hanke/catface2$ xcalc
> > 	Warning: Cannot convert string "calculator" to type Pixmap
> > 	Warning: Cannot convert string "gray3?foreground=gray70&background=gray85" to type Pixmap
> > 
> What's the value of $DISPLAY in both cases?
> If you could install libx11-6-dbg (and maybe libxcb-xlib0-dbg and
> libxcb1-dbg) and trace what's happening when this fails, using gdb,
> that would probably help a lot.

Sorry for the delay, the bug only hit me a few times since I reported it
and lasted only for a few seconds (at least after I discovered it). But
now it happended again. I have:

hanke@balin:~$ apt-show-versions | grep 'libx.*-dbg'
libx11-6-dbg/lenny uptodate 2:1.1.4-2
libxcb1-dbg/lenny uptodate 1.1-1.1


and here it happens:


hanke@balin:~$ xcalc
No protocol specified
Error: Can't open display: :0.0
hanke@balin:~$ echo $DISPLAY
:0.0
hanke@balin:~$ gdb xcalc
GNU gdb 6.7.1-debian
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/xcalc
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
No protocol specified
Error: Can't open display: :0.0

Program exited with code 01.
(gdb)


After a approx. a minute things are working again:

hanke@balin:~$ xcalc
Warning: Cannot convert string "calculator" to type Pixmap
Warning: Cannot convert string "gray3?foreground=gray70&background=gray85" to type Pixmap
hanke@balin:~$ echo $DISPLAY
:0.0



Does this help? Should I do anything special with GDB?


Thanks,

Michael


-- 
GPG key:  1024D/3144BE0F Michael Hanke
http://apsy.gse.uni-magdeburg.de/hanke
ICQ: 48230050



Reply to: