I am having a problem with hanging httpd processes. I have done some AV
searches as well as investigated the list archives and did not find any
conclusive answer to this problem. If I missed it, can someone point me in the
right direction? If any more information will help decode this problem, I can
reproduce the problem really easily (bot hitting our stage site causes a few
of these processes to pop up).
Thanks in advance,
- Tony
Env:
Apache 1.3.9
mod-perl 1.21
gcc version 2.8.1
perl v5.005_03
Solaris 2.7
Static Build
Output from top (osiz):
PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
2178 dbuser 1 33 0 137M 64M run 8:33 10.93% httpd
2112 dbuser 1 33 0 131M 62M run 7:52 10.19% httpd
Fresh httpd process:
3282 dbuser 1 58 0 8200K 2120K sleep 0:00 0.05% httpd
Output from gdb ... 2112 :
#0 0x118e40 in Perl_av_store ()
#1 0x1194a4 in Perl_av_push ()
#2 0xfbc74 in Perl_start_subparse ()
#3 0x44168 in empty_anon_sub ()
#4 0x455c0 in XS_Apache__Constants___AUTOLOAD ()
#5 0x120230 in Perl_pp_entersub ()
#6 0x159dd0 in Perl_runops_standard ()
#7 0xe1fb8 in perl_call_sv ()
#8 0x34564 in perl_call_handler ()
#9 0x33dd4 in perl_run_stacked_handlers ()
#10 0x32654 in perl_handler ()
#11 0x80fb8 in ap_invoke_handler ()
#12 0x9cdb0 in ap_some_auth_required ()
#13 0x9d2c8 in ap_internal_redirect ()
#14 0x9c530 in ap_die ()
#15 0x9cdd4 in ap_some_auth_required ()
#16 0x9ce30 in ap_process_request ()
#17 0x90c70 in ap_child_terminate ()
#18 0x90fc8 in ap_child_terminate ()
#19 0x914e0 in ap_child_terminate ()
#20 0x91c50 in ap_child_terminate ()
#21 0x92558 in main ()
(gdb) quit
pmap output:
/usr/proc/bin/pmap 2112
2112: /opt/apache/bin/httpd -f /opt/apache/conf/httpd.conf
00010000 1464K read/exec /opt/local/apache/bin/httpd
0018C000 56K read/write/exec /opt/local/apache/bin/httpd
0019A000 129752K read/write/exec [ heap ]
FEF80000 8K read/write/exec [ anon ]
FEF90000 24K read/exec /opt/local/lib/perl5/auto/Socket/Socket.so
FEFA4000 8K read/write/exec /opt/local/lib/perl5/auto/Socket/Socket.so
FEFB0000 8K read/write/exec [ anon ]
FEFC0000 24K read/exec /opt/local/lib/perl5/auto/IO/IO.so
FEFD4000 8K read/write/exec /opt/local/lib/perl5/auto/IO/IO.so
FEFE0000 16K read/exec /usr/lib/nss_files.so.1
FEFF2000 8K read/write/exec /usr/lib/nss_files.so.1
FF000000 504K read/exec /opt/local/lib/perl5/auto/DB_File/DB_File.so
FF08C000 16K read/write/exec /opt/local/lib/perl5/auto/DB_File/DB_File.so
FF0A0000 48K read/write/shared [ anon ]
FF0B0000 16K read/exec /opt/local/perl/auto/Time/HiRes/HiRes.so
FF0C2000 8K read/write/exec /opt/local/perl/auto/Time/HiRes/HiRes.so
FF0D0000 16K read/exec /opt/local/lib/perl5/auto/Fcntl/Fcntl.so
FF0E2000 8K read/write/exec /opt/local/lib/perl5/auto/Fcntl/Fcntl.so
FF0F0000 80K read/exec /opt/local/lib/perl5/auto/B/B.so
FF112000 16K read/write/exec /opt/local/lib/perl5/auto/B/B.so
FF120000 24K read/exec /opt/local/lib/perl5/auto/Data/Dumper/Dumper
.so
FF134000 16K read/write/exec /opt/local/lib/perl5/auto/Data/Dumper/Dumper
.so
FF140000 24K read/exec /usr/lib/libgen.so.1
FF154000 16K read/write/exec /usr/lib/libgen.so.1
FF160000 16K read/exec /usr/lib/libmp.so.2
FF172000 8K read/write/exec /usr/lib/libmp.so.2
FF180000 648K read/exec /usr/lib/libc.so.1
FF230000 40K read/write/exec /usr/lib/libc.so.1
FF240000 8K read/write/exec [ anon ]
FF250000 16K read/exec /usr/platform/sun4u/lib/libc_psr.so.1
FF260000 8K read/exec /usr/lib/libcrypt_i.so.1
FF270000 16K read/write/exec /usr/lib/libcrypt_i.so.1
FF280000 512K read/exec /usr/lib/libnsl.so.1
FF30E000 40K read/write/exec /usr/lib/libnsl.so.1
FF318000 32K read/write/exec [ anon ]
FF330000 88K read/exec /usr/lib/libm.so.1
FF354000 8K read/write/exec /usr/lib/libm.so.1
FF370000 32K read/exec /usr/lib/libsocket.so.1
FF386000 16K read/write/exec /usr/lib/libsocket.so.1
FF390000 8K read/exec /usr/lib/libdl.so.1
FF3A0000 8K read/write/exec [ anon ]
FF3B0000 120K read/exec /usr/lib/ld.so.1
FF3DC000 8K read/write/exec /usr/lib/ld.so.1
FFBE6000 40K read/write/exec [ stack ]
total 133840K
truss output:
truss -p 2112
brk(0x08807800) = 0
...