httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leif W" <>
Subject [users@httpd] [info] Apache 2.0.49 restart seg fault is php4 related
Date Sun, 02 May 2004 17:33:50 GMT
(tail -f error_log in the background)

<defiant> [2004-05-02@12:30:29] /var/www -> httpd -k restart
<defiant> [2004-05-02@12:30:45] /var/www -> [Sun May 02 12:30:45 2004]
[notice] SIGHUP received.  Attempting to restart
[Sun May 02 12:30:45 2004] [notice] seg fault or similar nasty error
detected in the parent process

Others may have experienced this within the past month.  I am just
coming across the issue, and didn't see anything on the MARC, so I
thought I'd post this, before other people get around to upgrading and
start looking here.  There appears to be some bugs in the php 4.3.5
through 4.3.6 (inclusive of all RCs) code when run on Apache 2.0.49 with
the symptom that a SIGHUP to the Apache2 parent process causes aseg
fault.  This means NO GRACEFUL RESTART for the log files.  This seems to
affect at least Linux, FreeBSD, Windows, and Solaris, so I'd make a safe
assumption that it affects all OSes (as those are the 4 major ones).

PHP devs tried passing it off as an Apache problem at first (annoying).
Then they marked a lot of bug report threads as bogus of closed, instead
of duplicates (that attitude is bogus!).  The problem was isolated to
the PCRE code.  Then they insist that it's "fixed in CVS", but many
people still saw no resolution to the problem.  This also implies
running development code which may have any number of other bugs in it,
when the proper course of action is to release a single official patch
for this specific problem for this specific version of PHP.  There are a
few user-contributed "patches", but they seem to revert to the older
PCRE code, which is not really a fix of the problem, and I'm not sure of
any implications of such a patch.  However, some have reported success
with the patches on Linux (but only for RedHat 9) and FreeBSD.

Bug versions:

 --- Don't work: ---
+apache 2.0.49 +php5.0.0RC1 with pcre = Not OK
+apache 2.0.49 +php4.3.5    with pcre = Not OK

--- works: ---
+apache 2.0.49 +php5.0.0RC1 w/o  pcre = OK
+apache 2.0.49 +php4.3.5    w/o  pcre = OK
+apache 2.0.48 +php5.0.0RC1 with pcre = OK
+apache 2.0.48 +php4.3.5    with pcre = OK

URLs: (Linux) (Windows) (FreeBSD) (Solaris 9)

Reported fixed here, but it's CVS snapshot:


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message