This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sshd: fork of unprivileged child failed


Robin Walker wrote:
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.



Did you try a recent snapshot?  Otherwise, let's start back at the beginning.
Please read and follow the problem reporting guidelines found at:

<http://cygwin.com/problems.html>

Think about things that have changed about the time things stopped working
for you.  This includes things both a part of and external to Cygwin.

--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]