Bug 77206

Summary: httpd crashes when there is a filename in /etc/httpd/conf.d it can't understand
Product: [Retired] Red Hat Linux Reporter: Nathan G. Grennan <redhat-bugzilla>
Component: httpdAssignee: Joe Orton <jorton>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: high Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-15 12:11:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Nathan G. Grennan 2002-11-03 02:03:25 UTC
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 10:54:46 UTC
Ouch - this causes the config processing to go into an infinite loop. Thanks
for the report.

Comment 2 Joe Orton 2002-11-03 11:11:52 UTC
Changing the Include statement in httpd.conf to:

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

is one workaround.

Comment 3 Nathan G. Grennan 2003-01-03 03:50:11 UTC
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 12:55:29 UTC
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.