httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50592] New: httpd dumps core on an IPv6 only system
Date Sat, 15 Jan 2011 18:47:14 GMT

           Summary: httpd dumps core on an IPv6 only system
           Product: Apache httpd-2
           Version: 2.2.17
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core

Apache HTTPD dumps core on a FreeBSD-8.2-STABLE system in an IPv6 only jail
when starting.

    six# /usr/local/etc/rc.d/apache22 start
    Performing sanity check on apache22 configuration:
    [Sat Jan 15 15:27:54 2011] [crit] [Sat Jan 15 15:27:54 2011] file config.c,
line 1982, assertion "rv == APR_SUCCESS" failed
    Abort trap (core dumped)
    Starting apache22.
    [Sat Jan 15 15:27:54 2011] [crit] [Sat Jan 15 15:27:54 2011] file config.c,
line 1982, assertion "rv == APR_SUCCESS" failed
    Abort trap (core dumped)
    /usr/local/etc/rc.d/apache22: WARNING: failed to start apache22

The apache version is apache-2.2.17_1 from the FreeBSD port collection using
all the default options:

six# httpd -V

    Server version: Apache/2.2.17 (FreeBSD)
    Server built: Jan 15 2011 14:48:51
    Server's Module Magic Number: 20051115:25
    Server loaded: APR 1.4.2, APR-Util 1.3.10
    Compiled using: APR 1.4.2, APR-Util 1.3.10
    Architecture: 32-bit
    Server MPM: Prefork
    threaded: no
    forked: yes (variable process count)
    Server compiled with....
    -D APACHE_MPM_DIR="server/mpm/prefork"
    -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
    -D HTTPD_ROOT="/usr/local"
    -D SUEXEC_BIN="/usr/local/bin/suexec"
    -D DEFAULT_PIDLOG="/var/run/"
    -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
    -D DEFAULT_LOCKFILE="/var/run/accept.lock"
    -D DEFAULT_ERRORLOG="logs/error_log"
    -D AP_TYPES_CONFIG_FILE="etc/apache22/mime.types"
    -D SERVER_CONFIG_FILE="etc/apache22/httpd.conf"

The httpd.conf file is pretty straightforward as well, for space reasons I only
include the differences compared to the httpd.conf from the distribution:

    six# diff -u0 httpd.conf.dist httpd.conf
    --- httpd.conf.dist 2011-01-12 02:18:09.000000000 +0100
    +++ httpd.conf 2011-01-15 14:44:31.000000000 +0100
    @@ -40 +40 @@
    -Listen 80
    +Listen [2001:980:1312:6::1]:80
    @@ -104,0 +105 @@
    +LoadModule php5_module libexec/apache22/
    @@ -139 +140 @@
    @@ -148 +149 @@
    @@ -216 +217 @@
    - DirectoryIndex index.html
    + DirectoryIndex index.html index.php
    @@ -380,0 +382,4 @@
    + # For PHP
    + AddType application/x-httpd-php .php
    + AddType application/x-httpd-php-source .phps

The hostname of the jail is resolvable (forward and reverse) via DNS and is
also in /etc/hosts.
But the hostname has only an AAAA record, but no A record in DNS.

    six# host -6 has IPv6 address 2001:980:1312:6::1
    six# host 2001:980:1312:6::1
domain name pointer

I posted this problem on the apache-users mailing list, and it was suggested to
file bug because:

"IIUC apache is trying to setup the skeleton vhost config for the base
server and asking the system for a sockaddr for IPV4 INADDR_ANY (we
haven't read the config enough to even know the base configs

I'd suggest opening a bug, I think httpd could at least ask APR/the OS
to give up an IPV6 INADDRY_ANY before asserting."

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message