Guest User

Untitled

a guest
Aug 17th, 2012
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. APC config in php.ini
  2. [apc]
  3. extension=apc.so
  4. apc.enabled = 1
  5. apc.shm_segments = 1
  6. apc.shm_size = 64M
  7. apc.optimization = 1
  8. apc.num_files_hint = 0
  9. apc.ttl = 0
  10. apc.gc_ttl = 3600
  11. apc.cache_by_default = on
  12.  
  13.  
  14.  
  15.  
  16.  
  17. dump for fpm
  18. =========================
  19. (gdb) next
  20. Single stepping until exit from function __accept_nocancel,
  21. which has no line number information.
  22.  
  23.  
  24. fcgi_accept_request (req=0x7fffcfa313a0) at /root/build/php-5.4.6/sapi/fpm/fpm/fastcgi.c:810
  25. 810 client_sa = sa;
  26. (gdb)
  27. 811 if (sa.sa.sa_family == AF_INET && req->fd >= 0 && allowed_clients) {
  28. (gdb)
  29. 810 client_sa = sa;
  30. (gdb)
  31. 811 if (sa.sa.sa_family == AF_INET && req->fd >= 0 && allowed_clients) {
  32. (gdb)
  33. 847 fpm_request_reading_headers();
  34. (gdb)
  35. 849 fds.fd = req->fd;
  36. (gdb)
  37. 850 fds.events = POLLIN;
  38. (gdb)
  39. 851 fds.revents = 0;
  40. (gdb)
  41. 849 fds.fd = req->fd;
  42. (gdb)
  43. 761 int fcgi_accept_request(fcgi_request *req)
  44. (gdb)
  45.  
  46. 853 errno = 0;
  47. (gdb)
  48. 854 ret = poll(&fds, 1, 5000);
  49. (gdb)
  50. 855 } while (ret < 0 && errno == EINTR);
  51. (gdb)
  52. 856 if (ret > 0 && (fds.revents & POLLIN)) {
  53. (gdb)
  54. 889 if (fcgi_read_request(req)) {
  55. (gdb)
  56. 899 return req->fd;
  57. (gdb)
  58. 904 }
  59. (gdb)
  60. main (argc=<value optimized out>, argv=<value optimized out>) at /root/build/php-5.4.6/sapi/fpm/fpm/fpm_main.c:1831
  61. 1831 SG(server_context) = (void *) &request;
  62. (gdb)
  63. 1832 init_request_info(TSRMLS_C);
  64. (gdb)
  65. 1830 request_body_fd = -1;
  66. (gdb)
  67. 1831 SG(server_context) = (void *) &request;
  68. (gdb)
  69. 1832 init_request_info(TSRMLS_C);
  70. (gdb)
  71.  
  72. 1836 fpm_request_info();
  73. (gdb)
  74. 1833 CG(interactive) = 0;
  75. (gdb)
  76. 1836 fpm_request_info();
  77. (gdb)
  78. 1840 if (php_request_startup(TSRMLS_C) == FAILURE) {
  79. (gdb)
  80. 1849 if (!SG(request_info).request_method) {
  81. (gdb)
  82. 1853 if (fpm_status_handle_request(TSRMLS_C)) {
  83. (gdb)
  84. 1858 if (!SG(request_info).path_translated) {
  85. (gdb)
  86. 1868 if (fpm_php_limit_extensions(SG(request_info).path_translated)) {
  87. (gdb)
  88. 1878 primary_script = estrdup(SG(request_info).path_translated);
  89. (gdb)
  90. 1881 if (php_fopen_primary_script(&file_handle TSRMLS_CC) == FAILURE) {
  91. (gdb)
  92. 1878 primary_script = estrdup(SG(request_info).path_translated);
  93. (gdb)
  94. 1881 if (php_fopen_primary_script(&file_handle TSRMLS_CC) == FAILURE) {
  95. (gdb)
  96. 1900 fpm_request_executing();
  97. (gdb)
  98. 1902 php_execute_script(&file_handle TSRMLS_CC);
  99. (gdb)
  100. 1905 if (primary_script) {
  101. (gdb)
  102. 1906 efree(primary_script);
  103. (gdb)
  104. 1909 if (request_body_fd != -1) {
  105. (gdb)
  106. 1914 if (EG(exit_status) == 255) {
  107. (gdb)
  108. 1912 request_body_fd = -2;
  109. (gdb)
  110. 1914 if (EG(exit_status) == 255) {
  111. (gdb)
  112. 1924 fpm_request_end(TSRMLS_C);
  113. (gdb)
  114. 1925 fpm_log_write(NULL TSRMLS_CC);
  115. (gdb)
  116. 1927 STR_FREE(SG(request_info).path_translated);
  117. (gdb)
  118. 1930 php_request_shutdown((void *) 0);
  119. (gdb)
  120. 1928 SG(request_info).path_translated = NULL;
  121. (gdb)
  122. 1930 php_request_shutdown((void *) 0);
  123. (gdb)
  124.  
  125. Program received signal SIGSEGV, Segmentation fault.
  126. 0x0000000000725d3c in zval_set_isref_p (type=0, execute_data=0x7f07fa8e36a0) at /root/build/php-5.4.6/Zend/zend.h:399
  127. 399 return pz->is_ref__gc = 1;
  128. (gdb)
  129.  
  130. Program terminated with signal SIGSEGV, Segmentation fault.
  131. The program no longer exists.
  132. (gdb)
  133. The program is not being run.
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140. #################
  141.  
  142. dump for built-in cgi
  143. ==============
  144.  
  145. Press Ctrl-C to quit.
  146.  
  147. [Sat Aug 18 09:55:23 2012] 172.16.6.100:64073 [200]: /user/ajax_userinfo.php
  148. [Sat Aug 18 09:55:25 2012] 172.16.6.100:64074 [200]: /user/ajax_userinfo.php
  149.  
  150. Program received signal SIGSEGV, Segmentation fault.
  151. 0x00000000007256ec in zval_set_isref_p (type=0, execute_data=0x7ffff7fae310) at /root/build/php-5.4.6/Zend/zend.h:399
  152. 399 return pz->is_ref__gc = 1;
  153. Missing separate debuginfos, use: debuginfo-install freetype-2.3.11-6.el6_2.9.x86_64 glibc-2.12-1.80.el6_3.4.x86_64 libgcc-4.4.6-4.el6.x86_64 libpng-1.2.49-1.el6_2.x86_64 libstdc++-4.4.6-4.el6.x86_64 libxml2-2.7.6-4.el6_2.4.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64 zlib-1.2.3-27.el6.x86_64
  154. (gdb)
  155. (gdb) where
  156. #0 0x00000000007256ec in zval_set_isref_p (type=0, execute_data=0x7ffff7fae310) at /root/build/php-5.4.6/Zend/zend.h:399
  157. #1 zend_fetch_var_address_helper_SPEC_CONST_VAR (type=0, execute_data=0x7ffff7fae310) at /root/build/php-5.4.6/Zend/zend_vm_execute.h:4818
  158. #2 0x000000000074e780 in execute (op_array=0x110b1c0) at /root/build/php-5.4.6/Zend/zend_vm_execute.h:410
  159. #3 0x00000000006dd664 in zend_call_function (fci=0x7fffffffcc60, fci_cache=<value optimized out>) at /root/build/php-5.4.6/Zend/zend_execute_API.c:958
  160. #4 0x00000000006de390 in call_user_function_ex (function_table=<value optimized out>, object_pp=<value optimized out>,
  161. function_name=<value optimized out>, retval_ptr_ptr=<value optimized out>, param_count=<value optimized out>, params=<value optimized out>,
  162. no_separation=1, symbol_table=0x0) at /root/build/php-5.4.6/Zend/zend_execute_API.c:750
  163. #5 0x00000000006de3e2 in call_user_function (function_table=0xe94b80, object_pp=<value optimized out>, function_name=<value optimized out>,
  164. retval_ptr=0x7ffff7fe1be8, param_count=<value optimized out>, params=<value optimized out>) at /root/build/php-5.4.6/Zend/zend_execute_API.c:723
  165. #6 0x00000000005d0565 in ps_call_handler (func=0x110b890, argc=2, argv=0x7fffffffcd50) at /root/build/php-5.4.6/ext/session/mod_user.c:53
  166. #7 0x00000000005d080a in ps_write_user (mod_data=<value optimized out>, key=<value optimized out>, val=0xb3cc26 "", vallen=0)
  167. at /root/build/php-5.4.6/ext/session/mod_user.c:144
  168. #8 0x00000000005c9b1d in php_session_save_current_state () at /root/build/php-5.4.6/ext/session/session.c:492
  169. #9 0x00000000005cab1f in php_session_flush (type=<value optimized out>, module_number=<value optimized out>)
  170. at /root/build/php-5.4.6/ext/session/session.c:1453
  171. #10 zm_deactivate_session (type=<value optimized out>, module_number=<value optimized out>) at /root/build/php-5.4.6/ext/session/session.c:2144
  172. #11 0x00000000006ef104 in zend_deactivate_modules () at /root/build/php-5.4.6/Zend/zend_API.c:2333
  173. #12 0x000000000068f0b5 in php_request_shutdown (dummy=<value optimized out>) at /root/build/php-5.4.6/main/main.c:1750
  174. #13 0x000000000079244b in php_cli_server_request_shutdown (server=0xe8ba40, client=0x1088d70) at /root/build/php-5.4.6/sapi/cli/php_cli_server.c:1939
  175. #14 0x0000000000794feb in php_cli_server_dispatch (server=0xe8ba40, client=0x1088d70) at /root/build/php-5.4.6/sapi/cli/php_cli_server.c:2017
  176. #15 php_cli_server_recv_event_read_request (server=0xe8ba40, client=0x1088d70) at /root/build/php-5.4.6/sapi/cli/php_cli_server.c:2196
  177. #16 0x0000000000795703 in php_cli_server_do_event_for_each_fd_callback (_params=<value optimized out>, fd=<value optimized out>,
  178. event=<value optimized out>) at /root/build/php-5.4.6/sapi/cli/php_cli_server.c:2282
  179. #17 0x0000000000795f5b in php_cli_server_poller_iter_on_active (argc=<value optimized out>, argv=<value optimized out>)
  180. at /root/build/php-5.4.6/sapi/cli/php_cli_server.c:793
  181. #18 php_cli_server_do_event_for_each_fd (argc=<value optimized out>, argv=<value optimized out>) at /root/build/php-5.4.6/sapi/cli/php_cli_server.c:2308
  182. #19 php_cli_server_do_event_loop (argc=<value optimized out>, argv=<value optimized out>) at /root/build/php-5.4.6/sapi/cli/php_cli_server.c:2318
  183. #20 do_cli_server (argc=<value optimized out>, argv=<value optimized out>) at /root/build/php-5.4.6/sapi/cli/php_cli_server.c:2419
  184. #21 0x000000000078e72e in main (argc=5, argv=0x7fffffffe628) at /root/build/php-5.4.6/sapi/cli/php_cli.c:1367
  185. (gdb)
RAW Paste Data