https://issues.apache.org/bugzilla/show_bug.cgi?id=50592
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
AssignedTo: [email protected]
ReportedBy: [email protected]
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_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_FLOCK_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr/local"
-D SUEXEC_BIN="/usr/local/bin/suexec"
-D DEFAULT_PIDLOG="/var/run/httpd.pid"
-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"
six#
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/libphp5.so
@@ -139 +140 @@
-ServerAdmin [email protected]
+ServerAdmin [email protected]
@@ -148 +149 @@
-#ServerName www.example.com:80
+ServerName six.ipv6.deze.org:80
@@ -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 six.ipv6.deze.org
six.ipv6.deze.org has IPv6 address 2001:980:1312:6::1
six# host 2001:980:1312:6::1
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.6.0.0.0.2.1.3.1.0.8.9.0.1.0.0.2.ip6.arpa
domain name pointer six.ipv6.deze.org.
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
ServerName).
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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]