public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Clueless! sshd ONLY fails at system startup (XP/SP3) ...
@ 2017-05-25 16:05 Houder
  2017-05-25 16:05 ` Andrey Repin
  2017-05-25 21:36 ` Clueless! sshd ONLY fails at system startup (XP/SP3) ... minor correction Houder
  0 siblings, 2 replies; 9+ messages in thread
From: Houder @ 2017-05-25 16:05 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1868 bytes --]

Hi,

YES, I know, XP is NOT supported anymore ... However, I started
out on XP ... and it has sshd running as a Window service,

     installed and configured (as approved by Corinna :-)

... some time ago I may have upgraded openssh over there (yes, I
am now running W7) ... I cannot really remember. Yes, sometimes I
visit (ssh) the "old station" (XP) for info that I am missing.

(both machines are behind a firewall - rest assured)

"Suddenly" (yesterday?) I noticed that the "sshd daemon" fails;
it is started at system startup (i.e. an automatic service).

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)

... tried several things ... in the end, I reinstalled Cygwin +
openssh (a minimal installation) -- using the time machine.

However this new, minimal installation of Cywin fails in the exact
same way!

Again tried some things ... Finally, I decided to post my problem.

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

Do I interpret this correctly? The child (sshd) fails to "allocate
stack for the parent (sshd)" ...

WHY does this only happen at system STARTUP ?????

Regards,

Henri

(this message should include cygcheck.out - I hope)

======


[-- Attachment #2: cygcheck.out --]
[-- Type: text/plain, Size: 18230 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Thu May 25 15:24:32 2017

Windows XP Professional Ver 5.1 Build 2600 Service Pack 3

Path:	E:\Cygwin25\usr\local\bin
	E:\Cygwin25\bin
	C:\WINDOWS\system32
	C:\WINDOWS
	C:\WINDOWS\System32\Wbem
	E:\Cygwin25\home\Henri\bin

Output from E:\Cygwin25\bin\id.exe
UID: 1003(Henri)        GID: 513(None)
513(None)               544(Administrators)     545(Users)
4(INTERACTIVE)          11(Authenticated Users) 4095(CurrentSession)
66048(LOCAL)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'Henri'
PWD = '/home/Henri'
HOME = '/home/Henri'

HOMEPATH = '\Documents and Settings\Henri'
APPDATA = 'C:\Documents and Settings\Henri\Application Data'
HOSTNAME = 'xp'
SHELL = '/bin/bash'
TERM = 'xterm-256color'
PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 4 Stepping 3, GenuineIntel'
WINDIR = 'C:\WINDOWS'
TMPDIR = '/tmp'
OLDPWD = '/usr/bin'
USERDOMAIN = 'XP'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
TEMP = '/tmp'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
USERNAME = 'Henri'
PROCESSOR_LEVEL = '15'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
USERPROFILE = 'C:\Documents and Settings\Henri'
LANG = 'en_US.UTF-8'
CLIENTNAME = 'Console'
TZ = 'Europe/Berlin'
PS1 = '@@# '
LOGONSERVER = '\\XP'
PROCESSOR_ARCHITECTURE = 'x86'
EXECIGNORE = '*.dll'
SHLVL = '1'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
QUOTING_STYLE = 'literal'
HOMEDRIVE = 'C:'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
TMP = '/tmp'
SYSTEMROOT = 'C:\WINDOWS'
PRINTER = 'HP LaserJet P1006'
PROCESSOR_REVISION = '0403'
PROMPT_COMMAND = 'history -a'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info'
PROGRAMFILES = 'C:\Program Files'
NUMBER_OF_PROCESSORS = '2'
LC_TIME = 'C'
SESSIONNAME = 'Console'
COMPUTERNAME = 'XP'
_ = '/usr/bin/cygcheck'

HKEY_CURRENT_USER\Console\Cygwin Bash Shell
  (default) = 0x00000071
  PopupColors = 0x000000f5
  ColorTable00 = 0x00000000
  ColorTable01 = 0x00800000
  ColorTable02 = 0x00008000
  ColorTable03 = 0x00808000
  ColorTable04 = 0x00000080
  ColorTable05 = 0x00800080
  ColorTable06 = 0x00008080
  ColorTable07 = 0x00c0c0c0
  ColorTable08 = 0x00808080
  ColorTable09 = 0x00ff0000
  ColorTable10 = 0x0000ff00
  ColorTable11 = 0x00ffff00
  ColorTable12 = 0x000000ff
  ColorTable13 = 0x00ff00ff
  ColorTable14 = 0x0000ffff
  ColorTable15 = 0x00ffffff
  InsertMode = 0x00000001
  QuickEdit = 0x00000800
  FullScreen = 0x00000000
  ScreenBufferSize = 0x012c008c
  WindowSize = 0x0032008c
  WindowPosition = 0x00c102a0
  FontSize = 0x000c0000
  FontFamily = 0x00000036
  FontWeight = 0x00000190
  FaceName = 'Lucida Console'
  CursorSize = 0x00000019
  HistoryBufferSize = 0x00000032
  NumberOfHistoryBuffers = 0x00000004
  HistoryNoDup = 0x00000000
HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygwin\setup
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.cygwin
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.cygwin\OpenWithList
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.Cygwin17y
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.Cygwin17y\OpenWithList
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs\Cygwin-X
  (default) = (unsupported type)
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\E:\Cygwin25'
  430d57f1ddd17a43 = '\??\E:\Cygwin17'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'e:/Cygwin25'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: 06fba1863a0b0680 Path: E:\Cygwin25
  System: Key: 430d57f1ddd17a43 Path: E:\Cygwin17

a:  fd             N/A    N/A                    
c:  hd  NTFS     20002Mb  69% CP CS UN PA FC     LclDsk0
d:  hd  NTFS     12001Mb  43% CP CS UN PA FC     LclDsk1
e:  hd  NTFS     32004Mb  71% CP CS UN PA FC     LclDsk2
f:  cd             N/A    N/A                    
g:  cd             N/A    N/A                    

E:\Cygwin25      /         system  binary,auto
E:\Cygwin25\bin  /usr/bin  system  binary,auto
E:\Cygwin25\lib  /usr/lib  system  binary,auto
cygdrive prefix  /drv      user    binary,posix=0,auto

Found: E:\Cygwin25\bin\awk
 -> E:\Cygwin25\bin\gawk.exe
Found: E:\Cygwin25\bin\bash.exe
Found: E:\Cygwin25\bin\cat.exe
Found: E:\Cygwin25\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: E:\Cygwin25\bin\find.exe
Found: C:\WINDOWS\system32\find.exe
Warning: E:\Cygwin25\bin\find.exe hides C:\WINDOWS\system32\find.exe
Not Found: gcc
Not Found: gdb
Found: E:\Cygwin25\bin\grep.exe
Found: E:\Cygwin25\bin\kill.exe
Found: E:\Cygwin25\bin\ld.exe
Found: E:\Cygwin25\bin\ls.exe
Not Found: make
Found: E:\Cygwin25\bin\mv.exe
Not Found: patch
Not Found: perl
Found: E:\Cygwin25\bin\rm.exe
Found: E:\Cygwin25\bin\sed.exe
Found: E:\Cygwin25\bin\ssh.exe
Found: E:\Cygwin25\bin\sh.exe
Found: E:\Cygwin25\bin\tar.exe
Found: E:\Cygwin25\bin\test.exe
Found: E:\Cygwin25\bin\vi.exe
Found: E:\Cygwin25\bin\vim.exe

   38k 2013/07/23 E:\Cygwin25\bin\cygargp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygargp-0.dll" v0.0 ts=2013-07-23 15:35
   14k 2012/05/04 E:\Cygwin25\bin\cygattr-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygattr-1.dll" v0.0 ts=2012-05-04 12:35
  203k 2015/03/23 E:\Cygwin25\bin\cygblkid-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygblkid-1.dll" v0.0 ts=2015-03-23 09:55
   62k 2011/05/21 E:\Cygwin25\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2011-05-21 20:16
   13k 2015/03/19 E:\Cygwin25\bin\cygcom_err-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygcom_err-2.dll" v0.0 ts=2015-03-19 02:45
   10k 2016/06/09 E:\Cygwin25\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2016-06-09 16:02
 2005k 2016/05/04 E:\Cygwin25\bin\cygcrypto-1.0.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-1.0.0.dll" v0.0 ts=2016-05-04 17:25
  159k 2013/10/20 E:\Cygwin25\bin\cygedit-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygedit-0.dll" v0.0 ts=2013-10-20 22:09
   27k 2015/01/02 E:\Cygwin25\bin\cygffi-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygffi-6.dll" v0.0 ts=2015-01-02 01:11
   60k 2016/08/07 E:\Cygwin25\bin\cygformw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygformw-10.dll" v0.0 ts=2016-08-07 22:25
  108k 2016/06/14 E:\Cygwin25\bin\cyggcc_s-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggcc_s-1.dll" v0.0 ts=2016-06-14 05:44
   19k 2009/02/26 E:\Cygwin25\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2009-02-26 07:58
    8k 2009/02/26 E:\Cygwin25\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2009-02-26 07:58
  506k 2016/08/28 E:\Cygwin25\bin\cyggmp-10.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmp-10.dll" v0.0 ts=2016-08-28 10:11
 1026k 2015/08/28 E:\Cygwin25\bin\cyggnutls-28.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutls-28.dll" v0.0 ts=2015-08-28 15:23
   26k 2015/08/28 E:\Cygwin25\bin\cyggnutls-openssl-27.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutls-openssl-27.dll" v0.0 ts=2015-08-28 15:23
   42k 2015/08/28 E:\Cygwin25\bin\cyggnutlsxx-28.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutlsxx-28.dll" v0.0 ts=2015-08-28 15:23
  279k 2016/07/06 E:\Cygwin25\bin\cyggssapi_krb5-2.dll - os=4.0 img=1.0 sys=4.0
                  "cyggssapi_krb5-2.dll" v0.0 ts=2016-07-05 23:52
   31k 2015/01/27 E:\Cygwin25\bin\cyghistory7.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory7.dll" v0.0 ts=2015-01-27 23:43
  172k 2016/03/13 E:\Cygwin25\bin\cyghogweed-2.dll - os=4.0 img=1.0 sys=4.0
                  "cyghogweed-2.dll" v0.0 ts=2016-03-13 14:22
 1010k 2015/02/20 E:\Cygwin25\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2015-02-20 16:52
  198k 2014/12/06 E:\Cygwin25\bin\cygidn-11.dll - os=4.0 img=1.0 sys=4.0
                  "cygidn-11.dll" v0.0 ts=2014-12-06 12:56
   41k 2016/05/04 E:\Cygwin25\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2016-05-04 17:05
  189k 2016/07/06 E:\Cygwin25\bin\cygk5crypto-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygk5crypto-3.dll" v0.0 ts=2016-07-05 23:51
  745k 2016/07/06 E:\Cygwin25\bin\cygkrb5-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygkrb5-3.dll" v0.0 ts=2016-07-05 23:51
   39k 2016/07/06 E:\Cygwin25\bin\cygkrb5support-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygkrb5support-0.dll" v0.0 ts=2016-07-05 23:51
    5k 2016/06/23 E:\Cygwin25\bin\cyglsa.dll - os=4.0 img=1.0 sys=4.0
                  "cyglsa.dll" v0.0 ts=2016-06-23 13:27
    6k 2016/06/23 E:\Cygwin25\bin\cyglsa64.dll (not x86 dll)
  159k 2015/11/09 E:\Cygwin25\bin\cyglzma-5.dll - os=4.0 img=1.0 sys=4.0
                  "cyglzma-5.dll" v0.0 ts=2015-11-09 06:13
  124k 2016/01/11 E:\Cygwin25\bin\cygmagic-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmagic-1.dll" v0.0 ts=2016-01-11 22:36
  173k 2016/08/12 E:\Cygwin25\bin\cygman-2-7-5.dll - os=4.0 img=1.0 sys=4.0
                  "cygman-2-7-5.dll" v0.0 ts=2016-08-12 18:20
   21k 2016/08/12 E:\Cygwin25\bin\cygmandb-2-7-5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmandb-2-7-5.dll" v0.0 ts=2016-08-12 18:20
   30k 2016/08/07 E:\Cygwin25\bin\cygmenuw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenuw-10.dll" v0.0 ts=2016-08-07 22:25
  374k 2016/03/06 E:\Cygwin25\bin\cygmpfr-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygmpfr-4.dll" v0.0 ts=2016-03-06 16:44
   56k 2016/08/07 E:\Cygwin25\bin\cygncurses++w-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++w-10.dll" v0.0 ts=2016-08-07 22:29
  307k 2016/08/07 E:\Cygwin25\bin\cygncursesw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncursesw-10.dll" v0.0 ts=2016-08-07 22:23
  193k 2016/03/13 E:\Cygwin25\bin\cygnettle-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygnettle-4.dll" v0.0 ts=2016-03-13 14:22
  326k 2015/06/01 E:\Cygwin25\bin\cygp11-kit-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygp11-kit-0.dll" v0.0 ts=2015-06-01 20:17
   15k 2016/08/07 E:\Cygwin25\bin\cygpanelw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanelw-10.dll" v0.0 ts=2016-08-07 22:24
  470k 2016/08/11 E:\Cygwin25\bin\cygpcre-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-1.dll" v0.0 ts=2016-08-11 21:15
   41k 2015/04/09 E:\Cygwin25\bin\cygpipeline-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygpipeline-1.dll" v0.0 ts=2015-04-09 20:58
   43k 2016/07/13 E:\Cygwin25\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2016-07-13 06:17
   49k 2016/07/06 E:\Cygwin25\bin\cygpsl-5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpsl-5.dll" v0.0 ts=2016-07-06 20:42
  208k 2015/01/27 E:\Cygwin25\bin\cygreadline7.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline7.dll" v0.0 ts=2015-01-27 23:43
   11k 2015/07/17 E:\Cygwin25\bin\cygsigsegv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygsigsegv-2.dll" v0.0 ts=2015-07-17 22:33
   98k 2015/03/23 E:\Cygwin25\bin\cygsmartcols-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygsmartcols-1.dll" v0.0 ts=2015-03-23 09:55
  421k 2016/05/04 E:\Cygwin25\bin\cygssl-1.0.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-1.0.0.dll" v0.0 ts=2016-05-04 17:26
   13k 2016/06/14 E:\Cygwin25\bin\cygssp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygssp-0.dll" v0.0 ts=2016-06-14 06:42
 1439k 2016/06/14 E:\Cygwin25\bin\cygstdc++-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygstdc++-6.dll" v0.0 ts=2016-06-14 06:06
   70k 2016/08/22 E:\Cygwin25\bin\cygtasn1-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygtasn1-6.dll" v0.0 ts=2016-08-22 17:52
   55k 2016/08/07 E:\Cygwin25\bin\cygticw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygticw-10.dll" v0.0 ts=2016-08-07 22:23
 1570k 2015/10/16 E:\Cygwin25\bin\cygunistring-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygunistring-2.dll" v0.0 ts=2015-10-16 21:39
   16k 2015/03/23 E:\Cygwin25\bin\cyguuid-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyguuid-1.dll" v0.0 ts=2015-03-23 09:55
   83k 2014/11/19 E:\Cygwin25\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2014-11-19 22:57
 3572k 2016/06/23 E:\Cygwin25\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2016-06-23 13:27
    Cygwin DLL version info:
        DLL version: 2.5.2
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 297
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        Shared id: cygwin1S5


Service             : sshd                
Display name        : CYGWIN sshd
Current State       : Stopped
Command             : /usr/sbin/sshd -4 -D -e
stdin path          : /dev/null
stdout path         : /var/log/sshd.log
stderr path         : /var/log/sshd.log
Process Type        : Own Process
Startup             : Automatic
Dependencies        : tcpip
Account             : .\cyg_server


Cygwin Package Information
Last downloaded files to: E:\_cygwin25_repository
Last downloaded files from: http://ctm.crouchingtigerhiddenfruitbat.org/pub/cygwin/circa/2016/08/30/104223/

Package              Version            Status
_autorebase          001004-1           OK
alternatives         1.3.30c-10         OK
ascii                3.15-1             OK
base-cygwin          3.8-1              OK
base-files           4.2-4              OK
bash                 4.3.46-7           OK
binutils             2.25-4             OK
bzip2                1.0.6-2            OK
ca-certificates      2.9-1              OK
coreutils            8.25-3             OK
csih                 0.9.9-1            OK
cygrunsrv            1.62-1             OK
cygutils             1.4.15-2           OK
cygwin               2.5.2-1            OK
cygwin-doc           2.5.0-1            OK
dash                 0.5.8-3            OK
diffutils            3.5-1              OK
dos2unix             7.3.4-1            OK
editrights           1.03-1             OK
file                 5.25-1             OK
findutils            4.6.0-1            OK
gawk                 4.1.4-1            OK
getent               2.18.90-4          OK
grep                 2.25-1             OK
groff                1.22.3-1           OK
gzip                 1.8-1              OK
hostname             3.13-1             OK
info                 6.1-2              OK
ipc-utils            1.0-1              OK
less                 481-1              OK
libargp              20110921-2         OK
libattr1             2.4.46-1           OK
libblkid1            2.25.2-2           OK
libbz2_1             1.0.6-2            OK
libcom_err2          1.42.12-2          OK
libcrypt0            1.4-1              OK
libedit0             20130712-1         OK
libffi6              3.2.1-1            OK
libgcc1              5.4.0-1            OK
libgdbm4             1.8.3-20           OK
libgmp10             6.1.1-1            OK
libgnutls28          3.3.17-1           OK
libgssapi_krb5_2     1.14.1-2           OK
libhogweed2          2.7.1-1            OK
libiconv             1.14-3             OK
libiconv2            1.14-3             OK
libidn11             1.29-1             OK
libintl8             0.19.7-1           OK
libk5crypto3         1.14.1-2           OK
libkrb5_3            1.14.1-2           OK
libkrb5support0      1.14.1-2           OK
liblzma5             5.2.2-1            OK
libmpfr4             3.1.4-1            OK
libncursesw10        6.0-7.20160806     OK
libnettle4           2.7.1-1            OK
libopenssl100        1.0.2h-1           OK
libp11-kit0          0.22.1-1           OK
libpcre1             8.39-1             OK
libpipeline1         1.4.0-1            OK
libpopt-common       1.16-2             OK
libpopt0             1.16-2             OK
libpsl5              0.13.0-2           OK
libreadline7         6.3.8-1            OK
libsigsegv2          2.10-2             OK
libsmartcols1        2.25.2-2           OK
libssp0              5.4.0-1            OK
libstdc++6           5.4.0-1            OK
libtasn1_6           4.9-1              OK
libunistring2        0.9.6-1            OK
libuuid1             2.25.2-2           OK
login                1.11-1             OK
man-db               2.7.5-1            OK
mintty               2.4.3-0            OK
ncurses              6.0-7.20160806     OK
openssh              7.3p1-2            OK
openssl              1.0.2h-1           OK
p11-kit              0.22.1-1           OK
p11-kit-trust        0.22.1-1           OK
ping                 1.0.2-1            OK
rebase               4.4.2-1            OK
run                  1.3.4-2            OK
sed                  4.2.2-3            OK
tar                  1.28-1             OK
terminfo             6.0-7.20160806     OK
tzdata               2016f-1            OK
upx                  3.91-1             OK
util-linux           2.25.2-2           OK
vim                  7.4.2181-1         OK
vim-common           7.4.2181-1         OK
vim-minimal          7.4.2181-1         OK
wget                 1.18-1             OK
which                2.20-2             OK
xxd                  7.4.2181-1         OK
xz                   5.2.2-1            OK
zlib-devel           1.2.8-3            OK
zlib0                1.2.8-3            OK
Use -h to see help about each section

[-- Attachment #3: Type: text/plain, Size: 219 bytes --]


--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Clueless! sshd ONLY fails at system startup (XP/SP3) ...
  2017-05-25 16:05 Clueless! sshd ONLY fails at system startup (XP/SP3) Houder
@ 2017-05-25 16:05 ` Andrey Repin
  2017-05-26  6:23   ` Houder
  2017-05-25 21:36 ` Clueless! sshd ONLY fails at system startup (XP/SP3) ... minor correction Houder
  1 sibling, 1 reply; 9+ messages in thread
From: Andrey Repin @ 2017-05-25 16:05 UTC (permalink / raw)
  To: Houder, cygwin

Greetings, Houder!

> Hi,

> YES, I know, XP is NOT supported anymore ... However, I started
> out on XP ... and it has sshd running as a Window service,

>      installed and configured (as approved by Corinna :-)

> ... some time ago I may have upgraded openssh over there (yes, I
> am now running W7) ... I cannot really remember. Yes, sometimes I
> visit (ssh) the "old station" (XP) for info that I am missing.

> (both machines are behind a firewall - rest assured)

> "Suddenly" (yesterday?) I noticed that the "sshd daemon" fails;
> it is started at system startup (i.e. an automatic service).

> 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 sshad"` ?

> ... tried several things ... in the end, I reinstalled Cygwin +
> openssh (a minimal installation) -- using the time machine.

> However this new, minimal installation of Cywin fails in the exact
> same way!

> Again tried some things ... Finally, I decided to post my problem.

> 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

> Do I interpret this correctly? The child (sshd) fails to "allocate
> stack for the parent (sshd)" ...

> WHY does this only happen at system STARTUP ?????

Any "antivirus" running on that system?
Did you try to fully rebase your installation?


-- 
With best regards,
Andrey Repin
Thursday, May 25, 2017 18:57:22

Sorry for my terrible english...


--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Clueless! sshd ONLY fails at system startup (XP/SP3) ... minor correction
  2017-05-25 16:05 Clueless! sshd ONLY fails at system startup (XP/SP3) Houder
  2017-05-25 16:05 ` Andrey Repin
@ 2017-05-25 21:36 ` Houder
  2017-05-26  7:39   ` Clueless! sshd ONLY fails at system startup (XP/SP3) -- FOLLOWUP Houder
  1 sibling, 1 reply; 9+ messages in thread
From: Houder @ 2017-05-25 21:36 UTC (permalink / raw)
  To: cygwin

On 2017-05-25 17:36, Houder wrote:
> Hi,
> 
> YES, I know, XP is NOT supported anymore ... However, I started
> out on XP ... and it has sshd running as a Window service,
> 
>     installed and configured (as approved by Corinna :-)
> 
> ... some time ago I may have upgraded openssh over there (yes, I
> am now running W7) ... I cannot really remember. Yes, sometimes I
> visit (ssh) the "old station" (XP) for info that I am missing.
> 
> (both machines are behind a firewall - rest assured)
> 
> "Suddenly" (yesterday?) I noticed that the "sshd daemon" fails;
> it is started at system startup (i.e. an automatic service).

Ahem ... it should have rephrased that ... however, from the error
report in the sshd.log, it should be clear that the daemon fails as
soon as it receives its first "ssh" request ... (and not before).

[snip]

> 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

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Clueless! sshd ONLY fails at system startup (XP/SP3) ...
  2017-05-25 16:05 ` Andrey Repin
@ 2017-05-26  6:23   ` Houder
  0 siblings, 0 replies; 9+ messages in thread
From: Houder @ 2017-05-26  6:23 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Clueless! sshd ONLY fails at system startup (XP/SP3) -- FOLLOWUP
  2017-05-25 21:36 ` Clueless! sshd ONLY fails at system startup (XP/SP3) ... minor correction Houder
@ 2017-05-26  7:39   ` Houder
  2017-05-26  8:05     ` Brian Inglis
  0 siblings, 1 reply; 9+ messages in thread
From: Houder @ 2017-05-26  7:39 UTC (permalink / raw)
  To: cygwin

On 2017-05-25 23:21, Houder wrote:
> On 2017-05-25 17:36, Houder wrote:
>> Hi,
>> 
>> YES, I know, XP is NOT supported anymore ... However, I started
>> out on XP ... and it has sshd running as a Window service,
>> 
>>     installed and configured (as approved by Corinna :-)
>> 
>> ... some time ago I may have upgraded openssh over there (yes, I
>> am now running W7) ... I cannot really remember. Yes, sometimes I
>> visit (ssh) the "old station" (XP) for info that I am missing.
>> 
>> (both machines are behind a firewall - rest assured)
>> 
>> "Suddenly" (yesterday?) I noticed that the "sshd daemon" fails;
>> it is started at system startup (i.e. an automatic service).
> 
> Ahem ... it should have rephrased that ... however, from the error
> report in the sshd.log, it should be clear that the daemon fails as
> soon as it receives its first "ssh" request ... (and not before).

Give me a break!

Just now I decided to UNinstall the F-Secure anti-virus ...

And guess what ...? Yes, NOW sshd replies again to requests after system
startup!

Now I wonder if I will find the same result on W7 when I install 
openssh.
(yes, W7 also has F-Secure anti-virus installed).

Anyone using F-Secure on W7 and operating the sshd?

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Clueless! sshd ONLY fails at system startup (XP/SP3) -- FOLLOWUP
  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
  0 siblings, 1 reply; 9+ messages in thread
From: Brian Inglis @ 2017-05-26  8:05 UTC (permalink / raw)
  To: cygwin

On 2017-05-26 00:23, Houder wrote:
> On 2017-05-25 23:21, Houder wrote:
>> On 2017-05-25 17:36, Houder wrote:
>>> YES, I know, XP is NOT supported anymore ... However, I started
>>> out on XP ... and it has sshd running as a Window service,
>>>     installed and configured (as approved by Corinna :-)
>>> ... some time ago I may have upgraded openssh over there (yes, I
>>> am now running W7) ... I cannot really remember. Yes, sometimes I
>>> visit (ssh) the "old station" (XP) for info that I am missing.
>>> (both machines are behind a firewall - rest assured)
>>> "Suddenly" (yesterday?) I noticed that the "sshd daemon" fails;
>>> it is started at system startup (i.e. an automatic service).
>> Ahem ... it should have rephrased that ... however, from the error
>> report in the sshd.log, it should be clear that the daemon fails as
>> soon as it receives its first "ssh" request ... (and not before).
> Give me a break!
> Just now I decided to UNinstall the F-Secure anti-virus ...
> And guess what ...? Yes, NOW sshd replies again to requests after system
> startup!
> Now I wonder if I will find the same result on W7 when I install openssh.
> (yes, W7 also has F-Secure anti-virus installed).
> Anyone using F-Secure on W7 and operating the sshd?

For Win7 MS Defender, MS Security Essentials (MSE - free MS download),
and Windows Firewall were not BLODAs for me, all others were, but you
still have to open up required ports in routers, Firewall, and any
security products, and/or enable apps to receive. It can be a pain.

Does F-n-Secure have firewall or port block features - many have?
Allow port 22 in (or your selection, and from selected hosts or
networks, if it can be limited).

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Clueless! sshd ONLY fails at system startup (XP/SP3) -- FOLLOWUP
  2017-05-26  8:05     ` Brian Inglis
@ 2017-05-26 10:28       ` Houder
  2017-05-26 15:05         ` cyg Simple
  0 siblings, 1 reply; 9+ messages in thread
From: Houder @ 2017-05-26 10:28 UTC (permalink / raw)
  To: cygwin

On 2017-05-26 09:51, Brian Inglis wrote:

[snip]
>> Now I wonder if I will find the same result on W7 when I install 
>> openssh.
>> (yes, W7 also has F-Secure anti-virus installed).
>> Anyone using F-Secure on W7 and operating the sshd?
> 
> For Win7 MS Defender, MS Security Essentials (MSE - free MS download),
> and Windows Firewall were not BLODAs for me, all others were, but you
> still have to open up required ports in routers, Firewall, and any
> security products, and/or enable apps to receive. It can be a pain.
> 
> Does F-n-Secure have firewall or port block features - many have?
> Allow port 22 in (or your selection, and from selected hosts or
> networks, if it can be limited).

Hi Brian,

Thanks for the info.

... yes, I know how to "clear" the firewall-hurdle :-)

F-Secure SAFE (anti-virus):

I got "F-Secure SAFE" from my provider; it is only anti-virus; that
is: no firewall ...

Some time ago it automatically upgraded itself ... and kept working.

After UNinstalling it (as I wrote in my previous post) I decided to
REinstall it (downloaded the executable from my provider).

After startup the executable tells me:

     "your system (XP!) is no longer supported!"

Case closed ;-)

(I still have to verify W7 and openssh in combo with F-Secure)

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Clueless! sshd ONLY fails at system startup (XP/SP3) -- FOLLOWUP
  2017-05-26 10:28       ` Houder
@ 2017-05-26 15:05         ` cyg Simple
  2017-05-26 17:25           ` Houder
  0 siblings, 1 reply; 9+ messages in thread
From: cyg Simple @ 2017-05-26 15:05 UTC (permalink / raw)
  To: cygwin

On 5/26/2017 4:17 AM, Houder wrote:

Are you positive your XP system, even though beyond EOSL didn't get auto
updated because of RANSOMEWARE upgrades[1][2]?  Perhaps this was the
source of your problems.

[1]
https://www.theverge.com/2017/5/13/15635006/microsoft-windows-xp-security-patch-wannacry-ransomware-attack
[2]
https://redmondmag.com/articles/2017/05/15/microsoft-releases-windows-ransomware-patch.aspx

-- 
cyg Simple

--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Clueless! sshd ONLY fails at system startup (XP/SP3) -- FOLLOWUP
  2017-05-26 15:05         ` cyg Simple
@ 2017-05-26 17:25           ` Houder
  0 siblings, 0 replies; 9+ messages in thread
From: Houder @ 2017-05-26 17:25 UTC (permalink / raw)
  To: cygwin

On Fri, 26 May 2017 10:40:20, cyg Simple wrote:
> On 5/26/2017 4:17 AM, Houder wrote:
> 
> Are you positive your XP system, even though beyond EOSL didn't get auto
> updated because of RANSOMEWARE upgrades[1][2]?  Perhaps this was the
> source of your problems.

I applied the patch myself ... (and I do not believe that the patch was the
cause of the problem - given the fact, that the problem disappeared after I
had UNinstalled the F-Secure *****)

Henri

> [1]
> https://www.theverge.com/2017/5/13/15635006/microsoft-windows-xp-security-patch-wannacry-ransomware-attack
> [2]
> https://redmondmag.com/articles/2017/05/15/microsoft-releases-windows-ransomware-patch.aspx


--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-05-26 17:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-25 16:05 Clueless! sshd ONLY fails at system startup (XP/SP3) Houder
2017-05-25 16:05 ` Andrey Repin
2017-05-26  6:23   ` Houder
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

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).