delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/07/19/07:12:21

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Thu, 19 Jul 2001 13:12:10 +0200
From: Corinna Vinschen <vinschen AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: fork on win95
Message-ID: <20010719131210.Y730@cygbert.vinschen.de>
Reply-To: cygdev <cygwin-developers AT cygwin DOT com>
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <005101c11036$06368800$806410ac AT local>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <005101c11036$06368800$806410ac@local>; from robert.collins@itdomain.com.au on Thu, Jul 19, 2001 at 07:34:34PM +1000

On Thu, Jul 19, 2001 at 07:34:34PM +1000, Robert Collins wrote:
> Chris - feedback on your changes -
> 
> C:\CYGWIN\BIN\BASH.EXE: *** Couldn't allocate space for child's heap from
> 0x8339
> B000, to 0x8339EF08, Win32 error 487
> 12808475 [main] BASH 93369 sync_with_child: child -111793(0x28) died before
> init
> ialization with status code 0x1
> 12821630 [main] BASH 93369 sync_with_child: *** child state waiting for
> longjmp
> BASH: fork: Resource temporarily unavailable

I have found another problem with the latest change which seems to
be related to the CYGWIN=tty setting. I'm getting this (or a very
similar output) when trying to logon from another box using ssh or
when I start anything using `sh -c', both with CYGWIN=tty:

$ sh -c ps

      0 [main] ps 1108 fhandler_base::fork_fixup: /dev/tty0 - Win32 error 6, handle io_handle<0x16C>
   8637 [main] ps 1108 fhandler_base::fork_fixup: /dev/tty0 - Win32 error 6, handle output_handle<0x170>
  18431 [main] ps 1108 fhandler_base::fork_fixup: /dev/tty0 - Win32 error 6, handle output_done_event<0x138>
  28342 [main] ps 1108 fhandler_base::fork_fixup: /dev/tty0 - Win32 error 6, handle ioctl_request_event<0x158>
  38349 [main] ps 1108 fhandler_base::fork_fixup: /dev/tty0 - Win32 error 6, handle ioctl_done_event<0x15C>
  48358 [main] ps 1108 fhandler_base::fork_fixup: /dev/tty0 - Win32 error 6, handle output_mutex<0x164>
  58386 [main] ps 1108 fhandler_base::fork_fixup: /dev/tty0 - Win32 error 6, handle input_mutex<0x168>
  68396 [main] ps 1108 fhandler_base::fork_fixup: /dev/tty0 - Win32 error 6, handle input_available_event<0x160>
  78398 [main] ps 1108 fhandler_base::fork_fixup: /dev/tty0 - Win32 error 6, handle inuse<0x174>
  88439 [main] ps 1108 fhandler_base::fork_fixup: /dev/tty0 - Win32 error 6, handle io_handle<0x1B4>
[...]
The whole output is generated three times just with different handle
values (stdin, stdout and stderr, probably). Then the normal `ps' output
appears. Generally, the above ERROR_INVALID_HANDLE output appears,
then everything works fine. That's also valid for the aforementioned
ssh session. As usual nothing happens when started under strace control.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

- Raw text -


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