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/07/17 13:50:00 UTC
DO NOT REPLY [Bug 21682] New: -
Apache core dumps when reading a certain Virtual Hosts scenario
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=21682>.
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=21682
Apache core dumps when reading a certain Virtual Hosts scenario
Summary: Apache core dumps when reading a certain Virtual Hosts
scenario
Product: Apache httpd-2.0
Version: 2.0.47
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: Normal
Priority: Other
Component: Core
AssignedTo: bugs@httpd.apache.org
ReportedBy: michael.schroepl@telekurs.com
I have a couple of Virtual hosts, many of them name-based on Port 80, one of
them IP-based on port 443 (using SSL). To give you an impression:
/apache/2.0.47 (root/server) bin/httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:443 ssl.company.de (/usr/local/apache/common2/vh_ssl.conf:1)
*:80 is a NameVirtualHost
default server ssl.company.de (/usr/local/apache/common2/vh_ssl.conf:1)
port 80 namevhost name1.company.de
(/usr/local/apache/common2/vh_name1.conf:1)
port 80 namevhost name2.company.de
(/usr/local/apache/common2/vh_name2.conf:1)
port 80 namevhost name3.company.de
(/usr/local/apache/common2/vh_name3.conf:1)
...
Syntax OK
(names edited, in my case about 30 virtual hosts)
Basically, everything works as expected.
Now I want to have one of my name-based Virtual Hosts the default VH when
entering the machine's IP address and port 80. But when I change one of this
name-based Virtual Hosts from
<VirtualHost *:80>
to
<VirtualHost _default_:80>
(like http://httpd.apache.org/docs-2.0/vhosts/examples.html#defaultoneport seems
to tell me) then every execution of "httpd" (starting, stopping, even "httpd
-S") results in a core dump:
bin/apachectl sslstart
[Thu Jul 17 12:51:58 2003] [crit] [Thu Jul 17 12:51:58 2003] file vhost.c, line
232, assertion "rv == APR_SUCCESS" failed
Abort - core dumped
The corresponding source code section is explicitly checking for the "_default_"
value:
else if (strcasecmp(host, "_default_") == 0
|| strcmp(host, "255.255.255.255") == 0) {
rv = apr_sockaddr_info_get(&my_addr, "255.255.255.255", APR_INET, port,
0, p);
ap_assert(rv == APR_SUCCESS); /* must be bug or out of storage */
}
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org