httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <>
Subject Core dump in apache-1.3.18, with VirtualHosts
Date Tue, 13 Feb 2001 22:18:54 GMT
I just observed a core dump in the routine dump_a_vhost() in http_vhost.c
but I do not know whether it is somehow related to the recent change to
allow "NameVirtualHost *" or if this error is older than that change.

I trigger the core dump by invoking Apache as:
  % httpd -S
  VirtualHost configuration:
  wildcard NameVirtualHosts and _default_ servers:
  *:82          (/opt/apache/conf/httpd.conf:1080)
  *:80                   is a NameVirtualHost
                         default server (/opt/apache/conf/httpd.conf:1061)
                         port 80 namevhost (/opt/apache/conf/httpd.conf:1061)
                         port 80 namevhost (/opt/apache/conf/httpd.conf:1066)
                         port 80 namevhost (/opt/apache/conf/httpd.conf:1071)
                         port 80 namevhost (/opt/apache/conf/httpd.conf:1076)
                         port 80 namevhost (/opt/apache/conf/httpd.conf:1085)
                         port 80 namevhost (/opt/apache/conf/httpd.conf:1090)
                         port 80 namevhost (/opt/apache/conf/httpd.conf:1101)
  Program received signal SIGSEGV, Segmentation fault.
  0x806907f in dump_a_vhost (f=0x80a3970, ic=0x8105c04) at http_vhost.c:436
  436             fprintf(f, "%-22s %s (%s:%u)\n", buf, ic->server->server_hostname,
  (gdb) p ic->server
  $1 = (server_rec *) 0x0

and the configuration looks like this (each Include contains a
ServerName and optional ServerAliases):

VirtualDocumentRoot /home/www/%1/htdocs/
VirtualScriptAlias  /home/www/%1/cgi-bin/
NameVirtualHost *:80
<VirtualHost *:80>
  Include /home/www/deejai/conf/vhost.conf
<VirtualHost *:80>
  Include /home/www/apache/conf/vhost.conf
<VirtualHost *:80>
  Include /home/www/apache-dev/conf/vhost.conf
<VirtualHost *:80>
  Include /home/www/pgtm0035/conf/vhost.conf
<VirtualHost *:82>
  Include /home/www/pgtm0035/conf/vhost:81.conf
<VirtualHost *:80>
  Include /home/www/bs2000-partner/conf/vhost.conf
<VirtualHost *:80>
  Header set X-Virtual-Host
  DocumentRoot /home/www/deejai/htdocs/
 DirectoryIndex index Welcome
<VirtualHost _default_:80>
  Include /home/www/_default_/conf/vhost.conf

If I add a check for a NULL-server in the ipaddr_chain records, then
the core dump of course vanishes, but why are there ipaddr_chain records
with NULL-server entries in the first place?

For normal operation, this may lead to wrong operation (funny virtual host
behavior? core dumps?), if I am not mistaken.

<>    |       Fujitsu Siemens
       <>              |   81730  Munich,  Germany

View raw message