delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/05/09:14:37

X-Spam-Check-By: sourceware.org
Date: Thu, 5 Jan 2006 09:14:22 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: services not starting with 20060104 snapshot
In-Reply-To: <20060105060545.GA31370@trixie.casa.cgf.cx>
Message-ID: <Pine.GSO.4.63.0601050904340.1754@slinky.cs.nyu.edu>
References: <Pine DOT GSO DOT 4 DOT 63 DOT 0601041426500 DOT 11072 AT slinky DOT cs DOT nyu DOT edu> <43BC2659 DOT 9060709 AT acm DOT org> <20060104203344 DOT GA18306 AT trixie DOT casa DOT cgf DOT cx> <Pine DOT GSO DOT 4 DOT 63 DOT 0601041822460 DOT 1754 AT slinky DOT cs DOT nyu DOT edu> <20060105010013 DOT GB26391 AT trixie DOT casa DOT cgf DOT cx> <Pine DOT GSO DOT 4 DOT 63 DOT 0601042043220 DOT 1754 AT slinky DOT cs DOT nyu DOT edu> <20060105035924 DOT GA29865 AT trixie DOT casa DOT cgf DOT cx> <Pine DOT GSO DOT 4 DOT 63 DOT 0601042311530 DOT 1754 AT slinky DOT cs DOT nyu DOT edu> <20060105042927 DOT GA30538 AT trixie DOT casa DOT cgf DOT cx> <Pine DOT GSO DOT 4 DOT 63 DOT 0601050008330 DOT 1754 AT slinky DOT cs DOT nyu DOT edu> <20060105060545 DOT GA31370 AT trixie DOT casa DOT cgf DOT cx>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Thu, 5 Jan 2006, Christopher Faylor wrote:

> On Thu, Jan 05, 2006 at 12:42:56AM -0500, Igor Peshansky wrote:
> >On Wed, 4 Jan 2006, Christopher Faylor wrote:
> >
> >> On Wed, Jan 04, 2006 at 11:22:13PM -0500, Igor Peshansky wrote:
> >> >On Wed, 4 Jan 2006, Christopher Faylor wrote:
> >> >>On Wed, Jan 04, 2006 at 08:45:15PM -0500, Igor Peshansky wrote:
> >> >>>On Wed, 4 Jan 2006, Christopher Faylor wrote:
> >> >>>
> >> >>>>On Wed, Jan 04, 2006 at 06:38:26PM -0500, Igor Peshansky wrote:
> >> >>>>>Frankly, I'm not sure what the right fix would be in this case,
> >> >>>>>or even how to debug this...  Any ideas on how I can simulate
> >> >>>>>service startup on the command line (to allow popping up gdb)
> >> >>>>>would be greatly appreciated.
> >> >>>>
> >> >>>>Does the change I just checked into CVS cause any difference in
> >> >>>>behavior?  If not, could you also try changing the
> >> >>>>CreateWindowStation argument &sec_all_nih to NULL?
> >> >>>
> >> >>>Nope, sorry to say, neither helped.  In both cases I got the same
> >> >>>error 1053 when starting the service.  The Windows error log
> >> >>>messages are identical as well.
> >> >>
> >> >>How about the latest CVS?  This will probably revert to the "ssh
> >> >>localhost date" failing scenario, I assume.
> >> >
> >> >Sigh.  Exactly.  The service starts, though...
> >> >
> >> >I wonder if the service startup problem has to do with the fact that
> >> >spawn_guts() calls GetProcessWindowStation() and isn't getting the
> >> >one you create in fhandler_console::need_invisible()...  Hmm, no,
> >> >you call SetProcessWindowStation() there too...  I can't think of a
> >> >way for me to check whether it succeeds, though.
> >>
> >> Can you try inverting the (now) two CreateWindowStation calls in
> >> need_invisible so that the "CygwinInvisible" case is called first and
> >> the NULL case is called second?
> >
> >Nope, didn't work.  The service doesn't start in this case.
> >
> >> And, if that doesn't work, then try commenting out the
> >> CloseWindowStation.
> >
> >I wasn't sure whether you meant commenting it out after the swap or
> >before, so I tried both.  It didn't affect the behavior in either case
> >(service not started with the swap; no output from ssh without the
> >swap).
>
> Any and all combinations are welcome at this point.  There seem to be an
> infinite number of straws.

Hope we run out of straws before we run out of patience... :-)

> Next straw would be to put a call to init_console_handler(TRUE); just before
> the call to CloseWindowStation:
>
>       if (horig && h && h != horig && SetProcessWindowStation (horig))
> 	{
> 	  set_console_handler_true (TRUE);
          init_console_handler (TRUE);

> 	  CloseWindowStation (h);
> 	}

I made the above change.  No luck. :-(

> >> Also, what version of XP are you running?  Pro?  Is it up-to-date with
> >> all service packs and updates?
> >
> >I'm running XP Pro SP1, with most updates applied (except KB835409 and
> >KB910437, which are pending).
>
> Maybe that is a clue, as Yitzchak suggested.  I'd missed that in the
> cygcheck output.  I'm running SP2 and I believe Corinna is also.

It does look like a problem with SP1 (and Karl's message supports this as
well).  Unfortunately, I'm not at liberty to install SP2 on this machine
(due to licensing restrictions).  So I'll have to dig until a solution is
found.

Interestingly enough, the ssh daemon works just fine with the 20051003
snapshot.  I'll try to track all the changes to fhandler_console between
then and now to see which one tickled this problem.

Thanks for helping me get to the bottom of this.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019