Bad file descriptor: apr_socket_accept

Miroslav Lachman 000.fbsd at quip.cz
Mon Oct 19 15:12:41 UTC 2009


Hi,
I got following error in log after upgrade of Apache to version 2.2.13.

[error] (9)Bad file descriptor: apr_socket_accept: (client socket)

The error appeared after each graceful restart (reload / SIGUSR1). I can 
see it on more then one machine. Some machines are using APR from ports, 
some don't.

The full log follows:

[Mon Oct 19 16:42:30 2009] [notice] Graceful restart requested, doing 
restart
[Mon Oct 19 16:42:30 2009] [error] (9)Bad file descriptor: 
apr_socket_accept: (client socket)
[Mon Oct 19 16:42:30 2009] [warn] (22)Invalid argument: Failed to enable 
the 'httpready' Accept Filter
[Mon Oct 19 16:42:30 2009] [warn] (22)Invalid argument: Failed to enable 
the 'httpready' Accept Filter
[Mon Oct 19 16:42:30 2009] [warn] (22)Invalid argument: Failed to enable 
the 'httpready' Accept Filter
[Mon Oct 19 16:42:30 2009] [warn] (22)Invalid argument: Failed to enable 
the 'httpready' Accept Filter
[Mon Oct 19 16:42:30 2009] [warn] (22)Invalid argument: Failed to enable 
the 'httpready' Accept Filter
[Mon Oct 19 16:42:30 2009] [warn] (22)Invalid argument: Failed to enable 
the 'dataready' Accept Filter
[Mon Oct 19 16:42:30 2009] [warn] (22)Invalid argument: Failed to enable 
the 'httpready' Accept Filter
[Mon Oct 19 16:42:30 2009] [warn] (22)Invalid argument: Failed to enable 
the 'httpready' Accept Filter
[Mon Oct 19 16:42:31 2009] [notice] Digest: generating secret for digest 
authentication ...
[Mon Oct 19 16:42:31 2009] [notice] Digest: done
[Mon Oct 19 16:42:31 2009] [notice] Apache/2.2.13 (FreeBSD) 
mod_ssl/2.2.13 OpenSSL/0.9.8e configured -- resuming normal operations


The Apache is compiled with these options:

root at lite enabled/# grep WITH_ /var/db/ports/apache22/options
WITH_AUTH_BASIC=true
WITH_AUTH_DIGEST=true
WITH_AUTHN_FILE=true
WITH_AUTHN_DEFAULT=true
WITH_AUTHZ_HOST=true
WITH_AUTHZ_USER=true
WITH_AUTHZ_DBM=true
WITH_AUTHZ_DEFAULT=true
WITH_ALIAS=true
WITH_AUTOINDEX=true
WITH_DEFLATE=true
WITH_DIR=true
WITH_EXPIRES=true
WITH_HEADERS=true
WITH_INCLUDE=true
WITH_LOG_CONFIG=true
WITH_MIME=true
WITH_NEGOTIATION=true
WITH_REWRITE=true
WITH_SETENVIF=true
WITH_STATUS=true
WITH_PATCH_PROXY_CONNECT=true
WITH_SSL=true

System is FreeBSD 7.2-RELEASE i386 with GENERIC kernel.

Am I the only one with this error logged with Apache 2.2.13?

As I found on the web, this error message is reported / fixed for years 
from version to version, but I never seen it before on my machines.

Miroslav Lachman


More information about the freebsd-apache mailing list