Bug 77206 - httpd crashes when there is a filename in /etc/httpd/conf.d it can't understand
httpd crashes when there is a filename in /etc/httpd/conf.d it can't understand
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: httpd (Show other bugs)
8.0
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Joe Orton
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-11-02 21:03 EST by Nathan G. Grennan
Modified: 2007-04-18 12:48 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-01-15 07:11:24 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Nathan G. Grennan 2002-11-02 21:03:25 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020830

Description of problem:
A client of mine somehow created a filename of *.conf in /etc/httpd/conf.d which
from then on caused httpd to cause on start. I ran gdb and it said

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 8192 (LWP 4313)]
0x40234500 in apr_dir_read () from /usr/lib/libapr.so.0

Removing the file *.conf fixed the problem.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Install httpd and httpd-devel
2. touch /etc/httpd/conf.d/\*.conf
3. service httpd start
	

Actual Results:  httpd crashes

Expected Results:  httpd to start normally or give an error message

Additional info:
Comment 1 Joe Orton 2002-11-03 05:54:46 EST
Ouch - this causes the config processing to go into an infinite loop. Thanks
for the report.
Comment 2 Joe Orton 2002-11-03 06:11:52 EST
Changing the Include statement in httpd.conf to:

Include conf.d/[^*?]*.conf

is one workaround.
Comment 3 Nathan G. Grennan 2003-01-02 22:50:11 EST
Just tried this again with the httpd in Phoebe beta and it still crashes httpd
the exact same way.
Comment 4 Joe Orton 2003-01-03 07:55:29 EST
This will be fixed for the next release by making httpd ignore any filenames
which are valid wildcard patterns, so the "*.conf" file will then be skipped.

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