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

Bug#258874: xbase-clients: startx hangs on startup with configured network which isn'tconnected



On Tue, Jul 13, 2004 at 08:30:07PM +0300, Micha Feigin wrote:
> On Tue, Jul 13, 2004 at 12:02:47AM -0500, Branden Robinson wrote:
> > If you see the same behavior in startx and in a window manager,
> > xbase-clients isn't the right package to file a bug against.
> 
> You are right, sorry, it seems to be /usr/X11R6/bin/X which is causing
> the problem, so it would be xserver-common,

Well, not so fast.  :)

The fact that it happens in sessions started both ways just means that the
problem isn't specific to xbase-clients.  In fact as I suspect there is
another cause entirely.

> although just downgrading that and xserver-xfree86 (due to dependencies)
> doesn't solve the problem.
> 
> Can you reassign the bug or should I refile?

The bug can be reassigned, but I don't think we know where to reassign it
yet.

> > Can you reproduce this when running a minimal X session?
> > 
> > E.g.,
> > 
> > $ startx $(which xterm) -- :1
> 
> This works fine, no hang.

In that case I don't think your problem is with the X server at all.  I
think something is running as part of your normal session that is getting
the X server wedged.

Do you have an .xsession file?  If so, what is in it?

I'm not quite sure what to make of the rest of your report; I am leaving it
quoted so that the people on the Debian X Strike Force (the debian-x
mailing list) can see it and comment.

> Running startx (standard xsession) I see on the screen:
> 
> Using authority file /home/micha/.Xauthority
> Writing authority file /home/micha/.Xauthority
> 
> and then it hangs for about 30 seconds, no output to
> /var/log/XFree86.0.log yet or .xsession-errors. Running ps shows the
> following related processes running:
> 
> /bin/sh /usr/bin/X11/startx
> xinit /usr/X11R6/lib/X11/xinit/xinitrc -- /usr/X11R6/lib/X11/xinit/xserverrc
> /usr/bin/X11/X -dpi 100 -nolisten tcp
> 
> startx and xinit respond gracefully to kill (they just exit without
> problem). X doesn't respond and it requires kill -9 to kill it. If I
> kill just startx and xinit and leave X running and then plug in the
> network cable X comes up immediately. If I run startx and press Ctrl-C
> nothing happens, if I plug in the cable at this point I see a black
> screen (X initializing the screen) and then it immediately exits with
> the message that it was stopped (as expected except for the hang).
> 
> Waiting out the 30 seconds or so for the network timeout gives the same
> result.
> 
> Running startx -- :1 when another session of X is already running will
> not hang BTW.
> 
> I also tried running tcpdump when X starts and it gives the following
> output, showing the name lookup request (my machine is litshi, rice is
> the name server/gateway)
> 
> 20:25:55.791908 IP litshi.luna.local.32784 > rice.luna.local.domain:  6405+ A? -.luna.local. (30)
> 20:25:55.792612 IP litshi.luna.local.32785 > rice.luna.local.domain:  7688+ PTR? 1.0.168.192.in-addr.arpa. (42)
> 20:25:55.793239 IP rice.luna.local.domain > litshi.luna.local.32784:  6405 NXDomain* 0/1/0 (80)
> 20:25:55.793411 IP litshi.luna.local.32786 > rice.luna.local.domain:  6406+ A? -. (19)
> 20:25:55.793894 IP rice.luna.local.domain > litshi.luna.local.32785:  7688* 1/1/0 PTR[|domain]
> 20:25:55.794140 IP litshi.luna.local.32787 > rice.luna.local.domain:  7689+ PTR? 3.0.168.192.in-addr.arpa. (42)
> 20:25:55.794252 IP rice.luna.local.domain > litshi.luna.local.32786:  6406 NXDomain 0/1/0 (94)
> 20:25:55.794411 IP litshi.luna.local.32788 > rice.luna.local.domain:  6407+ A? -.luna.local. (30)
> 20:25:55.795182 IP rice.luna.local.domain > litshi.luna.local.32787:  7689* 1/1/0 PTR[|domain]
> 20:25:55.795591 IP rice.luna.local.domain > litshi.luna.local.32788:  6407 NXDomain* 0/1/0 (80)
> 20:25:55.795645 IP litshi.luna.local.32788 > rice.luna.local.domain:  6408+ A? -. (19)
> 20:25:55.796280 IP rice.luna.local.domain > litshi.luna.local.32788:  6408 NXDomain 0/1/0 (94)
> 20:25:55.796419 IP litshi.luna.local.32788 > rice.luna.local.domain:  6409+ A? local:root.luna.local. (39)
> 20:25:55.797114 IP rice.luna.local.domain > litshi.luna.local.32788:  6409 NXDomain* 0/1/0 (89)
> 20:25:55.797158 IP litshi.luna.local.32788 > rice.luna.local.domain:  6410+ A? local:root. (28)
> 20:25:55.797800 IP rice.luna.local.domain > litshi.luna.local.32788:  6410 NXDomain 0/1/0 (103)
> 20:26:00.790557 arp who-has litshi.luna.local tell rice.luna.local
> 20:26:00.790591 arp reply litshi.luna.local is-at 08:00:46:5b:70:62

-- 
G. Branden Robinson                |        Beware of and eschew pompous
Debian GNU/Linux                   |        prolixity.
branden@debian.org                 |        -- Charles A. Beardsley
http://people.debian.org/~branden/ |

Attachment: signature.asc
Description: Digital signature


Reply to: