Bug 91279
Summary: | Segfault using PHP with mod_negotiation | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Chris Ricker <chris.ricker> | ||||||||
Component: | php | Assignee: | Joe Orton <jorton> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | David Lawrence <dkl> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 9 | CC: | stu | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2003-07-03 11:46:48 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Chris Ricker
2003-05-20 19:10:02 UTC
Created attachment 91836 [details]
strace of segfaulting httpd
I've attached a complete strace of the segfaulting process, just in case that's useful. In a sec, I'll attach /etc/httpd/conf.d/php.conf.... Created attachment 91837 [details]
php.conf
Hmm, after poking this some more, it looks like what was actually blowing up was the whole /var/www/error/*.var -> /var/www/error/include/*.html custom error response generation stuff. If the /var/www/error/*.html file gets parsed by the PHP interpreter, then everything blows up. If the /var/www/error/*.html file doesn't hit the PHP interpreter, everything's fine. I modified php.conf to parse /var/www/error/*.html as HTML, and it solved the problem. It does seem broken that httpd ever segfaulted from the original configuration, though. Created attachment 91845 [details]
working php.conf
Out of curiosity, I poked this a bit more to see where exactly the problem lies. It looks like its the MultiViews error responses that are blowing up if they get parsed by the PHP interpreter. I changed /etc/httpd/conf/httpd.conf to ErrorDocument 404 /error/HTTP_NOT_FOUND.html copied just the english portion of /var/www/error/HTTP_NOT_FOUND.html.var to /var/www/error/HTTP_NOT_FOUND.html, changed php.conf to interpret all .html through the PHP interpreter, and everything still worked (including custom error response using the SSI-type directives in HTTP_NOT_FOUND.html and /var/www/error/include/*.html) Something about the .var files (or the HTML output from them) running through PHP appears to be why this died? That's very interesting. Thanks a lot for narrowing down the failure case. It looks like this is a collision with a quirk of how mod_include handles subrequests. I'm testing a fix for the next erratum - thanks a lot for tracking this down so precisely. The fix for this is integrated for forthcoming erratum. An errata has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2003-204.html *** Bug 86409 has been marked as a duplicate of this bug. *** |