You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Richard Cepas <rc...@richard.eu.org> on 2001/12/19 22:28:12 UTC

general/9200: leaks open files

>Number:         9200
>Category:       general
>Synopsis:       leaks open files
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Dec 19 13:30:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     rch@richard.eu.org
>Release:        2.0.28
>Organization:
apache
>Environment:
FreeBSD 4.4-STABLE #2
gcc version 2.95.3 20010315 (release) [FreeBSD]
/usr/local/apache2/icons #su3# /usr/local/apache2/bin/httpd -l
Compiled in modules:
  core.c
  prefork.c
  http_core.c
  mod_so.c
/usr/local/apache2/icons #su3# /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.28
Server built:   Dec 18 2001 14:12:36
Server's Module Magic Number: 20011002:0
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_FILE_BASED_SHM
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6
 -D APR_USE_FCNTL_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

./configure  --enable-so '--enable-mods-shared=all cgid ssl proxy proxy-connect proxy-ftp proxy-http cache mem-cache file-cache'

LoadModule access_module modules/mod_access.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so

>Description:
After several requests lsof output shows quickly growing number of entries like this until it runs out of file descriptors:
httpd     14636  root 1371u  IPv4                    0t0     TCP no PCB, CANTSENDMORE, CANTRCVMORE
httpd     14636  root 1372u  IPv4                    0t0     TCP no PCB, CANTSENDMORE, CANTRCVMORE
httpd     14636  root 1373u  IPv4                    0t0     TCP no PCB, CANTSENDMORE, CANTRCVMORE
httpd     14636  root 1374u  IPv4                    0t0     TCP no PCB, CANTSENDMORE, CANTRCVMORE
httpd     14636  root 1375u  IPv4                    0t0     TCP no PCB, CANTSENDMORE, CANTRCVMORE
httpd     14636  root 1376u  IPv4                    0t0     TCP no PCB, CANTSENDMORE, CANTRCVMORE
httpd     14636  root 1377u  IPv4                    0t0     TCP no PCB, CANTSENDMORE, CANTRCVMORE
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]