Coder Social home page Coder Social logo

rryqszq4 / ngx_php Goto Github PK

View Code? Open in Web Editor NEW
317.0 25.0 34.0 1.04 MB

ngx_php - Embedded php scripting language for nginx module. All released versions of the code repository.

License: BSD 2-Clause "Simplified" License

C 89.49% Perl 3.13% Shell 0.75% C++ 1.51% Perl 6 0.12% PHP 5.00%
nginx php nginx-module ngx-php php7 module

ngx_php's Introduction

ngx_php

Build Status GitHub release license QQ group

ngx_php is an extension module of high-performance web server nginx, which implements embedded php script to process nginx location and variables.

ngx_php draws on the design of ngx_lua and is committed to providing non-blocking web services with significant performance advantages over php-cgi, mod_php, php-fpm and hhvm.

ngx_php doesn't want to replace anything, just want to provide a solution.

Milestones about the project

  • ngx_php5 - A legacy version with php5, which records some of my past code practices and is also valuable.
  • ngx_php7 - An active branch of development where you can get more fresh details.

What's different with official php

  • Global variable is unsafe in per request
  • Static variable of a class is unsafe in per request
  • Do not design singleton mode
  • The native IO function works fine, but it slows down nginx

Copyright and License

ngx_php is licensed under the BSD-2-Clause license.

ngx_php's People

Contributors

comdeng avatar rryqszq4 avatar stuartjing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ngx_php's Issues

ngx_http_php_module.c:411

