You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2003/02/15 03:35:54 UTC

DO NOT REPLY [Bug 17093] New: - Missing causes segfault

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17093>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17093

Missing </VirtualHost> causes segfault

           Summary: Missing </VirtualHost> causes segfault
           Product: Apache httpd-2.0
           Version: 2.0.44
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: pepper@reppep.com


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>

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org