Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- APC config in php.ini
- [apc]
- extension=apc.so
- apc.enabled = 1
- apc.shm_segments = 1
- apc.shm_size = 64M
- apc.optimization = 1
- apc.num_files_hint = 0
- apc.ttl = 0
- apc.gc_ttl = 3600
- apc.cache_by_default = on
- dump for fpm
- =========================
- (gdb) next
- Single stepping until exit from function __accept_nocancel,
- which has no line number information.
- fcgi_accept_request (req=0x7fffcfa313a0) at /root/build/php-5.4.6/sapi/fpm/fpm/fastcgi.c:810
- 810 client_sa = sa;
- (gdb)
- 811 if (sa.sa.sa_family == AF_INET && req->fd >= 0 && allowed_clients) {
- (gdb)
- 810 client_sa = sa;
- (gdb)
- 811 if (sa.sa.sa_family == AF_INET && req->fd >= 0 && allowed_clients) {
- (gdb)
- 847 fpm_request_reading_headers();
- (gdb)
- 849 fds.fd = req->fd;
- (gdb)
- 850 fds.events = POLLIN;
- (gdb)
- 851 fds.revents = 0;
- (gdb)
- 849 fds.fd = req->fd;
- (gdb)
- 761 int fcgi_accept_request(fcgi_request *req)
- (gdb)
- 853 errno = 0;
- (gdb)
- 854 ret = poll(&fds, 1, 5000);
- (gdb)
- 855 } while (ret < 0 && errno == EINTR);
- (gdb)
- 856 if (ret > 0 && (fds.revents & POLLIN)) {
- (gdb)
- 889 if (fcgi_read_request(req)) {
- (gdb)
- 899 return req->fd;
- (gdb)
- 904 }
- (gdb)
- main (argc=<value optimized out>, argv=<value optimized out>) at /root/build/php-5.4.6/sapi/fpm/fpm/fpm_main.c:1831
- 1831 SG(server_context) = (void *) &request;
- (gdb)
- 1832 init_request_info(TSRMLS_C);
- (gdb)
- 1830 request_body_fd = -1;
- (gdb)
- 1831 SG(server_context) = (void *) &request;
- (gdb)
- 1832 init_request_info(TSRMLS_C);
- (gdb)
- 1836 fpm_request_info();
- (gdb)
- 1833 CG(interactive) = 0;
- (gdb)
- 1836 fpm_request_info();
- (gdb)
- 1840 if (php_request_startup(TSRMLS_C) == FAILURE) {
- (gdb)
- 1849 if (!SG(request_info).request_method) {
- (gdb)
- 1853 if (fpm_status_handle_request(TSRMLS_C)) {
- (gdb)
- 1858 if (!SG(request_info).path_translated) {
- (gdb)
- 1868 if (fpm_php_limit_extensions(SG(request_info).path_translated)) {
- (gdb)
- 1878 primary_script = estrdup(SG(request_info).path_translated);
- (gdb)
- 1881 if (php_fopen_primary_script(&file_handle TSRMLS_CC) == FAILURE) {
- (gdb)
- 1878 primary_script = estrdup(SG(request_info).path_translated);
- (gdb)
- 1881 if (php_fopen_primary_script(&file_handle TSRMLS_CC) == FAILURE) {
- (gdb)
- 1900 fpm_request_executing();
- (gdb)
- 1902 php_execute_script(&file_handle TSRMLS_CC);
- (gdb)
- 1905 if (primary_script) {
- (gdb)
- 1906 efree(primary_script);
- (gdb)
- 1909 if (request_body_fd != -1) {
- (gdb)
- 1914 if (EG(exit_status) == 255) {
- (gdb)
- 1912 request_body_fd = -2;
- (gdb)
- 1914 if (EG(exit_status) == 255) {
- (gdb)
- 1924 fpm_request_end(TSRMLS_C);
- (gdb)
- 1925 fpm_log_write(NULL TSRMLS_CC);
- (gdb)
- 1927 STR_FREE(SG(request_info).path_translated);
- (gdb)
- 1930 php_request_shutdown((void *) 0);
- (gdb)
- 1928 SG(request_info).path_translated = NULL;
- (gdb)
- 1930 php_request_shutdown((void *) 0);
- (gdb)
- Program received signal SIGSEGV, Segmentation fault.
- 0x0000000000725d3c in zval_set_isref_p (type=0, execute_data=0x7f07fa8e36a0) at /root/build/php-5.4.6/Zend/zend.h:399
- 399 return pz->is_ref__gc = 1;
- (gdb)
- Program terminated with signal SIGSEGV, Segmentation fault.
- The program no longer exists.
- (gdb)
- The program is not being run.
- #################
- dump for built-in cgi
- ==============
- Press Ctrl-C to quit.
- [Sat Aug 18 09:55:23 2012] 172.16.6.100:64073 [200]: /user/ajax_userinfo.php
- [Sat Aug 18 09:55:25 2012] 172.16.6.100:64074 [200]: /user/ajax_userinfo.php
- Program received signal SIGSEGV, Segmentation fault.
- 0x00000000007256ec in zval_set_isref_p (type=0, execute_data=0x7ffff7fae310) at /root/build/php-5.4.6/Zend/zend.h:399
- 399 return pz->is_ref__gc = 1;
- 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
- (gdb)
- (gdb) where
- #0 0x00000000007256ec in zval_set_isref_p (type=0, execute_data=0x7ffff7fae310) at /root/build/php-5.4.6/Zend/zend.h:399
- #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
- #2 0x000000000074e780 in execute (op_array=0x110b1c0) at /root/build/php-5.4.6/Zend/zend_vm_execute.h:410
- #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
- #4 0x00000000006de390 in call_user_function_ex (function_table=<value optimized out>, object_pp=<value optimized out>,
- function_name=<value optimized out>, retval_ptr_ptr=<value optimized out>, param_count=<value optimized out>, params=<value optimized out>,
- no_separation=1, symbol_table=0x0) at /root/build/php-5.4.6/Zend/zend_execute_API.c:750
- #5 0x00000000006de3e2 in call_user_function (function_table=0xe94b80, object_pp=<value optimized out>, function_name=<value optimized out>,
- 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
- #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
- #7 0x00000000005d080a in ps_write_user (mod_data=<value optimized out>, key=<value optimized out>, val=0xb3cc26 "", vallen=0)
- at /root/build/php-5.4.6/ext/session/mod_user.c:144
- #8 0x00000000005c9b1d in php_session_save_current_state () at /root/build/php-5.4.6/ext/session/session.c:492
- #9 0x00000000005cab1f in php_session_flush (type=<value optimized out>, module_number=<value optimized out>)
- at /root/build/php-5.4.6/ext/session/session.c:1453
- #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
- #11 0x00000000006ef104 in zend_deactivate_modules () at /root/build/php-5.4.6/Zend/zend_API.c:2333
- #12 0x000000000068f0b5 in php_request_shutdown (dummy=<value optimized out>) at /root/build/php-5.4.6/main/main.c:1750
- #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
- #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
- #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
- #16 0x0000000000795703 in php_cli_server_do_event_for_each_fd_callback (_params=<value optimized out>, fd=<value optimized out>,
- event=<value optimized out>) at /root/build/php-5.4.6/sapi/cli/php_cli_server.c:2282
- #17 0x0000000000795f5b in php_cli_server_poller_iter_on_active (argc=<value optimized out>, argv=<value optimized out>)
- at /root/build/php-5.4.6/sapi/cli/php_cli_server.c:793
- #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
- #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
- #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
- #21 0x000000000078e72e in main (argc=5, argv=0x7fffffffe628) at /root/build/php-5.4.6/sapi/cli/php_cli.c:1367
- (gdb)
Advertisement
Add Comment
Please, Sign In to add comment