免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4392 | 回复: 6
打印 上一主题 下一主题

apache segmentation fault ,不懂,请高手帮忙分析一下,或者教教我应该怎么去分析 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-03-12 03:52 |只看该作者 |倒序浏览
本帖最后由 chinaglwo 于 2010-03-12 03:54 编辑

apache segmentation fault 很频繁,截取了两个core.dump,请高手帮忙看看,或者教教我应该怎么去学习分析

第一个:
  1. (gdb) bt full
  2. #0  0x0131a9b2 in mmc_value_handler_single (key=0xb7f512c8 "hottags_7_35", key_len=12, value=0xbff16170, value_len=0, flags=3086503452, cas=3086503452,
  3.     param=0xbff163a0) at /software/php-5.2.6/ext/memcache/memcache.c:1442
  4. No locals.
  5. #1  0x0131c69e in mmc_unpack_value (mmc=0x8a4e3b0, request=0xb7f51160, buffer=0xb7f51184, key=0xb7f512c8 "hottags_7_35", key_len=12, flags=0, cas=0,
  6.     bytes=2382) at /software/php-5.2.6/ext/memcache/memcache_pool.c:437
  7.         var_hash = {first = 0x74746f68, first_dtor = 0x5f736761}
  8.         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?"...
  9.         buffer_tmp = {value = {c = 0x0, len = 8, a = 23056628}, idx = 145005528}
  10.         p = (const unsigned char *) 0x0
  11.         object = Variable "object" is not available.
  12. (gdb) dump_bt executor_globals.current_execute_data
  13. [0xbff16460] set() /Data/www/application/libraries/Cache.php:138
  14. [0xbff16730] set() /Data/www/application/libraries/Cache.php:82
  15. [0xbff16aa0] set() /Data/www/application/libraries/stat_lib.php:34
  16. [0xbff177a0] getHotTags() /Data/www/application/controllers/new/source.php:75
  17. [0xbff17860] index()
  18. [0xbff186c0] call_user_func_array() /Data/www/CodeIgniter/system/codeigniter/CodeIgniter.php:233
  19. [0xbff18a50] ??? /Data/www/index.php:126
  20. (gdb) where
  21. #0  0x0131a9b2 in mmc_value_handler_single (key=0xb7f512c8 "hottags_7_35", key_len=12, value=0xbff16170, value_len=0, flags=3086503452, cas=3086503452,
  22.     param=0xbff163a0) at /software/php-5.2.6/ext/memcache/memcache.c:1442
  23. #1  0x0131c69e in mmc_unpack_value (mmc=0x8a4e3b0, request=0xb7f51160, buffer=0xb7f51184, key=0xb7f512c8 "hottags_7_35", key_len=12, flags=0, cas=0,
  24.     bytes=2382) at /software/php-5.2.6/ext/memcache/memcache_pool.c:437
  25. #2  0x0131ef5b in mmc_server_read_value (mmc=0x8a4e3b0, request=0xb7f51160) at /software/php-5.2.6/ext/memcache/memcache_ascii_protocol.c:151
  26. #3  0x0131dfaf in mmc_pool_select (pool=0xb7f4c018, timeout=1) at /software/php-5.2.6/ext/memcache/memcache_pool.c:1423
  27. #4  0x0131e3df in mmc_pool_run (pool=0xb7f4c018) at /software/php-5.2.6/ext/memcache/memcache_pool.c:1499
  28. #5  0x01318f30 in php_mmc_store (ht=Variable "ht" is not available.
  29. ) at /software/php-5.2.6/ext/memcache/memcache.c:483
  30. #6  0x01378739 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff16460) at /software/php-5.2.6/Zend/zend_vm_execute.h:200
  31. #7  0x01377ee5 in execute (op_array=0x89471e4) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
  32. #8  0x01378131 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff16730) at /software/php-5.2.6/Zend/zend_vm_execute.h:234
  33. #9  0x01377ee5 in execute (op_array=0x8946acc) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
  34. #10 0x01378131 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff16aa0) at /software/php-5.2.6/Zend/zend_vm_execute.h:234
  35. #11 0x01377ee5 in execute (op_array=0x8943a48) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
  36. #12 0x01378131 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff177a0) at /software/php-5.2.6/Zend/zend_vm_execute.h:234
  37. #13 0x01377ee5 in execute (op_array=0x8929228) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
  38. #14 0x013522b6 in zend_call_function (fci=0xbff178d0, fci_cache=0x0) at /software/php-5.2.6/Zend/zend_execute_API.c:1013
  39. #15 0x01353000 in call_user_function_ex (function_table=0xb7f84e1c, object_pp=0xb7f84e1c, function_name=0xb7f84e1c, retval_ptr_ptr=0xb7f84e1c,
  40.     param_count=3086503452, params=0xb7f84e1c, no_separation=-1208463844, symbol_table=0xb7f84e1c) at /software/php-5.2.6/Zend/zend_execute_API.c:640
  41. #16 0x012c00fe in zif_call_user_func_array (ht=2, return_value=0x8926cb4, return_value_ptr=0x0, this_ptr=0x0, return_value_used=0)
  42.     at /software/php-5.2.6/ext/standard/basic_functions.c:5181
  43. #17 0x01378739 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff186c0) at /software/php-5.2.6/Zend/zend_vm_execute.h:200
  44. #18 0x01377ee5 in execute (op_array=0x8918208) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
  45. #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
  46. #20 0x01377ee5 in execute (op_array=0x8917a00) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
  47. #21 0x0135e7c1 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /software/php-5.2.6/Zend/zend.c:1134
  48. #22 0x013265f5 in php_execute_script (primary_file=0xbff1ad10) at /software/php-5.2.6/main/main.c:2005
  49. #23 0x013da2c0 in php_handler (r=0x8a45450) at /software/php-5.2.6/sapi/apache2handler/sapi_apache2.c:629
  50. #24 0x0807203a in ap_run_handler (r=0x8a45450) at config.c:157
  51. #25 0x08072405 in ap_invoke_handler (r=0x8a45450) at config.c:372
  52. #26 0x0808adad in ap_process_request (r=0x8a45450) at http_request.c:258
  53. #27 0x08088a41 in ap_process_http_connection (c=0x8a37258) at http_core.c:184
  54. #28 0x08077842 in ap_run_process_connection (c=0x8a37258) at connection.c:43
  55. #29 0x080a64ab in child_main (child_num_arg=Variable "child_num_arg" is not available.
  56. ) at prefork.c:640
  57. #30 0x080a66e2 in make_child (s=Variable "s" is not available.
  58. ) at prefork.c:736
  59. #31 0x080a7269 in ap_mpm_run (_pconf=0x88260a8, plog=0x88661a8, s=0x882f628) at prefork.c:871
  60. #32 0x080624e4 in main (argc=3, argv=0xbff1b274) at main.c:730
