delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/04/15:53:53

X-Spam-Check-By: sourceware.org
Date: Sun, 04 Jun 2006 20:53:32 +0100
From: Robin Walker <rdhw AT cam DOT ac DOT uk>
Reply-To: Robin Walker <rdhw AT cam DOT ac DOT uk>
To: cygwin AT cygwin DOT com
Subject: sshd: fork of unprivileged child failed
Message-ID: <BEA70E0A3FEDAAAA547BDE99@qjunbur.quns.cam.ac.uk>
X-Mailer: Mulberry/4.0.4 (Win32)
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

I have a system with Cygwin sshd installed that refuses to accept 
connections.  sshd is running and listening on port 22.

In the Windows Application Log there are, for each failed connection 
attempt, entries of the form:

sshd: PID xxxx: fatal: fork of unprivileged child failed.

In sshd.log there are entries of the form:

   1893 [main] sshd 7720 C:\cygwin\usr\sbin\sshd.exe: *** fatal error - 
recreate_mmaps_after_fork_failed
      9 [main] sshd 6788 child_copy: stack write copy failed, 
0x23DDA0..0x240000, done 0, windows pid 2350292, Win32 error 5
      7 [main] sshd 6344 fhandler_dev_zero::fixup_mmap_after_fork: 
requested 0x3F0000 != 0x0 mem alloc base 0x3F0000, state 0x1000, size 4096, 
Win32 error 487
   2029 [main] sshd 6344 C:\cygwin\usr\sbin\sshd.exe: *** fatal error - 
recreate_mmaps_after_fork_failed
      8 [main] sshd 7868 child_copy: stack write copy failed, 
0x23DDA0..0x240000, done 0, windows pid 2350292, Win32 error 5
      6 [main] sshd 6872 fhandler_dev_zero::fixup_mmap_after_fork: 
requested 0x3F0000 != 0x0 mem alloc base 0x3F0000, state 0x1000, size 4096, 
Win32 error 487
   2487 [main] sshd 6872 C:\cygwin\usr\sbin\sshd.exe: *** fatal error - 
recreate_mmaps_after_fork_failed
     10 [main] sshd 6336 child_copy: stack write copy failed, 
0x23DDA0..0x240000, done 0, windows pid 2350292, Win32 error 5


Attempts by client ssh programs to connect are given:
Read from socket failed: Connection reset by peer

This happens even for ssh 127.0.0.1 on the server itself.

What do I need to do to get this sshd working?

The first time this fault ever occurred on this system, a "rebaseall" cured 
it.  But the fault has returned some months later, and a "rebaseall" no 
longer fixes it.

-- 
Robin Walker (Junior Bursar), Queens' College, Cambridge CB3 9ET, UK
rdhw AT cam DOT ac DOT uk  http://www.queens.cam.ac.uk/  Tel:+44 1223 335528

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