public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jim Garrison <jhg@jhmg.net>
To: cygwin@cygwin.com
Subject: Re: httpd immediate segfault on startup [solution]
Date: Tue, 25 Aug 2015 15:48:00 -0000	[thread overview]
Message-ID: <55DC8E60.4080602@jhmg.net> (raw)
In-Reply-To: <55BF0E48.7010207@jhmg.net>

For anybody else who's having trouble with apache segfaulting at
startup:

On 8/2/2015 11:46 PM, Jim Garrison wrote:
[snip]
>>>> Updated all cygwin packages to current versions, installed
>>>> httpd 2.4.16-1.  On startup httpd segfaults:
>>>> 
>>>> Exception: STATUS_ACCESS_VIOLATION at eip=65DC5D78 eax=8004E028
>>>> ebx=00000001 ecx=00000000 edx=8004DFF0 esi=80014490 
>>>> edi=80016498 ebp=0028CC78 esp=0028CB5C
>>>> program=C:\cygwin\usr\sbin\httpd.exe, pid 25500, thread main 
>>>> cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B Stack trace: 
>>>> Frame     Function  Args 0028CC78  65DC5D78 (00000003,
>>>> 0028CC9C, 80010100, 00000020) 0028CD28  6100846A (00000000,
>>>> 0028CD84, 610074F0, 00000000) End of stack trace
[snip]
> I think the exception and stack trace are secondary to the main 
> problem, which is described by the two messages in the error_log:
> 
> (88)Function not implemented: AH00023: Couldn't create the proxy
> mutex (88)Function not implemented: AH02478: failed to create proxy
> mutex
> 
> The exception goes away if I remove mod_perl from the configuration, 
> but the errors and failure to configure are the same.  I also tried 
> launching httpd in a mintty shell that was started with
> administrator privilege level, but the same error occurs.
> 
> The "Function not implemented" seems to indicate something
> mis-matched in my system but I cannot figure out what.

I just received this from Alex Kononov (thanks). I have not tried this
as I've moved in a different direction and no longer need to run apache
under Cygwin:

> I wasn't sure how to get on Cygwin mailing list quickly, so I'm
> writing to you directly.  I've had the same problem as you with the
> new release of Apache and I've just found a fix.  The issue is with
> the IPC (shared memory, semaphores, queues).  You must start an IPC
> server under windows (see, for starters, here --
> https://cygwin.com/cygwin-ug-net/using-cygserver.html).
> Unfortunately, the whole thing is not well documented.  Before, it
> was a part of the standard Cygwin installation, but now you must
> install cygrunsrv as a separate package.
> 
> Anyway, to fix "everything", just do: 1) Install cygrunsrv (this is
> done only once) 2) Run /usr/bin/cygserver-config (this is done only
> once) 3) Start Apache (/usr/sbin/apachectl ... options ...)
> 
> Alternatively, you may probably ask Apache not to use IPC mechanisms.
> I don't have time to try this, but feel free to explore.
> 
> Hope this helps.  Feel free to document these procedures on the
> Cygwin mailing list, so other people having the same problem will
> know what to do.
> 
> Good luck!
> 
> -- Alex


-- 
Jim Garrison (jhg@acm.org)
PGP Keys at http://www.jhmg.net RSA 0x04B73B7F DH 0x70738D88

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

  reply	other threads:[~2015-08-25 15:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-27  0:24 httpd immediate segfault on startup Jim Garrison
2015-07-29 15:48 ` Jim Garrison
2015-07-29 16:21   ` Habermann, David (D)
2015-07-31 16:18 ` Jim Garrison
2015-08-02 17:52   ` Marco Atzeri
2015-08-03  6:46     ` Jim Garrison
2015-08-25 15:48       ` Jim Garrison [this message]
2015-11-18  8:56         ` httpd immediate segfault on startup [solution] nemozny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55DC8E60.4080602@jhmg.net \
    --to=jhg@jhmg.net \
    --cc=cygwin@cygwin.com \
    --cc=jhg@acm.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).