httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@Fujitsu-Siemens.com>
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                   pgtm0035.mch.fsc.net (/opt/apache/conf/httpd.conf:1080)
  *:80                   is a NameVirtualHost
                         default server deejai.mch.fsc.net (/opt/apache/conf/httpd.conf:1061)
                         port 80 namevhost deejai.mch.fsc.net (/opt/apache/conf/httpd.conf:1061)
                         port 80 namevhost Apache.mch.fsc.net (/opt/apache/conf/httpd.conf:1066)
                         port 80 namevhost Apache-Dev.mch.fsc.net (/opt/apache/conf/httpd.conf:1071)
                         port 80 namevhost PGTM0035.mch.fsc.net (/opt/apache/conf/httpd.conf:1076)
                         port 80 namevhost BS2000-Partner.mch.fsc.net (/opt/apache/conf/httpd.conf:1085)
                         port 80 namevhost deejai.penguinpowered.com (/opt/apache/conf/httpd.conf:1090)
                         port 80 namevhost deejai.mch.fsc.net (/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
  (gdb) 

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>
<VirtualHost *:80>
  Include /home/www/apache/conf/vhost.conf
</VirtualHost>
<VirtualHost *:80>
  Include /home/www/apache-dev/conf/vhost.conf
</VirtualHost>
<VirtualHost *:80>
  Include /home/www/pgtm0035/conf/vhost.conf
</VirtualHost>
<VirtualHost *:82>
  Include /home/www/pgtm0035/conf/vhost:81.conf
</VirtualHost>
<VirtualHost *:80>
  Include /home/www/bs2000-partner/conf/vhost.conf
</VirtualHost>
<VirtualHost *:80>
  Header set X-Virtual-Host deejai.penguinpowered.com
  ServerName deejai.penguinpowered.com
  ServerAdmin Webmaster+deejai@deejai.mch.fsc.net
  DocumentRoot /home/www/deejai/htdocs/
 DirectoryIndex index Welcome
</VirtualHost>
<VirtualHost _default_:80>
  Include /home/www/_default_/conf/vhost.conf
</VirtualHost>

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.

   Martin
-- 
<Martin.Kraemer@Fujitsu-Siemens.com>    |       Fujitsu Siemens
       <martin@apache.org>              |   81730  Munich,  Germany

Mime
View raw message