Bug 86409 - Adding PHP support for .html files causes Segmentation Fault for all error documents
Adding PHP support for .html files causes Segmentation Fault for all error do...
Status: CLOSED DUPLICATE of bug 91279
Product: Red Hat Linux
Classification: Retired
Component: httpd (Show other bugs)
i686 Linux
medium Severity high
: ---
: ---
Assigned To: Joe Orton
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2003-03-21 12:20 EST by Stu Tomlinson
Modified: 2007-04-18 12:52 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-21 13:52:16 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Stu Tomlinson 2003-03-21 12:20:00 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020830

Description of problem:
Adding support for php in .html files somehow conflicts with the error
documents. Any error document results in the browser displaying the message 'the
document contains no data' - this is because the server process dies with this
ending up in the error log:
[Fri Mar 21 12:53:33 2003] [notice] child pid 4827 exit signal Segmentation
fault (11)

I have tried (briefly) to get a coredump with no success, and gdb doesn't want
to attach to the process (presumably due to the recent errata kernel's ptrace
vulnerability workaround).

Version-Release number of selected component (if applicable):
httpd-2.0.40-11 + php-4.2.2-11
(also confirmed on httpd-2.0.40-20 + php-4.2.2-16  from rawhide)

How reproducible:

Steps to Reproduce:
1. Add php support to apache by adding this to /etc/httpd/conf.d/php.conf
<Files *.html>
    SetOutputFilter PHP
    SetInputFilter PHP
    LimitRequestBody 524288

2. Restart apache
service httpd restart

3. Attempt to access something that results in an error document (eg. a
non-existant page)

Actual Results:  server process dies with segmentation fault and no data is
returned to browser

Expected Results:  server sends a nice 404 error document and the browser
displays it

Additional info:

This may be an apache/httpd thing or a php thing, but my gut feeling is it's
httpd so it's filed here.

I *did* have this working once, but that was a long time ago, and I was not
using RedHat packages but a hand-compiled apache & php. I'd prefer not to return
to that as it's a PITA.
Comment 1 Stu Tomlinson 2003-07-03 08:38:05 EDT
Hmm. Someone filed a dupe and that one got fixed - and it got released in an
errata. Yay. Thank you!

*** This bug has been marked as a duplicate of 91279 ***
Comment 2 Red Hat Bugzilla 2006-02-21 13:52:16 EST
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

Note You need to log in before you can comment on or make changes to this bug.