ngx_http_php_module.c:411: error: expected โ€˜{โ€™ at end of input
make[1]: *** [objs/addon/src/ngx_http_php_module.o] Error 1
make[1]: Leaving directory `/home/downloads/nginx-1.9.15'
make: *** [build] Error 2

[bug] core dump, hight concurrence used of ngx_socket_tcp

==27798== Thread 44:
==27798== Invalid read of size 4
==27798== at 0x3BBCE0B741: __condvar_cleanup1 (in /lib64/libpthread-2.12.so)
==27798== by 0x47AF4F: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:160)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0x12219de8 is 312 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 4
==27798== at 0x3BBCE0B75E: __condvar_cleanup1 (in /lib64/libpthread-2.12.so)
==27798== by 0x47AF4F: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:160)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0x12219e14 is 356 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 8
==27798== at 0x3BBCE0B767: __condvar_cleanup1 (in /lib64/libpthread-2.12.so)
==27798== by 0x47AF4F: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:160)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0x12219df0 is 320 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 8
==27798== at 0x3BBCE0B76B: __condvar_cleanup1 (in /lib64/libpthread-2.12.so)
==27798== by 0x47AF4F: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:160)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0x12219df8 is 328 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 8
==27798== at 0x3BBCE0B771: __condvar_cleanup1 (in /lib64/libpthread-2.12.so)
==27798== by 0x47AF4F: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:160)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0x12219df8 is 328 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 4
==27798== at 0x3BBCE0B775: __condvar_cleanup1 (in /lib64/libpthread-2.12.so)
==27798== by 0x47AF4F: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:160)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0x12219dec is 316 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 8
==27798== at 0x3BBCE0B778: __condvar_cleanup1 (in /lib64/libpthread-2.12.so)
==27798== by 0x47AF4F: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:160)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0x12219e00 is 336 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 4
==27798== at 0x3BBCE0B77C: __condvar_cleanup1 (in /lib64/libpthread-2.12.so)
==27798== by 0x47AF4F: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:160)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0x12219e10 is 352 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 8
==27798== at 0x3BBCE0B782: __condvar_cleanup1 (in /lib64/libpthread-2.12.so)
==27798== by 0x47AF4F: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:160)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0x12219df0 is 320 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 4
==27798== at 0x3BBCE0B7C2: __condvar_cleanup1 (in /lib64/libpthread-2.12.so)
==27798== by 0x47AF4F: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:160)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0x12219de8 is 312 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 8
==27798== at 0x3BBCE0B7E6: __condvar_cleanup1 (in /lib64/libpthread-2.12.so)
==27798== by 0x47AF4F: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:160)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0x12219e08 is 344 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Thread 38:
==27798== Invalid read of size 4
==27798== at 0x3BBCE0B80F: __condvar_cleanup1 (in /lib64/libpthread-2.12.so)
==27798== by 0x47AF4F: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:160)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0xc4091a0 is 288 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 4
==27798== at 0x3BBCE10ED0: __pthread_mutex_cond_lock (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCE0B836: __condvar_cleanup1 (in /lib64/libpthread-2.12.so)
==27798== by 0x47AF4F: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:160)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0xc4091a0 is 288 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 4
==27798== at 0x3BBCE10EFC: __pthread_mutex_cond_lock (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCE0B836: __condvar_cleanup1 (in /lib64/libpthread-2.12.so)
==27798== by 0x47AF4F: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:160)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0xc409190 is 272 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid write of size 4
==27798== at 0x3BBCE10F07: __pthread_mutex_cond_lock (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCE0B836: __condvar_cleanup1 (in /lib64/libpthread-2.12.so)
==27798== by 0x47AF4F: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:160)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0xc409198 is 280 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 8
==27798== at 0x47AE66: _ngx_socket_tcp_pthread_cleanup (php_ngx_socket_tcp.c:52)
==27798== by 0x47AF12: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:158)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0xc4080a0 is 96 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 8
==27798== at 0x47AE71: _ngx_socket_tcp_pthread_cleanup (php_ngx_socket_tcp.c:52)
==27798== by 0x47AF12: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:158)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0xc408a38 is 2,552 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 4
==27798== at 0x3BBCE0A7B0: pthread_mutex_unlock (in /lib64/libpthread-2.12.so)
==27798== by 0x47AE80: _ngx_socket_tcp_pthread_cleanup (php_ngx_socket_tcp.c:54)
==27798== by 0x47AF12: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:158)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0xc4091a0 is 288 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid write of size 4
==27798== at 0x3BBCE0A7C5: pthread_mutex_unlock (in /lib64/libpthread-2.12.so)
==27798== by 0x47AE80: _ngx_socket_tcp_pthread_cleanup (php_ngx_socket_tcp.c:54)
==27798== by 0x47AF12: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:158)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0xc409198 is 280 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 4
==27798== at 0x3BBCE0A7CC: pthread_mutex_unlock (in /lib64/libpthread-2.12.so)
==27798== by 0x47AE80: _ngx_socket_tcp_pthread_cleanup (php_ngx_socket_tcp.c:54)
==27798== by 0x47AF12: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:158)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0xc40919c is 284 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 4
==27798== at 0x3BBCE0A7D6: pthread_mutex_unlock (in /lib64/libpthread-2.12.so)
==27798== by 0x47AE80: _ngx_socket_tcp_pthread_cleanup (php_ngx_socket_tcp.c:54)
==27798== by 0x47AF12: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:158)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0xc409190 is 272 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid write of size 4
==27798== at 0x3BBCE0E3D2: __lll_unlock_wake (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCE0A876: _L_unlock_657 (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCE0A7DD: pthread_mutex_unlock (in /lib64/libpthread-2.12.so)
==27798== by 0x47AE80: _ngx_socket_tcp_pthread_cleanup (php_ngx_socket_tcp.c:54)
==27798== by 0x47AF12: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:158)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== Address 0xc409190 is 272 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Thread 35:
==27798== Invalid read of size 1
==27798== at 0x47AE81: _ngx_socket_tcp_pthread_cleanup (php_ngx_socket_tcp.c:56)
==27798== by 0x47AF12: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:158)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0xc25f1f0 is 64 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid read of size 8
==27798== at 0x47AE85: _ngx_socket_tcp_pthread_cleanup (php_ngx_socket_tcp.c:57)
==27798== by 0x47AF12: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:158)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0xc25e1d0 is 96 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==
==27798== Invalid write of size 8
==27798== at 0x47AE90: _ngx_socket_tcp_pthread_cleanup (php_ngx_socket_tcp.c:57)
==27798== by 0x47AF12: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:158)
==27798== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==27798== by 0x4F7249A: execute (zend_vm_execute.h:107)
==27798== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==27798== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==27798== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==27798== by 0x470A80: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:884)
==27798== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==27798== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==27798== Address 0xc25eb68 is 2,552 bytes inside a block of size 4,096 free'd
==27798== at 0x4A06430: free (vg_replace_malloc.c:446)
==27798== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==27798== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==27798== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==27798== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==27798== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==27798== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==27798== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==27798== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==27798== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==27798== by 0x406244: main (nginx.c:404)
==27798==

[bug] core dump, main thread waiting for child thread enable , but part of ctx not use.

#0 ngx_strncasecmp (s1=0x0, s2=0x47ceca "unix:", n=5) at src/core/ngx_string.c:598
598 c1 = (ngx_uint_t) *s1++;
Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.23-13.el6_3.1.x86_64 freetype-2.3.11-15.el6_6.1.x86_64 glibc-2.12-1.132.el6.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-37.el6_6.x86_64 libcom_err-1.41.12-21.el6.x86_64 libcurl-7.19.7-40.el6_6.4.x86_64 libgcc-4.4.7-11.el6.x86_64 libidn-1.18-2.el6.x86_64 libselinux-2.0.94-5.8.el6.x86_64 libssh2-1.4.2-1.el6.x86_64 libxml2-2.7.6-21.el6_8.1.x86_64 nspr-4.10.0-1.el6.x86_64 nss-3.15.1-15.el6.x86_64 nss-softokn-freebl-3.14.3-9.el6.x86_64 nss-util-3.15.1-3.el6.x86_64 openldap-2.4.23-32.el6_4.1.x86_64 openssl-1.0.1e-30.el6.11.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt
#0 ngx_strncasecmp (s1=0x0, s2=0x47ceca "unix:", n=5) at src/core/ngx_string.c:598
#1 0x000000000040bcb2 in ngx_parse_url (pool=0xbd3af0, u=) at src/core/ngx_inet.c:531
#2 0x00000000004791c6 in ngx_http_php_socket_tcp_run (r=0xbd3b40)
at /mnt/hgfs/ngx_php/src/ngx_http_php_socket_tcp.c:56
#3 0x0000000000471eb8 in ngx_http_php_content_thread_inline_handler (r=0xbd3b40)
at /mnt/hgfs/ngx_php/src/ngx_http_php_handler.c:1106
#4 0x0000000000470622 in ngx_http_php_content_handler (r=)
at /mnt/hgfs/ngx_php/src/ngx_http_php_handler.c:236
#5 0x000000000042d51b in ngx_http_core_content_phase (r=0xbd3b40, ph=0x994918)
at src/http/ngx_http_core_module.c:1417
#6 0x0000000000427e83 in ngx_http_core_run_phases (r=0xbd3b40) at src/http/ngx_http_core_module.c:888
#7 0x0000000000427f93 in ngx_http_handler (r=) at src/http/ngx_http_core_module.c:871
#8 0x00000000004307a5 in ngx_http_process_request (r=0xbd3b40) at src/http/ngx_http_request.c:1900
#9 0x0000000000432f01 in ngx_http_process_request_headers (rev=)
at src/http/ngx_http_request.c:1331
#10 0x000000000043347a in ngx_http_process_request_line (rev=0x7fd0a1b74488) at src/http/ngx_http_request.c:1012
#11 0x0000000000433760 in ngx_http_keepalive_handler (rev=0x7fd0a1b74488) at src/http/ngx_http_request.c:3179
#12 0x000000000041c459 in ngx_event_process_posted (cycle=0x9460c0, posted=0x6ad9c0)
at src/event/ngx_event_posted.c:40
#13 0x000000000041c27b in ngx_process_events_and_timers (cycle=0x9460c0) at src/event/ngx_event.c:275
#14 0x00000000004221f7 in ngx_single_process_cycle (cycle=0x9460c0) at src/os/unix/ngx_process_cycle.c:315
#15 0x0000000000406245 in main (argc=, argv=) at src/core/nginx.c:404

can you elaborate on "threadsafe" restrictions?

In the doc you say there are limitation, but You don't say much about what this mea::

  • Global variable is unsafe in per request
    • shall we avoid using them?
    • shall it be considered as un-initialized? and reinit them each request?
  • Static variable of a class is unsafe in per request
    • shall we avoid using them?
    • shall it be considered as un-initialized? and reinit them each request?
  • Do not design singleton mode
    • very unclear why it is unsafe.
    • can you elaborate and give a faulty example?
  • The native IO function works fine, but it slows down nginx
    • can you wirte the function name explicitly?

We use PHP 5.6, it is safe to use ngx_php5 ?

Thanks

[bug] memory error in libxml2

==30205== Thread 2:
==30205== Invalid free() / delete / delete[] / realloc()
==30205== at 0x4A06430: free (vg_replace_malloc.c:446)
==30205== by 0x3BBC60160C: free_key_mem (in /lib64/libdl-2.12.so)
==30205== by 0x3BBCE07A68: start_thread (in /lib64/libpthread-2.12.so)
==30205== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==30205== Address 0x6044c90 is in the Text segment of /usr/lib64/libxml2.so.2.7.6

Is it production ready?

Great module! Really impressed with Techempower Benchamark results.
I would like to know - is it ready to use in production?
Can I plug this thing into Symfony project?
Are there speed / memory benefits over Road Runner server for PHP?

[bug] thread deadlock

==48476== Invalid read of size 8
==48476== at 0x3BBCE0B7E6: __condvar_cleanup1 (in /lib64/libpthread-2.12.so)
==48476== by 0x47A912: zim_ngx_socket_tcp_receive (php_ngx_socket_tcp.c:154)
==48476== by 0x4F9F617: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:322)
==48476== by 0x4F7249A: execute (zend_vm_execute.h:107)
==48476== by 0x4F3BCBC: zend_eval_stringl (zend_execute_API.c:1196)
==48476== by 0x4F3BE83: zend_eval_stringl_ex (zend_execute_API.c:1238)
==48476== by 0x46E671: ngx_php_ngx_run (ngx_http_php_core.c:565)
==48476== by 0x470A62: ngx_http_php_sync_inline_thread (ngx_http_php_handler.c:881)
==48476== by 0x3BBCE079D0: start_thread (in /lib64/libpthread-2.12.so)
==48476== by 0x3BBCAE8B6C: clone (in /lib64/libc-2.12.so)
==48476== Address 0xcb71a60 is 320 bytes inside a block of size 4,096 free'd
==48476== at 0x4A06430: free (vg_replace_malloc.c:446)
==48476== by 0x406FA6: ngx_destroy_pool (ngx_palloc.c:87)
==48476== by 0x42F788: ngx_http_free_request (ngx_http_request.c:3490)
==48476== by 0x42F833: ngx_http_close_request (ngx_http_request.c:3401)
==48476== by 0x42FC37: ngx_http_terminate_handler (ngx_http_request.c:2496)
==48476== by 0x42F1D7: ngx_http_run_posted_requests (ngx_http_request.c:2223)
==48476== by 0x42F260: ngx_http_request_handler (ngx_http_request.c:2189)
==48476== by 0x424846: ngx_epoll_process_events (ngx_epoll_module.c:691)
==48476== by 0x41C1C2: ngx_process_events_and_timers (ngx_event.c:248)
==48476== by 0x4221F6: ngx_single_process_cycle (ngx_process_cycle.c:315)
==48476== by 0x406244: main (nginx.c:404)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.