|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-10-16 02:53 UTC] komanek at natur dot cuni dot cz
Description:
------------
Apache crashes a few times per week. After this happens,
Apache is still running but is servong no further requests
until restarted.
Apache is 2.2.9, PHP 5.2.6 (nearest in the dropdown above is
5.2.5, 5.2.6 is not in the list unfortunately).
Expected result:
----------------
APC should work well, i.e. without crashes. If there is a
problem, instead of crash there should be some assresrtion
or whatever to recover from that.
Actual result:
--------------
Program terminated with signal 11, Segmentation fault.
#0 0xb6c396f3 in prevent_garbage_collection
(entry=0xb4b08a18) at /tmp/pear/temp/APC/apc_cache.c:211
211 /tmp/pear/temp/APC/apc_cache.c: No such file or
directory.
in /tmp/pear/temp/APC/apc_cache.c
(gdb) backtrace
#0 0xb6c396f3 in prevent_garbage_collection
(entry=0xb4b08a18) at /tmp/pear/temp/APC/apc_cache.c:211
#1 0xb6c3a924 in apc_cache_find_slot (cache=0x86177d0, key=
{data = {file = {device = 2049, inode = 1132012}, user
= {identifier = 0x801 <Address 0x801 out of bounds>,
identifier_len = 0}, fpfile = {fullpath = 0x801 <Address
0x801 out of bounds>, fullpath_len = 0}}, mtime =
1201181595, type = 1 '\001'}, t=1224111093) at
/tmp/pear/temp/APC/apc_cache.c:537
#2 0xb6c3aaa7 in apc_cache_find (cache=0x86177d0, key=
{data = {file = {device = 2049, inode = 1132012}, user
= {identifier = 0x801 <Address 0x801 out of bounds>,
identifier_len = 0}, fpfile = {fullpath = 0x801 <Address
0x801 out of bounds>, fullpath_len = 0}}, mtime =
1201181595, type = 1 '\001'}, t=1224111093) at
/tmp/pear/temp/APC/apc_cache.c:568
#3 0xb6c3f32d in my_compile_file (h=0xbfdfc1f0, type=8) at
/tmp/pear/temp/APC/apc_main.c:343
#4 0xb7656197 in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER
(execute_data=0xbfdfd3e0) at
/scratch/install/php-5.2.6/Zend/zend_vm_execute.h:1991
#5 0xb6c4139b in apc_op_ZEND_INCLUDE_OR_EVAL
(execute_data=0xbfdfd3e0) at
/tmp/pear/temp/APC/apc_zend.c:216
#6 0xb76538e8 in execute (op_array=0xb6c54a30) at
/scratch/install/php-5.2.6/Zend/zend_vm_execute.h:92
#7 0xb7635304 in zend_execute_scripts (type=8,
retval=<value optimized out>, file_count=3) at
/scratch/install/php-5.2.6/Zend/zend.c:1134
#8 0xb75f4e30 in php_execute_script
(primary_file=0xbfdff688) at
/scratch/install/php-5.2.6/main/main.c:2005
#9 0xb76b1051 in php_handler (r=0x862c010) at
/scratch/install/php-5.2.6/sapi/apache2handler/sapi_apache2.
#10 0x0807afa7 in ap_run_handler (r=0x862c010) at
config.c:157
#11 0x0807e097 in ap_invoke_handler (r=0x862c010) at
config.c:372
#12 0x0809ce68 in ap_process_request (r=0x862c010) at
http_request.c:258
#13 0x0809a0be in ap_process_http_connection (c=0x8619f18)
at http_core.c:190
#14 0x08081f57 in ap_run_process_connection (c=0x8619f18) at
connection.c:43
#15 0x080a140d in child_main (child_num_arg=<value optimized
out>) at prefork.c:650
#16 0x080a16da in make_child (s=0x80cfca8, slot=7) at
prefork.c:746
#17 0x080a200e in ap_mpm_run (_pconf=0x80cb0a8,
plog=0x8101180, s=0x80cfca8) at prefork.c:881
#18 0x080689ff in main (argc=135041184, argv=0x8617d38) at
main.c:730
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 04:00:02 2025 UTC |
new crash dump: Program terminated with signal 11, Segmentation fault. #0 0xb6bb08d5 in apc_cache_find_slot (cache=0x860ff60, key= {data = {file = {device = 2049, inode = 13402295}, user = {identifier = 0x801 <Address 0x801 out of bounds>, identifier_len = 0}, fpfile = {fullpath = 0x801 <Address 0x801 out of bounds>, fullpath_len = 0}}, mtime = 1154696068, type = 1 '\001'}, t=1224392929) at /tmp/pear/temp/APC/apc_cache.c:525 525 /tmp/pear/temp/APC/apc_cache.c: No such file or directory. in /tmp/pear/temp/APC/apc_cache.c (gdb) backtrace #0 0xb6bb08d5 in apc_cache_find_slot (cache=0x860ff60, key= {data = {file = {device = 2049, inode = 13402295}, user = {identifier = 0x801 <Address 0x801 out of bounds>, identifier_len = 0}, fpfile = {fullpath = 0x801 <Address 0x801 out of bounds>, fullpath_len = 0}}, mtime = 1154696068, type = 1 '\001'}, t=1224392929) at /tmp/pear/temp/APC/apc_cache.c:525 #1 0xb6bb0aa7 in apc_cache_find (cache=0x860ff60, key= {data = {file = {device = 2049, inode = 13402295}, user = {identifier = 0x801 <Address 0x801 out of bounds>, identifier_len = 0}, fpfile = {fullpath = 0x801 <Address 0x801 out of bounds>, fullpath_len = 0}}, mtime = 1154696068, type = 1 '\001'}, t=1224392929) at /tmp/pear/temp/APC/apc_cache.c:568 #2 0xb6bb532d in my_compile_file (h=0xbf90d5f0, type=8) at /tmp/pear/temp/APC/apc_main.c:343 #3 0xb75cd703 in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (execute_data=0xbf90ed00) at /scratch/install/php-5.2.6/Zend/zend_vm_execute.h:4566 #4 0xb6bb739b in apc_op_ZEND_INCLUDE_OR_EVAL (execute_data=0xbf90ed00) at /tmp/pear/temp/APC/apc_zend.c:216 #5 0xb75c98e8 in execute (op_array=0xb6bd5bb0) at /scratch/install/php-5.2.6/Zend/zend_vm_execute.h:92 #6 0xb75cbf80 in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER (execute_data=0xbf910ee0) at /scratch/install/php-5.2.6/Zend/zend_vm_execute.h:2037 #7 0xb6bb739b in apc_op_ZEND_INCLUDE_OR_EVAL (execute_data=0xbf910ee0) at /tmp/pear/temp/APC/apc_zend.c:216 #8 0xb75c98e8 in execute (op_array=0xb6bcae70) at /scratch/install/php-5.2.6/Zend/zend_vm_execute.h:92 #9 0xb75ab304 in zend_execute_scripts (type=8, retval=<value optimized out>, file_count=3) at /scratch/install/php-5.2.6/Zend/zend.c:1134 #10 0xb756ae30 in php_execute_script (primary_file=0xbf913188) at /scratch/install/php-5.2.6/main/main.c:2005 #11 0xb7627051 in php_handler (r=0x86267a8) at /scratch/install/php-5.2.6/sapi/apache2handler/sapi_apache2.c:629 #12 0x0807b277 in ap_run_handler (r=0x86267a8) at config.c:157 #13 0x0807e367 in ap_invoke_handler (r=0x86267a8) at config.c:372 #14 0x0809c8a8 in ap_process_request (r=0x86267a8) at http_request.c:258 #15 0x08099afe in ap_process_http_connection (c=0x86126a8) at http_core.c:190 #16 0x08082227 in ap_run_process_connection (c=0x86126a8) at connection.c:43 #17 0x080a0e4d in child_main (child_num_arg=<value optimized out>) at prefork.c:650 #18 0x080a111a in make_child (s=0x80cfca8, slot=11) at prefork.c:746 #19 0x080a1a4e in ap_mpm_run (_pconf=0x80cb0a8, plog=0x8101180, s=0x80cfca8) at prefork.c:881 #20 0x08068cbf in main (argc=135041184, argv=0x86104c8) at main.c:740 php.ini settings: [apc] apc.enabled = 1 apc.shm_size = 100 apc.shm_segments = 4 apc.ttl = 3600 apc.user_ttl = 3600 apc.gc_ttl = 3600 apc.cache_by_default = 1 apc.file_update_protection = 2 apc.enable_cli = 0 apc.max_file_size = 4M apc.stat = 1 apc.write_lock = 1 apc.report_autofilter = 0 apc.include_once_override = 1 apc.localcache = 0 3 crashes in the previous week, so I am forced to disable APC on my site untill resolved.