复制代码
第二个:
  1. (gdb) bt full
  2. #0  0xb7f52db4 in ?? ()
  3. No symbol table info available.
  4. #1  0x01377ee5 in execute (op_array=0x8946254) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
  5.         execute_data = {opline = 0xb605ab34, function_state = {function_symbol_table = 0x4, function = 0x8946254, reserved = {0x1374887, 0x8945ee4,
  6.       0xbff16a80, 0x4}}, fbc = 0x8946984, op_array = 0x8946254, object = 0x894a900, Ts = 0xbff16960, CVs = 0xbff16940, original_in_execution = 1 '\001',
  7.   symbol_table = 0x891911c, prev_execute_data = 0xbff17300, old_error_reporting = 0x0}
  8. #2  0x01378131 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff17300) at /software/php-5.2.6/Zend/zend_vm_execute.h:234
  9.         opline = (zend_op *) 0xb601ad20
  10.         original_return_value = (zval **) 0xbff174a4
  11.         current_scope = (zend_class_entry *) 0x8942ea8
  12.         current_this = (zval *) 0x89356c0
  13.         return_value_used = 1
  14.         should_change_scope = 1 '\001'
  15. #3  0x01377ee5 in execute (op_array=0x89432cc) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
  16.         execute_data = {opline = 0xb601ad20, function_state = {function_symbol_table = 0x891911c, function = 0x8946254, reserved = {0x1374887, 0x8942ec4,
  17.       0xbff17330, 0xc}}, fbc = 0x8946254, op_array = 0x89432cc, object = 0x8948c70, Ts = 0xbff16b50, CVs = 0xbff16b20, original_in_execution = 1 '\001',
  18.   symbol_table = 0x8918e60, prev_execute_data = 0xbff177a0, old_error_reporting = 0x0}
  19. #4  0x01378131 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff177a0) at /software/php-5.2.6/Zend/zend_vm_execute.h:234
  20.         opline = (zend_op *) 0xb5fcd550
  21.         original_return_value = (zval **) 0xbff1793c
  22.         current_scope = (zend_class_entry *) 0x8929394
  23.         current_this = (zval *) 0x89423b8
  24.         return_value_used = 1
  25.         should_change_scope = 1 '\001'
  26. #5  0x01377ee5 in execute (op_array=0x89296c0) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
  27.         execute_data = {opline = 0xb5fcd550, function_state = {function_symbol_table = 0x8918e60, function = 0x89432cc, reserved = {0x1365ab3, 0x8, 0x4,
  28.       0xbff177e8}}, fbc = 0x89432cc, op_array = 0x89296c0, object = 0x89356c0, Ts = 0xbff17400, CVs = 0xbff173d0, original_in_execution = 1 '\001',
  29.   symbol_table = 0x89280f4, prev_execute_data = 0xbff17860, old_error_reporting = 0x0}
  30. #6  0x013522b6 in zend_call_function (fci=0xbff178d0, fci_cache=0x0) at /software/php-5.2.6/Zend/zend_execute_API.c:1013
  31.         function_name_lc = Variable "function_name_lc" is not available.
  32. (gdb) dump_bt executor_globals.current_execute_data
  33. [0xbff16a50] get() /Data/www/application/libraries/Cache.php:92
  34. [0xbff17300] get() /Data/www/application/libraries/downloadusers_lib.php:60
  35. [0xbff177a0] getBaseInfo() /Data/www/application/controllers/new/user.php:49
  36. [0xbff17860] rss()
  37. [0xbff186c0] call_user_func_array() /Data/www/CodeIgniter/system/codeigniter/CodeIgniter.php:233
  38. [0xbff18a50] ??? /Data/www/index.php:126
  39. (gdb) where
  40. #0  0xb7f52db4 in ?? ()
  41. #1  0x01377ee5 in execute (op_array=0x8946254) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
  42. #2  0x01378131 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff17300) at /software/php-5.2.6/Zend/zend_vm_execute.h:234
  43. #3  0x01377ee5 in execute (op_array=0x89432cc) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
  44. #4  0x01378131 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff177a0) at /software/php-5.2.6/Zend/zend_vm_execute.h:234
  45. #5  0x01377ee5 in execute (op_array=0x89296c0) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
  46. #6  0x013522b6 in zend_call_function (fci=0xbff178d0, fci_cache=0x0) at /software/php-5.2.6/Zend/zend_execute_API.c:1013
  47. #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,
  48.     no_separation=0, symbol_table=0x0) at /software/php-5.2.6/Zend/zend_execute_API.c:640
  49. #8  0x012c00fe in zif_call_user_func_array (ht=2, return_value=0x892707c, return_value_ptr=0x0, this_ptr=0x0, return_value_used=0)
  50.     at /software/php-5.2.6/ext/standard/basic_functions.c:5181
  51. #9  0x01378739 in zend_do_fcall_common_helper_SPEC (execute_data=0xbff186c0) at /software/php-5.2.6/Zend/zend_vm_execute.h:200
  52. #10 0x01377ee5 in execute (op_array=0x89185fc) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
  53. #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
  54. #12 0x01377ee5 in execute (op_array=0x8917df4) at /software/php-5.2.6/Zend/zend_vm_execute.h:92
  55. #13 0x0135e7c1 in zend_execute_scripts (type=8, retval=0xb605ab34, file_count=3) at /software/php-5.2.6/Zend/zend.c:1134
  56. #14 0x013265f5 in php_execute_script (primary_file=0xbff1ad10) at /software/php-5.2.6/main/main.c:2005
  57. #15 0x013da2c0 in php_handler (r=0x8ad6d40) at /software/php-5.2.6/sapi/apache2handler/sapi_apache2.c:629
  58. #16 0x0807203a in ap_run_handler (r=0x8ad6d40) at config.c:157
  59. #17 0x08072405 in ap_invoke_handler (r=0x8ad6d40) at config.c:372
  60. #18 0x0808adad in ap_process_request (r=0x8ad6d40) at http_request.c:258
  61. #19 0x08088a41 in ap_process_http_connection (c=0x8a37258) at http_core.c:184
  62. #20 0x08077842 in ap_run_process_connection (c=0x8a37258) at connection.c:43
  63. #21 0x080a64ab in child_main (child_num_arg=Variable "child_num_arg" is not available.
  64. ) at prefork.c:640
  65. #22 0x080a66e2 in make_child (s=Variable "s" is not available.
  66. ) at prefork.c:736
  67. #23 0x080a7269 in ap_mpm_run (_pconf=0x88260a8, plog=0x88661a8, s=0x882f628) at prefork.c:871
  68. #24 0x080624e4 in main (argc=3, argv=0xbff1b274) at main.c:730
复制代码

论坛徽章:
0
2 [报告]
发表于 2010-03-12 07:55 |只看该作者
八成是模块的问题,这八成里又有八成是PHP的问题,具体情况具体分析

论坛徽章:
0
3 [报告]
发表于 2010-03-12 08:54 |只看该作者
我的apache+php 也有这个问题。
但我 core dump 出来的为啥就没有这些信息啊。 编译 apache 的时候有 -g 的参数啊。

论坛徽章:
0
4 [报告]
发表于 2010-03-12 09:13 |只看该作者
有经验就是有经验,一下就能大概知道是哪里的问题

论坛徽章:
0
5 [报告]
发表于 2010-03-13 20:50 |只看该作者
不晓得

论坛徽章:
0
6 [报告]
发表于 2010-03-14 11:47 |只看该作者
首先检查一下 自己的配置文件 很可能是配置文件的问题

论坛徽章:
0
7 [报告]
发表于 2010-03-17 18:45 |只看该作者
异常奇怪,自从发帖后,就没这个错误了(之前这个错误可是持续好几个月了),检查了服务器上的配置和程序,都没有被更新过。。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP