I have an included vhost.conf file, and when I left off a </VirtualHost> entry near the end, both apachectl and httpd segfaulted, even on "apachectl configtest". This is httpd 2.0.44 (with mod_php) on FreeBSD 4.7-STABLE. Adding the missing </VirtualHost> line cleared the problem. httpd should provide an error message in this situation. www# apachectl configtest fatal process exception: page fault, fault VA = 0x18 Segmentation fault (core dumped) dmesg shows: "pid 227 (httpd), uid 0: exited on signal 11 (core dumped)". Here's the relevant bit of vhost.conf (Included from httpd.conf). NameVirtualHost 66.92.104.200:80 <VirtualHost 66.92.104.200:80> ServerAdmin webmaster@reppep.com # DocumentRoot /home/httpd/html/ DocumentRoot /home/amy/www/ ServerName www.reppep.com:80 ServerAlias reppep.com www CustomLog "|/usr/local/sbin/cronolog /var/log/httpd/reppep-%Y-%m-access_log" combined UserDir disabled root Redirect permanent /mail https://www.reppep.com/mail/ </VirtualHost> [snip] <VirtualHost 66.92.104.200:80> ServerAdmin rachel@reppep.com DocumentRoot /home/rachel/public_html/ ServerName www.xanny.net:80 ServerAlias xanny.net CustomLog "|/usr/local/sbin/cronolog /var/log/httpd/xanny-%Y-%m-access_log" combined <VirtualHost 66.92.104.200:80> ServerAdmin bjorn@reppep.com DocumentRoot /home/bjorn/public_html/ ServerName www.xoaudio.com:80 ServerAlias xoaudio.com www.xoxoaudio.com xoxoaudio.com CustomLog "|/usr/local/sbin/cronolog /var/log/httpd/xoaudio-%Y-%m-access_log" combined </VirtualHost>
ouch. reproduced. It happens only if it appears in an external file. will look at it ...
Well, this was a typical NULL pointer kaboom :) Fixed in 2.1 and proposed for backport, so it will hopefully go into 2.0.45. Thanks for you report and thanks for using Apache!
FYI: The fix will be in the next release (2.0.45).
*** Bug 23247 has been marked as a duplicate of this bug. ***