delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/07/10/16:55:57

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=p1AEQsBg5/F5ydyIHz8wmeCTuuQExRYCMzoKNO+G7pAuUENvGps+q
k6fbzbX9POrZmoagvqaJ1MACVaM2UfhC/uPtz7bpgTJ+1RVBgyZbB05OCTk3i6UQ
CDynvZ1iOpF3B5nEGxXH1bH43VWRq7ST4kigv1NwplZCMFFJ/T/r9c=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=5bEwTfjXNKqhAxOmQKDFvSbY0l0=; b=VfFE9+QPJt9ZpBoMpX952TObOSsR
fUR4R//8M5ub0XQQgtypIIlRVTYnfvnurD7o4BvjelUhdkHitgGh82d08PD9OaF9
xt/OBfAkDlEXUomgeki+/76Qxwkua5o3SRayEDoCIP6weqczxdJH+dcq9w5jvedz
waDBub1K9Jd7f/0=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE autolearn=ham version=3.3.1
X-Mail-Handler: Dyn Standard SMTP by Dyn
X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1/fkhdOpdgngQn+HVPNAwyt
Date: Wed, 10 Jul 2013 16:55:38 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: emacs problem
Message-ID: <20130710205538.GA5740@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <m9hik3kyjnk9 DOT fsf AT W0144758 DOT usac DOT mmm DOT com> <51DDAE03 DOT 2040209 AT cornell DOT edu>
MIME-Version: 1.0
In-Reply-To: <51DDAE03.2040209@cornell.edu>
User-Agent: Mutt/1.5.20 (2009-06-14)

On Wed, Jul 10, 2013 at 02:54:59PM -0400, Ken Brown wrote:
>On 7/10/2013 2:07 PM, J. David Boyd wrote:
>>
>> I'm starting to see this error quite a bit in the terminal window I started
>> emacs from:
>>
>> 0 [main] emacs-X11 19400 C:\tools\cygwin\bin\emacs-X11.exe: *** fatal error in
>> forked process - failed to create new win32 semaphore, Win32 error 87
>
>Have you tried rebaseall 
>(http://cygwin.com/faq.html#faq.using.fixing-fork-failures)?  This isn't 
>the typical error message you see from rebase problems, but it can't 
>hurt to try.  If that doesn't help, maybe you could test the build I 
>mentioned at

That doesn't look like the standard fork problem, Ken.  The error comes
from semaphore::_fixup_after_fork:

  void
  semaphore::_fixup_after_fork ()
  {
    if (shared == PTHREAD_PROCESS_PRIVATE)
      {
	pthread_printf ("sem %p", this);
	/* FIXME: duplicate code here and in the constructor. */
	win32_obj_id = ::CreateSemaphore (&sec_none_nih, currentvalue,
						INT32_MAX, NULL);
	if (!win32_obj_id)
	  api_fatal ("failed to create new win32 semaphore, %E");
      }
  }

Error code 87 is ERROR_INVALID_PARAMETER.  The only two things that I
can see which would cause that problem are "sec_non_nih" and
currentvalue.

I'll change the error to report on currentvalue.  I assume that
currentvalue must be zero for some reason here and that is what is
causing the problem but it would be nice to know for sure.

cgf

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

- Raw text -


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