public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Houder <houder@xs4all.nl>
To: cygwin@cygwin.com
Subject: Re: Clueless! sshd ONLY fails at system startup (XP/SP3) ...
Date: Fri, 26 May 2017 06:23:00 -0000	[thread overview]
Message-ID: <bee7f844a577639ea4b2da1d865b814e@xs4all.nl> (raw)
In-Reply-To: <1362259325.20170525185937@yandex.ru>

On 2017-05-25 17:59, Andrey Repin wrote:

Hi Andrey,

[snip]
>> When the service is restarted after system startup, i.c.
> 
>>      cygrunsrv -E sshd; cygrunsrv -S sshd
> 
>> it then works flawlessly (which amazes me, given the error in
>> the sshd.log)
> 
> What if you `net start "Cygwin sshd"` ?

You mean after system startup? It tells me that "the requested service
has already been started." ... and sshd still fails when I approach it
again.
(yes, "net stop ...", followed by "net start ..." again does the trick)

[snip]
>> Any suggestions? (Yes, XP has F-Secure as anti-virus)
> 
>> The message in the sshd.log:
> 
>> Server listening on 0.0.0.0 port <X>.^M # X = some port, but not 22
>>        1 [main] sshd 3152 E:\Cygwin25\usr\sbin\sshd.exe: *** fatal 
>> error
>> in forked process - fork: can't reserve memory for parent stack 
>> 0x30000
>> - 0x230000, (child has 0x40000 - 0x240000), Win32 error 487
>>   395874 [main] sshd 3152 cygwin_exception::open_stackdumpfile: 
>> Dumping
>> stack trace to sshd.exe.stackdump
>>        3 [main] sshd 536 fork: child -1 - forked process 3152 died
>> unexpectedly, retry 0, exit code 0x100, errno 11
>> fork: Resource temporarily unavailable^M

[snip]
> Any "antivirus" running on that system?

Yes ... as I wrote in the original post "F-Secure" has been installed, 
and
yes, it may be the culprit ... (would have to UNinstall it, cannot 
switch
it off temporarily).

> Did you try to fully rebase your installation?

I did ... as instructed in /usr/share/doc/Cygwin/_autorebase.README

  - rebase-trigger fullrebase
  - shut down "Cygwin" (incuding: cygrunsrv -E sshd)
  - execute setup ...

It did not help. But read the error report in the sshd.log again: it is
not the "classical dll clash" (description by Michael Lemke :-), it is
"something else" (related to the "lockstep" in which parent and child 
are
forced by the cygwin dll when the fork syscall takes places, and yes, in
those circumstance a dll clash may occur if the Cygwin dlls have not 
been
properly rebased).

As rebasing did not help, I tried some other things, but then decided,
it would be far wiser to install the last valid version of Cygwin.

However the result was the same ...

Subsequently tried the peflags command ... reconfigured openssh in a
different way (using cyg_server as the privileged account - although not
required in XP)

Did some things (that I cannot really remember now). Finally I decided I
did not have a clue of what was going on (and of what I was doing).

That is why I decided to post my problem. I am clueless. More so, as I
can make sshd work by just restarting it ...

Regards,

Henri

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

  reply	other threads:[~2017-05-26  5:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-25 16:05 Houder
2017-05-25 16:05 ` Andrey Repin
2017-05-26  6:23   ` Houder [this message]
2017-05-25 21:36 ` Clueless! sshd ONLY fails at system startup (XP/SP3) ... minor correction Houder
2017-05-26  7:39   ` Clueless! sshd ONLY fails at system startup (XP/SP3) -- FOLLOWUP Houder
2017-05-26  8:05     ` Brian Inglis
2017-05-26 10:28       ` Houder
2017-05-26 15:05         ` cyg Simple
2017-05-26 17:25           ` Houder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bee7f844a577639ea4b2da1d865b814e@xs4all.nl \
    --to=houder@xs4all.nl \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).