[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

looping Apache with IMP



I am running some Apache machines as IMP webmail servers.  I have a problem of 
Apache processes going into an infinite loop.

I have attached the gdb function list of two different variants on the looping 
theme (every day I accumulate a few processes in each of these variants).  
The virtual size is about 140M, largely because of the shared memory of ~80M.  
There should not be any cause for memory allocation problems (the machine has 
4G of RAM of which 2G is disk cache because nothing else uses it).

Now, is it possible to convince gdb to show me the parameters to malloc() and 
realloc() even though I'm not running the debugging version of gdb?

I am hesitant to install the debugging gdb because it will involve some 
down-time for the users, and it might even make the problem disappear (which 
is not what I want - I want it fixed and the fix to be in Debian).

I'm running Debian/unstable because I need the latest horde2, imp3, and php4 
packages.  I have also customised all those packages a bit (which is why I 
haven't filed a bug report yet).

The issue here is that there is either a bug in libc6, or PHP is passing bad 
parameters to malloc() and realloc() functions which libc6 isn't handling 
properly.

Any ideas?

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page
#0  0x40136dea in mallopt () from /lib/libc.so.6
#1  0x40135fed in malloc () from /lib/libc.so.6
#2  0x4024ff35 in _emalloc () from /usr/lib/apache/1.3/libphp4.so
#3  0x4025015b in _erealloc () from /usr/lib/apache/1.3/libphp4.so
#4  0x402bbae4 in ps_srlzr_encode_php () from /usr/lib/apache/1.3/libphp4.so
#5  0x402bbf8b in ps_srlzr_decode_php () from /usr/lib/apache/1.3/libphp4.so
#6  0x402bc36f in ps_srlzr_decode_php () from /usr/lib/apache/1.3/libphp4.so
#7  0x402be8e5 in zm_activate_session () from /usr/lib/apache/1.3/libphp4.so
#8  0x402be935 in zm_deactivate_session () from /usr/lib/apache/1.3/libphp4.so
#9  0x4026aec6 in module_registry_cleanup ()
   from /usr/lib/apache/1.3/libphp4.so
#10 0x4026cba2 in zend_hash_apply () from /usr/lib/apache/1.3/libphp4.so
#11 0x40268150 in zend_deactivate_modules ()
   from /usr/lib/apache/1.3/libphp4.so
#12 0x40274b4d in php_request_shutdown () from /usr/lib/apache/1.3/libphp4.so
#13 0x40271b03 in apache_php_module_main () from /usr/lib/apache/1.3/libphp4.so
#14 0x402725ae in php_restore_umask () from /usr/lib/apache/1.3/libphp4.so
#15 0x40272615 in php_restore_umask () from /usr/lib/apache/1.3/libphp4.so
#16 0x08053b34 in ap_invoke_handler ()
#17 0x0806368c in ap_some_auth_required ()
#18 0x080636e8 in ap_process_request ()
#19 0x0805ce2b in ap_child_terminate ()
#20 0x0805d05e in ap_child_terminate ()
#21 0x0805d2e8 in ap_child_terminate ()
#22 0x0805d76a in ap_child_terminate ()
#23 0x0805dcbd in main ()
#24 0x400e29f1 in __libc_start_main () from /lib/libc.so.6
#0  0x40136dea in mallopt () from /lib/libc.so.6
#1  0x401374da in mallopt () from /lib/libc.so.6
#2  0x4013630f in realloc () from /lib/libc.so.6
#3  0x402501d9 in _erealloc () from /usr/lib/apache/1.3/libphp4.so
#4  0x40302e72 in zif_var_export () from /usr/lib/apache/1.3/libphp4.so
#5  0x40302fd2 in zif_var_export () from /usr/lib/apache/1.3/libphp4.so
#6  0x40302fd2 in zif_var_export () from /usr/lib/apache/1.3/libphp4.so
#7  0x40303132 in php_var_serialize () from /usr/lib/apache/1.3/libphp4.so
#8  0x402bbb6d in ps_srlzr_encode_php () from /usr/lib/apache/1.3/libphp4.so
#9  0x402bbf8b in ps_srlzr_decode_php () from /usr/lib/apache/1.3/libphp4.so
#10 0x402bc36f in ps_srlzr_decode_php () from /usr/lib/apache/1.3/libphp4.so
#11 0x402be8e5 in zm_activate_session () from /usr/lib/apache/1.3/libphp4.so
#12 0x402be935 in zm_deactivate_session () from /usr/lib/apache/1.3/libphp4.so
#13 0x4026aec6 in module_registry_cleanup ()
   from /usr/lib/apache/1.3/libphp4.so
#14 0x4026cba2 in zend_hash_apply () from /usr/lib/apache/1.3/libphp4.so
#15 0x40268150 in zend_deactivate_modules ()
   from /usr/lib/apache/1.3/libphp4.so
#16 0x40274b4d in php_request_shutdown () from /usr/lib/apache/1.3/libphp4.so
#17 0x40271b03 in apache_php_module_main () from /usr/lib/apache/1.3/libphp4.so
#18 0x402725ae in php_restore_umask () from /usr/lib/apache/1.3/libphp4.so
#19 0x40272615 in php_restore_umask () from /usr/lib/apache/1.3/libphp4.so
#20 0x08053b34 in ap_invoke_handler ()
#21 0x0806368c in ap_some_auth_required ()
#22 0x080636e8 in ap_process_request ()
#23 0x0805ce2b in ap_child_terminate ()
#24 0x0805d05e in ap_child_terminate ()
#25 0x0805d2e8 in ap_child_terminate ()
#26 0x0805d76a in ap_child_terminate ()
#27 0x0805dcbd in main ()
#28 0x400e29f1 in __libc_start_main () from /lib/libc.so.6

142M

Reply to: