You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by erick rudiak <ru...@yahoo.com> on 1999/12/01 15:45:50 UTC

mod_jserv/5400: HUP causes file descriptor leak for mod_jserv.log

>Number:         5400
>Category:       mod_jserv
>Synopsis:       HUP causes file descriptor leak for mod_jserv.log
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jserv
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Dec  1 06:50:01 PST 1999
>Last-Modified:
>Originator:     rudeyak@yahoo.com
>Organization:
apache
>Release:        1.3.9
>Environment:
Solaris 2.6, JServ 1.0, JDK 1.2.1_03, Apache 1.3.9
>Description:
# lsof -p `cat httpd.pid`
COMMAND     PID USER   FD   TYPE     DEVICE SIZE/OFF       NODE NAME
libhttpd. 13414 root  cwd   VDIR       32,0     1024          2 /
libhttpd. 13414 root  txt   VREG       85,2    20696     274381 /apps/apache/1.3.9/libexec/libhttpd.ep
libhttpd. 13414 root  txt   VREG       32,6  1014020      11514 /usr/lib/libc.so.1
libhttpd. 13414 root  txt   VREG       85,2   634236     137136 /apps/apache/run/jserv/lib/libjserv.so.0.0.0
libhttpd. 13414 root  txt   VREG       32,6   721924      11572 /usr/lib/libnsl.so.1
libhttpd. 13414 root  txt   VREG       32,6    16936     108504 /usr/platform/sun4u/lib/libc_psr.so.1
libhttpd. 13414 root  txt   VREG       32,6    19304      11500 /usr/lib/libmp.so.2
libhttpd. 13414 root  txt   VREG       85,2   992996     274382 /apps/apache/1.3.9/libexec/libhttpd.so
libhttpd. 13414 root  txt   VREG       32,6    53656      11512 /usr/lib/libsocket.so.1
libhttpd. 13414 root  txt   VREG       32,6     4280      13663 /usr/lib/libdl.so.1
libhttpd. 13414 root  txt   VREG       32,6   166196      11470 /usr/lib/ld.so.1
libhttpd. 13414 root    0r  VCHR       13,2      0t0      39894 /devices/pseudo/mm@0:null
libhttpd. 13414 root    1w  VCHR       13,2     0t16      39894 /devices/pseudo/mm@0:null
libhttpd. 13414 root    2w  VREG       85,2    20378     183174 /apps/WWW/www-prod-80/logs/error_log
libhttpd. 13414 root    4r  DOOR      171,0      0t0 1619788376 (namefs) (FA:->0x601ed1a0)
libhttpd. 13414 root    6w  VREG       85,2     7979     184010 /apps/WWW/www-prod-80/logs/mod_jserv.log
libhttpd. 13414 root    7w  VREG       85,2     7979     184010 /apps/WWW/www-prod-80/logs/mod_jserv.log
libhttpd. 13414 root   15w  VREG       85,2    20378     183174 /apps/WWW/www-prod-80/logs/error_log
libhttpd. 13414 root   16u  inet 0x60ab66d8      0t0        TCP l98upww2a.hewitt.com:80 (LISTEN)
libhttpd. 13414 root   17w  VREG       85,2   266150     183178 /apps/WWW/www-prod-80/logs/access_log
libhttpd. 13414 root   18w  VREG       85,2        0     183179 /apps (/dev/md/dsk/d2)
# kill -HUP `cat httpd.pid`
# lsof -p `cat httpd.pid`
COMMAND     PID USER   FD   TYPE     DEVICE SIZE/OFF       NODE NAME
libhttpd. 13414 root  cwd   VDIR       32,0     1024          2 /
libhttpd. 13414 root  txt   VREG       85,2    20696     274381 /apps/apache/1.3.9/libexec/libhttpd.ep
libhttpd. 13414 root  txt   VREG       85,2   634236     137136 /apps/apache/run/jserv/lib/libjserv.so.0.0.0
libhttpd. 13414 root  txt   VREG       32,6  1014020      11514 /usr/lib/libc.so.1
libhttpd. 13414 root  txt   VREG       32,6   721924      11572 /usr/lib/libnsl.so.1
libhttpd. 13414 root  txt   VREG       32,6    16936     108504 /usr/platform/sun4u/lib/libc_psr.so.1
libhttpd. 13414 root  txt   VREG       32,6    19304      11500 /usr/lib/libmp.so.2
libhttpd. 13414 root  txt   VREG       85,2   992996     274382 /apps/apache/1.3.9/libexec/libhttpd.so
libhttpd. 13414 root  txt   VREG       32,6    53656      11512 /usr/lib/libsocket.so.1
libhttpd. 13414 root  txt   VREG       32,6     4280      13663 /usr/lib/libdl.so.1
libhttpd. 13414 root  txt   VREG       32,6   166196      11470 /usr/lib/ld.so.1
libhttpd. 13414 root    0r  VCHR       13,2      0t0      39894 /devices/pseudo/mm@0:null
libhttpd. 13414 root    1w  VCHR       13,2     0t32      39894 /devices/pseudo/mm@0:null
libhttpd. 13414 root    2w  VREG       85,2    20567     183174 /apps/WWW/www-prod-80/logs/error_log
libhttpd. 13414 root    4r  DOOR      171,0      0t0 1619788376 (namefs) (FA:->0x601ed1a0)
libhttpd. 13414 root    6w  VREG       85,2     7979     184010 /apps/WWW/www-prod-80/logs/mod_jserv.log
libhttpd. 13414 root    7w  VREG       85,2     7979     184010 /apps/WWW/www-prod-80/logs/mod_jserv.log
libhttpd. 13414 root    8w  VREG       85,2     7979     184010 /apps/WWW/www-prod-80/logs/mod_jserv.log
libhttpd. 13414 root   15w  VREG       85,2    20567     183174 /apps/WWW/www-prod-80/logs/error_log
libhttpd. 13414 root   16u  inet 0x60ab66d8      0t0        TCP l98upww2a.hewitt.com:80 (LISTEN)
libhttpd. 13414 root   17w  VREG       85,2   268427     183178 /apps/WWW/www-prod-80/logs/access_log
libhttpd. 13414 root   18w  VREG       85,2        0     183179 /apps (/dev/md/dsk/d2)
# kill -HUP `cat httpd.pid`
# lsof -p `cat httpd.pid`
COMMAND     PID USER   FD   TYPE     DEVICE SIZE/OFF       NODE NAME
libhttpd. 13414 root  cwd   VDIR       32,0     1024          2 /
libhttpd. 13414 root  txt   VREG       85,2    20696     274381 /apps/apache/1.3.9/libexec/libhttpd.ep
libhttpd. 13414 root  txt   VREG       85,2   634236     137136 /apps/apache/run/jserv/lib/libjserv.so.0.0.0
libhttpd. 13414 root  txt   VREG       32,6  1014020      11514 /usr/lib/libc.so.1
libhttpd. 13414 root  txt   VREG       32,6   721924      11572 /usr/lib/libnsl.so.1
libhttpd. 13414 root  txt   VREG       32,6    16936     108504 /usr/platform/sun4u/lib/libc_psr.so.1
libhttpd. 13414 root  txt   VREG       32,6    19304      11500 /usr/lib/libmp.so.2
libhttpd. 13414 root  txt   VREG       85,2   992996     274382 /apps/apache/1.3.9/libexec/libhttpd.so
libhttpd. 13414 root  txt   VREG       32,6    53656      11512 /usr/lib/libsocket.so.1
libhttpd. 13414 root  txt   VREG       32,6     4280      13663 /usr/lib/libdl.so.1
libhttpd. 13414 root  txt   VREG       32,6   166196      11470 /usr/lib/ld.so.1
libhttpd. 13414 root    0r  VCHR       13,2      0t0      39894 /devices/pseudo/mm@0:null
libhttpd. 13414 root    1w  VCHR       13,2     0t32      39894 /devices/pseudo/mm@0:null
libhttpd. 13414 root    2w  VREG       85,2    20756     183174 /apps/WWW/www-prod-80/logs/error_log
libhttpd. 13414 root    4r  DOOR      171,0      0t0 1619788376 (namefs) (FA:->0x601ed1a0)
libhttpd. 13414 root    6w  VREG       85,2     7979     184010 /apps/WWW/www-prod-80/logs/mod_jserv.log
libhttpd. 13414 root    7w  VREG       85,2     7979     184010 /apps/WWW/www-prod-80/logs/mod_jserv.log
libhttpd. 13414 root    8w  VREG       85,2     7979     184010 /apps/WWW/www-prod-80/logs/mod_jserv.log
libhttpd. 13414 root    9w  VREG       85,2     7979     184010 /apps/WWW/www-prod-80/logs/mod_jserv.log
libhttpd. 13414 root   15w  VREG       85,2    20756     183174 /apps/WWW/www-prod-80/logs/error_log
libhttpd. 13414 root   16u  inet 0x60ab66d8      0t0        TCP l98upww2a.hewitt.com:80 (LISTEN)
libhttpd. 13414 root   17w  VREG       85,2   268747     183178 /apps/WWW/www-prod-80/logs/access_log
libhttpd. 13414 root   18w  VREG       85,2        0     183179 /apps (/dev/md/dsk/d2)
>How-To-Repeat:
Sending repeated HUPs to an Apache running JServ and monitoring file descriptors
with lsof (or pfiles, though lsof makes it much more clear) should do it.
>Fix:

>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!     ]