emacs problem

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Wed Jul 10 21:10:00 GMT 2013

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:

  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

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.


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

More information about the Cygwin mailing list