- 论坛徽章:
- 0
|
本帖最后由 chinaglwo 于 2010-03-12 03:54 编辑
apache segmentation fault 很频繁,截取了两个core.dump,请高手帮忙看看,或者教教我应该怎么去学习分析
第一个:- (gdb) bt full
- #0 0x0131a9b2 in mmc_value_handler_single (key=0xb7f512c8 "hottags_7_35", key_len=12, value=0xbff16170, value_len=0, flags=3086503452, cas=3086503452,
- param=0xbff163a0) at /software/php-5.2.6/ext/memcache/memcache.c:1442
- No locals.
- #1 0x0131c69e in mmc_unpack_value (mmc=0x8a4e3b0, request=0xb7f51160, buffer=0xb7f51184, key=0xb7f512c8 "hottags_7_35", key_len=12, flags=0, cas=0,
- bytes=2382) at /software/php-5.2.6/ext/memcache/memcache_pool.c:437
- var_hash = {first = 0x74746f68, first_dtor = 0x5f736761}
- key_tmp = "?+\000\000\000\000\000\000TS\224\bn\000\000\000\224\027?\000\000\000\000\000p\000\000\000?\237?\000?`?`?+?\000?`?`\212?\000?`?\000\000\000\000\000\000\000\000?\237?\000?`?\031cC\001\200a?\231z?\000?`?=?_\001?a?\000\000\000\000\000\000\000\000\001\200????\b??\b??\b\201y?\000\"?3\001\021\000\000\000\0205?\b\000\200", '\0' <repeats 35 times>, "\200\000\000\210??\b\000\000\000\000\210a?:B3\001\210??\b\0205?\b\000\200\000\000\000\200\000\000????\016\000\000\000?W?\0205?\b?"...
- buffer_tmp = {value = {c = 0x0, len = 8, a = 23056628}, idx = 145005528}
- p = (const unsigned char *) 0x0
- object = Variable "object" is not available.
- (gdb) dump_bt executor_globals.current_execute_data
- [0xbff16460] set() /Data/www/application/libraries/Cache.php:138
- [0xbff16730] set() /Data/www/application/libraries/Cache.php:82
- [0xbff16aa0] set() /Data/www/application/libraries/stat_lib.php:34
- [0xbff177a0] getHotTags() /Data/www/application/controllers/new/source.php:75
- [0xbff17860] index()
- [0xbff186c0] call_user_func_array() /Data/www/CodeIgniter/system/codeigniter/CodeIgniter.php:233
- [0xbff18a50] ??? /Data/www/index.php:126
- (gdb) where
- #0 0x0131a9b2 in mmc_value_handler_single (key=0xb7f512c8 "hottags_7_35", key_len=12, value=0xbff16170, value_len=0, flags=3086503452, cas=3086503452,
- param=0xbff163a0) at /software/php-5.2.6/ext/memcache/memcache.c:1442
- #1 0x0131c69e in mmc_unpack_value (mmc=0x8a4e3b0, request=0xb7f51160, buffer=0xb7f51184, key=0xb7f512c8 "hottags_7_35", key_len=12, flags=0, cas=0,
- bytes=2382) at /software/php-5.2.6/ext/memcache/memcache_pool.c:437
- #2 0x0131ef5b in mmc_server_read_value (mmc=0x8a4e3b0, request=0xb7f51160) at /software/php-5.2.6/ext/memcache/memcache_ascii_protocol.c:151
- #3 0x0131dfaf in mmc_pool_select (pool=0xb7f4c018, timeout=1) at /software/php-5.2.6/ext/memcache/memcache_pool.c:1423
- #4 0x0131e3df in mmc_pool_run (pool=0xb7f4c018) at /software/php-5.2.6/ext/memcache/memcache_pool.c:1499
- #5 0x01318f30 in php_mmc_store (ht=Variable "ht" is not available.
- ) at /software/php-5.2.6/ext/memcache/memcache.c:483
- #6 0x01378739 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff16460) at /software/php-5.2.6/Zend/zend_vm_execute.h:200
- #7 0x01377ee5 in execute (op_array=0x89471e4) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
- #8 0x01378131 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff16730) at /software/php-5.2.6/Zend/zend_vm_execute.h:234
- #9 0x01377ee5 in execute (op_array=0x8946acc) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
- #10 0x01378131 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff16aa0) at /software/php-5.2.6/Zend/zend_vm_execute.h:234
- #11 0x01377ee5 in execute (op_array=0x8943a48) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
- #12 0x01378131 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff177a0) at /software/php-5.2.6/Zend/zend_vm_execute.h:234
- #13 0x01377ee5 in execute (op_array=0x8929228) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
- #14 0x013522b6 in zend_call_function (fci=0xbff178d0, fci_cache=0x0) at /software/php-5.2.6/Zend/zend_execute_API.c:1013
- #15 0x01353000 in call_user_function_ex (function_table=0xb7f84e1c, object_pp=0xb7f84e1c, function_name=0xb7f84e1c, retval_ptr_ptr=0xb7f84e1c,
- param_count=3086503452, params=0xb7f84e1c, no_separation=-1208463844, symbol_table=0xb7f84e1c) at /software/php-5.2.6/Zend/zend_execute_API.c:640
- #16 0x012c00fe in zif_call_user_func_array (ht=2, return_value=0x8926cb4, return_value_ptr=0x0, this_ptr=0x0, return_value_used=0)
- at /software/php-5.2.6/ext/standard/basic_functions.c:5181
- #17 0x01378739 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff186c0) at /software/php-5.2.6/Zend/zend_vm_execute.h:200
- #18 0x01377ee5 in execute (op_array=0x8918208) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
- #19 0x013848ef in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (execute_data=0xbff18a50) at /software/php-5.2.6/Zend/zend_vm_execute.h:4612
- #20 0x01377ee5 in execute (op_array=0x8917a00) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
- #21 0x0135e7c1 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /software/php-5.2.6/Zend/zend.c:1134
- #22 0x013265f5 in php_execute_script (primary_file=0xbff1ad10) at /software/php-5.2.6/main/main.c:2005
- #23 0x013da2c0 in php_handler (r=0x8a45450) at /software/php-5.2.6/sapi/apache2handler/sapi_apache2.c:629
- #24 0x0807203a in ap_run_handler (r=0x8a45450) at config.c:157
- #25 0x08072405 in ap_invoke_handler (r=0x8a45450) at config.c:372
- #26 0x0808adad in ap_process_request (r=0x8a45450) at http_request.c:258
- #27 0x08088a41 in ap_process_http_connection (c=0x8a37258) at http_core.c:184
- #28 0x08077842 in ap_run_process_connection (c=0x8a37258) at connection.c:43
- #29 0x080a64ab in child_main (child_num_arg=Variable "child_num_arg" is not available.
- ) at prefork.c:640
- #30 0x080a66e2 in make_child (s=Variable "s" is not available.
- ) at prefork.c:736
- #31 0x080a7269 in ap_mpm_run (_pconf=0x88260a8, plog=0x88661a8, s=0x882f628) at prefork.c:871
- #32 0x080624e4 in main (argc=3, argv=0xbff1b274) at main.c:730
复制代码 第二个:- (gdb) bt full
- #0 0xb7f52db4 in ?? ()
- No symbol table info available.
- #1 0x01377ee5 in execute (op_array=0x8946254) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
- execute_data = {opline = 0xb605ab34, function_state = {function_symbol_table = 0x4, function = 0x8946254, reserved = {0x1374887, 0x8945ee4,
- 0xbff16a80, 0x4}}, fbc = 0x8946984, op_array = 0x8946254, object = 0x894a900, Ts = 0xbff16960, CVs = 0xbff16940, original_in_execution = 1 '\001',
- symbol_table = 0x891911c, prev_execute_data = 0xbff17300, old_error_reporting = 0x0}
- #2 0x01378131 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff17300) at /software/php-5.2.6/Zend/zend_vm_execute.h:234
- opline = (zend_op *) 0xb601ad20
- original_return_value = (zval **) 0xbff174a4
- current_scope = (zend_class_entry *) 0x8942ea8
- current_this = (zval *) 0x89356c0
- return_value_used = 1
- should_change_scope = 1 '\001'
- #3 0x01377ee5 in execute (op_array=0x89432cc) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
- execute_data = {opline = 0xb601ad20, function_state = {function_symbol_table = 0x891911c, function = 0x8946254, reserved = {0x1374887, 0x8942ec4,
- 0xbff17330, 0xc}}, fbc = 0x8946254, op_array = 0x89432cc, object = 0x8948c70, Ts = 0xbff16b50, CVs = 0xbff16b20, original_in_execution = 1 '\001',
- symbol_table = 0x8918e60, prev_execute_data = 0xbff177a0, old_error_reporting = 0x0}
- #4 0x01378131 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff177a0) at /software/php-5.2.6/Zend/zend_vm_execute.h:234
- opline = (zend_op *) 0xb5fcd550
- original_return_value = (zval **) 0xbff1793c
- current_scope = (zend_class_entry *) 0x8929394
- current_this = (zval *) 0x89423b8
- return_value_used = 1
- should_change_scope = 1 '\001'
- #5 0x01377ee5 in execute (op_array=0x89296c0) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
- execute_data = {opline = 0xb5fcd550, function_state = {function_symbol_table = 0x8918e60, function = 0x89432cc, reserved = {0x1365ab3, 0x8, 0x4,
- 0xbff177e8}}, fbc = 0x89432cc, op_array = 0x89296c0, object = 0x89356c0, Ts = 0xbff17400, CVs = 0xbff173d0, original_in_execution = 1 '\001',
- symbol_table = 0x89280f4, prev_execute_data = 0xbff17860, old_error_reporting = 0x0}
- #6 0x013522b6 in zend_call_function (fci=0xbff178d0, fci_cache=0x0) at /software/php-5.2.6/Zend/zend_execute_API.c:1013
- function_name_lc = Variable "function_name_lc" is not available.
- (gdb) dump_bt executor_globals.current_execute_data
- [0xbff16a50] get() /Data/www/application/libraries/Cache.php:92
- [0xbff17300] get() /Data/www/application/libraries/downloadusers_lib.php:60
- [0xbff177a0] getBaseInfo() /Data/www/application/controllers/new/user.php:49
- [0xbff17860] rss()
- [0xbff186c0] call_user_func_array() /Data/www/CodeIgniter/system/codeigniter/CodeIgniter.php:233
- [0xbff18a50] ??? /Data/www/index.php:126
- (gdb) where
- #0 0xb7f52db4 in ?? ()
- #1 0x01377ee5 in execute (op_array=0x8946254) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
- #2 0x01378131 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff17300) at /software/php-5.2.6/Zend/zend_vm_execute.h:234
- #3 0x01377ee5 in execute (op_array=0x89432cc) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
- #4 0x01378131 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff177a0) at /software/php-5.2.6/Zend/zend_vm_execute.h:234
- #5 0x01377ee5 in execute (op_array=0x89296c0) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
- #6 0x013522b6 in zend_call_function (fci=0xbff178d0, fci_cache=0x0) at /software/php-5.2.6/Zend/zend_execute_API.c:1013
- #7 0x01353000 in call_user_function_ex (function_table=0x0, object_pp=0x0, function_name=0x0, retval_ptr_ptr=0x0, param_count=0, params=0x0,
- no_separation=0, symbol_table=0x0) at /software/php-5.2.6/Zend/zend_execute_API.c:640
- #8 0x012c00fe in zif_call_user_func_array (ht=2, return_value=0x892707c, return_value_ptr=0x0, this_ptr=0x0, return_value_used=0)
- at /software/php-5.2.6/ext/standard/basic_functions.c:5181
- #9 0x01378739 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff186c0) at /software/php-5.2.6/Zend/zend_vm_execute.h:200
- #10 0x01377ee5 in execute (op_array=0x89185fc) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
- #11 0x013848ef in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (execute_data=0xbff18a50) at /software/php-5.2.6/Zend/zend_vm_execute.h:4612
- #12 0x01377ee5 in execute (op_array=0x8917df4) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
- #13 0x0135e7c1 in zend_execute_scripts (type=8, retval=0xb605ab34, file_count=3) at /software/php-5.2.6/Zend/zend.c:1134
- #14 0x013265f5 in php_execute_script (primary_file=0xbff1ad10) at /software/php-5.2.6/main/main.c:2005
- #15 0x013da2c0 in php_handler (r=0x8ad6d40) at /software/php-5.2.6/sapi/apache2handler/sapi_apache2.c:629
- #16 0x0807203a in ap_run_handler (r=0x8ad6d40) at config.c:157
- #17 0x08072405 in ap_invoke_handler (r=0x8ad6d40) at config.c:372
- #18 0x0808adad in ap_process_request (r=0x8ad6d40) at http_request.c:258
- #19 0x08088a41 in ap_process_http_connection (c=0x8a37258) at http_core.c:184
- #20 0x08077842 in ap_run_process_connection (c=0x8a37258) at connection.c:43
- #21 0x080a64ab in child_main (child_num_arg=Variable "child_num_arg" is not available.
- ) at prefork.c:640
- #22 0x080a66e2 in make_child (s=Variable "s" is not available.
- ) at prefork.c:736
- #23 0x080a7269 in ap_mpm_run (_pconf=0x88260a8, plog=0x88661a8, s=0x882f628) at prefork.c:871
- #24 0x080624e4 in main (argc=3, argv=0xbff1b274) at main.c:730
复制代码 |
|