Skip to content

Instantly share code, notes, and snippets.

@zhuizhuhaomeng
Created January 5, 2022 15:25
Show Gist options
  • Save zhuizhuhaomeng/45b4fb153bfb93801125dc852ceeffd3 to your computer and use it in GitHub Desktop.
Save zhuizhuhaomeng/45b4fb153bfb93801125dc852ceeffd3 to your computer and use it in GitHub Desktop.
/home/ljl/code/orinc/coro-nginx-module/work/nginx/sbin/nginx
t/02-hiredis.t TEST 1: basic.
t/02-hiredis.t TEST 1: basic. - Can't connect to 127.0.0.1:1984: Connection refused
Retry connecting after 0.675 sec
t/02-hiredis.t TEST 1: basic. - Can't connect to 127.0.0.1:1984: Connection refused
Retry connecting after 0.825 sec
==6991== Invalid read of size 8
==6991== at 0x4ACF89: ngx_http_coro_ffi_redis_command (ngx_http_coro_hiredis_wrapper.c:303)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4D5597: ngx_http_lua_co_ctx_resume (ngx_http_lua_api.c:268)
==6991== by 0x4C66DC: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:100)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x4D59E8: ngx_http_lua_co_ctx_resume_helper (ngx_http_lua_api.c:326)
==6991== by 0x4ABCB2: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:146)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Address 0x6812bf0 is 1,728 bytes inside a block of size 34,808 free'd
==6991== at 0x4C3610C: free (vg_replace_malloc.c:538)
==6991== by 0x4ABAC1: ngx_http_coro_coroutine_destroy (ngx_http_coro_coroutine.c:70)
==6991== by 0x4ABC8F: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:142)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Block was alloc'd at
==6991== at 0x4C34F0B: malloc (vg_replace_malloc.c:307)
==6991== by 0x44254A: ngx_alloc (ngx_alloc.c:22)
==6991== by 0x4ABA31: ngx_http_coro_coroutine_create (ngx_http_coro_coroutine.c:31)
==6991== by 0x4ACDF1: ngx_http_coro_ffi_redis_connect (ngx_http_coro_hiredis_wrapper.c:223)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4C64DE: ngx_http_lua_access_by_chunk (ngx_http_lua_accessby.c:337)
==6991== by 0x4C6A62: ngx_http_lua_access_handler_inline (ngx_http_lua_accessby.c:185)
==6991== by 0x4C6976: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:158)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x457D37: ngx_http_handler (ngx_http_core_module.c:868)
==6991== by 0x4638D7: ngx_http_process_request (ngx_http_request.c:2120)
==6991== by 0x463F04: ngx_http_process_request_headers (ngx_http_request.c:1498)
==6991== by 0x4642D1: ngx_http_process_request_line (ngx_http_request.c:1165)
==6991== by 0x464481: ngx_http_wait_request_handler (ngx_http_request.c:503)
==6991== by 0x449167: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_coro_ffi_redis_command
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_co_ctx_resume
fun:ngx_http_lua_access_handler
fun:ngx_http_core_access_phase
fun:ngx_http_core_run_phases
fun:ngx_http_lua_co_ctx_resume_helper
fun:ngx_http_coro_coroutine_resume
fun:ngx_http_coro_connect_done
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
==6991== Invalid write of size 8
==6991== at 0x4AB92F: ngx_http_coro_coroutine_init (ngx_http_coro_coroutine.c:49)
==6991== by 0x4ACF9F: ngx_http_coro_ffi_redis_command (ngx_http_coro_hiredis_wrapper.c:303)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4D5597: ngx_http_lua_co_ctx_resume (ngx_http_lua_api.c:268)
==6991== by 0x4C66DC: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:100)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x4D59E8: ngx_http_lua_co_ctx_resume_helper (ngx_http_lua_api.c:326)
==6991== by 0x4ABCB2: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:146)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Address 0x6812c20 is 1,776 bytes inside a block of size 34,808 free'd
==6991== at 0x4C3610C: free (vg_replace_malloc.c:538)
==6991== by 0x4ABAC1: ngx_http_coro_coroutine_destroy (ngx_http_coro_coroutine.c:70)
==6991== by 0x4ABC8F: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:142)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Block was alloc'd at
==6991== at 0x4C34F0B: malloc (vg_replace_malloc.c:307)
==6991== by 0x44254A: ngx_alloc (ngx_alloc.c:22)
==6991== by 0x4ABA31: ngx_http_coro_coroutine_create (ngx_http_coro_coroutine.c:31)
==6991== by 0x4ACDF1: ngx_http_coro_ffi_redis_connect (ngx_http_coro_hiredis_wrapper.c:223)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4C64DE: ngx_http_lua_access_by_chunk (ngx_http_lua_accessby.c:337)
==6991== by 0x4C6A62: ngx_http_lua_access_handler_inline (ngx_http_lua_accessby.c:185)
==6991== by 0x4C6976: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:158)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x457D37: ngx_http_handler (ngx_http_core_module.c:868)
==6991== by 0x4638D7: ngx_http_process_request (ngx_http_request.c:2120)
==6991== by 0x463F04: ngx_http_process_request_headers (ngx_http_request.c:1498)
==6991== by 0x4642D1: ngx_http_process_request_line (ngx_http_request.c:1165)
==6991== by 0x464481: ngx_http_wait_request_handler (ngx_http_request.c:503)
==6991== by 0x449167: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_coro_coroutine_init
fun:ngx_http_coro_ffi_redis_command
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_co_ctx_resume
fun:ngx_http_lua_access_handler
fun:ngx_http_core_access_phase
fun:ngx_http_core_run_phases
fun:ngx_http_lua_co_ctx_resume_helper
fun:ngx_http_coro_coroutine_resume
fun:ngx_http_coro_connect_done
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
==6991== Invalid write of size 8
==6991== at 0x4AB958: ngx_http_coro_coroutine_init (ngx_http_coro_coroutine.c:49)
==6991== by 0x4ACF9F: ngx_http_coro_ffi_redis_command (ngx_http_coro_hiredis_wrapper.c:303)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4D5597: ngx_http_lua_co_ctx_resume (ngx_http_lua_api.c:268)
==6991== by 0x4C66DC: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:100)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x4D59E8: ngx_http_lua_co_ctx_resume_helper (ngx_http_lua_api.c:326)
==6991== by 0x4ABCB2: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:146)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Address 0x6812440 is 0 bytes after a block of size 16 alloc'd
==6991== at 0x4C34F0B: malloc (vg_replace_malloc.c:307)
==6991== by 0x44254A: ngx_alloc (ngx_alloc.c:22)
==6991== by 0x41EDC8: ngx_malloc (ngx_palloc.c:137)
==6991== by 0x41EFF2: ngx_palloc (ngx_palloc.c:120)
==6991== by 0x4ACE96: ngx_http_coro_ffi_redis_connect (ngx_http_coro_hiredis_wrapper.c:208)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4C64DE: ngx_http_lua_access_by_chunk (ngx_http_lua_accessby.c:337)
==6991== by 0x4C6A62: ngx_http_lua_access_handler_inline (ngx_http_lua_accessby.c:185)
==6991== by 0x4C6976: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:158)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x457D37: ngx_http_handler (ngx_http_core_module.c:868)
==6991== by 0x4638D7: ngx_http_process_request (ngx_http_request.c:2120)
==6991== by 0x463F04: ngx_http_process_request_headers (ngx_http_request.c:1498)
==6991== by 0x4642D1: ngx_http_process_request_line (ngx_http_request.c:1165)
==6991== by 0x464481: ngx_http_wait_request_handler (ngx_http_request.c:503)
==6991== by 0x449167: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_coro_coroutine_init
fun:ngx_http_coro_ffi_redis_command
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_co_ctx_resume
fun:ngx_http_lua_access_handler
fun:ngx_http_core_access_phase
fun:ngx_http_core_run_phases
fun:ngx_http_lua_co_ctx_resume_helper
fun:ngx_http_coro_coroutine_resume
fun:ngx_http_coro_connect_done
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
==6991== Invalid write of size 4
==6991== at 0x4AB95B: ngx_http_coro_coroutine_init (ngx_http_coro_coroutine.c:51)
==6991== by 0x4ACF9F: ngx_http_coro_ffi_redis_command (ngx_http_coro_hiredis_wrapper.c:303)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4D5597: ngx_http_lua_co_ctx_resume (ngx_http_lua_api.c:268)
==6991== by 0x4C66DC: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:100)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x4D59E8: ngx_http_lua_co_ctx_resume_helper (ngx_http_lua_api.c:326)
==6991== by 0x4ABCB2: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:146)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Address 0x6812bc0 is 1,680 bytes inside a block of size 34,808 free'd
==6991== at 0x4C3610C: free (vg_replace_malloc.c:538)
==6991== by 0x4ABAC1: ngx_http_coro_coroutine_destroy (ngx_http_coro_coroutine.c:70)
==6991== by 0x4ABC8F: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:142)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Block was alloc'd at
==6991== at 0x4C34F0B: malloc (vg_replace_malloc.c:307)
==6991== by 0x44254A: ngx_alloc (ngx_alloc.c:22)
==6991== by 0x4ABA31: ngx_http_coro_coroutine_create (ngx_http_coro_coroutine.c:31)
==6991== by 0x4ACDF1: ngx_http_coro_ffi_redis_connect (ngx_http_coro_hiredis_wrapper.c:223)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4C64DE: ngx_http_lua_access_by_chunk (ngx_http_lua_accessby.c:337)
==6991== by 0x4C6A62: ngx_http_lua_access_handler_inline (ngx_http_lua_accessby.c:185)
==6991== by 0x4C6976: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:158)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x457D37: ngx_http_handler (ngx_http_core_module.c:868)
==6991== by 0x4638D7: ngx_http_process_request (ngx_http_request.c:2120)
==6991== by 0x463F04: ngx_http_process_request_headers (ngx_http_request.c:1498)
==6991== by 0x4642D1: ngx_http_process_request_line (ngx_http_request.c:1165)
==6991== by 0x464481: ngx_http_wait_request_handler (ngx_http_request.c:503)
==6991== by 0x449167: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_http_coro_coroutine_init
fun:ngx_http_coro_ffi_redis_command
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_co_ctx_resume
fun:ngx_http_lua_access_handler
fun:ngx_http_core_access_phase
fun:ngx_http_core_run_phases
fun:ngx_http_lua_co_ctx_resume_helper
fun:ngx_http_coro_coroutine_resume
fun:ngx_http_coro_connect_done
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
==6991== Invalid write of size 8
==6991== at 0x4AB966: ngx_http_coro_coroutine_init (ngx_http_coro_coroutine.c:53)
==6991== by 0x4ACF9F: ngx_http_coro_ffi_redis_command (ngx_http_coro_hiredis_wrapper.c:303)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4D5597: ngx_http_lua_co_ctx_resume (ngx_http_lua_api.c:268)
==6991== by 0x4C66DC: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:100)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x4D59E8: ngx_http_lua_co_ctx_resume_helper (ngx_http_lua_api.c:326)
==6991== by 0x4ABCB2: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:146)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Address 0x6812bc8 is 1,688 bytes inside a block of size 34,808 free'd
==6991== at 0x4C3610C: free (vg_replace_malloc.c:538)
==6991== by 0x4ABAC1: ngx_http_coro_coroutine_destroy (ngx_http_coro_coroutine.c:70)
==6991== by 0x4ABC8F: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:142)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Block was alloc'd at
==6991== at 0x4C34F0B: malloc (vg_replace_malloc.c:307)
==6991== by 0x44254A: ngx_alloc (ngx_alloc.c:22)
==6991== by 0x4ABA31: ngx_http_coro_coroutine_create (ngx_http_coro_coroutine.c:31)
==6991== by 0x4ACDF1: ngx_http_coro_ffi_redis_connect (ngx_http_coro_hiredis_wrapper.c:223)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4C64DE: ngx_http_lua_access_by_chunk (ngx_http_lua_accessby.c:337)
==6991== by 0x4C6A62: ngx_http_lua_access_handler_inline (ngx_http_lua_accessby.c:185)
==6991== by 0x4C6976: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:158)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x457D37: ngx_http_handler (ngx_http_core_module.c:868)
==6991== by 0x4638D7: ngx_http_process_request (ngx_http_request.c:2120)
==6991== by 0x463F04: ngx_http_process_request_headers (ngx_http_request.c:1498)
==6991== by 0x4642D1: ngx_http_process_request_line (ngx_http_request.c:1165)
==6991== by 0x464481: ngx_http_wait_request_handler (ngx_http_request.c:503)
==6991== by 0x449167: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_coro_coroutine_init
fun:ngx_http_coro_ffi_redis_command
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_co_ctx_resume
fun:ngx_http_lua_access_handler
fun:ngx_http_core_access_phase
fun:ngx_http_core_run_phases
fun:ngx_http_lua_co_ctx_resume_helper
fun:ngx_http_coro_coroutine_resume
fun:ngx_http_coro_connect_done
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
==6991== Invalid write of size 8
==6991== at 0x4AB96D: ngx_http_coro_coroutine_init (ngx_http_coro_coroutine.c:54)
==6991== by 0x4ACF9F: ngx_http_coro_ffi_redis_command (ngx_http_coro_hiredis_wrapper.c:303)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4D5597: ngx_http_lua_co_ctx_resume (ngx_http_lua_api.c:268)
==6991== by 0x4C66DC: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:100)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x4D59E8: ngx_http_lua_co_ctx_resume_helper (ngx_http_lua_api.c:326)
==6991== by 0x4ABCB2: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:146)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Address 0x6812bd0 is 1,696 bytes inside a block of size 34,808 free'd
==6991== at 0x4C3610C: free (vg_replace_malloc.c:538)
==6991== by 0x4ABAC1: ngx_http_coro_coroutine_destroy (ngx_http_coro_coroutine.c:70)
==6991== by 0x4ABC8F: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:142)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Block was alloc'd at
==6991== at 0x4C34F0B: malloc (vg_replace_malloc.c:307)
==6991== by 0x44254A: ngx_alloc (ngx_alloc.c:22)
==6991== by 0x4ABA31: ngx_http_coro_coroutine_create (ngx_http_coro_coroutine.c:31)
==6991== by 0x4ACDF1: ngx_http_coro_ffi_redis_connect (ngx_http_coro_hiredis_wrapper.c:223)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4C64DE: ngx_http_lua_access_by_chunk (ngx_http_lua_accessby.c:337)
==6991== by 0x4C6A62: ngx_http_lua_access_handler_inline (ngx_http_lua_accessby.c:185)
==6991== by 0x4C6976: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:158)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x457D37: ngx_http_handler (ngx_http_core_module.c:868)
==6991== by 0x4638D7: ngx_http_process_request (ngx_http_request.c:2120)
==6991== by 0x463F04: ngx_http_process_request_headers (ngx_http_request.c:1498)
==6991== by 0x4642D1: ngx_http_process_request_line (ngx_http_request.c:1165)
==6991== by 0x464481: ngx_http_wait_request_handler (ngx_http_request.c:503)
==6991== by 0x449167: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_coro_coroutine_init
fun:ngx_http_coro_ffi_redis_command
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_co_ctx_resume
fun:ngx_http_lua_access_handler
fun:ngx_http_core_access_phase
fun:ngx_http_core_run_phases
fun:ngx_http_lua_co_ctx_resume_helper
fun:ngx_http_coro_coroutine_resume
fun:ngx_http_coro_connect_done
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
==6991== Invalid write of size 8
==6991== at 0x4AB974: ngx_http_coro_coroutine_init (ngx_http_coro_coroutine.c:56)
==6991== by 0x4ACF9F: ngx_http_coro_ffi_redis_command (ngx_http_coro_hiredis_wrapper.c:303)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4D5597: ngx_http_lua_co_ctx_resume (ngx_http_lua_api.c:268)
==6991== by 0x4C66DC: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:100)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x4D59E8: ngx_http_lua_co_ctx_resume_helper (ngx_http_lua_api.c:326)
==6991== by 0x4ABCB2: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:146)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Address 0x6812be8 is 1,720 bytes inside a block of size 34,808 free'd
==6991== at 0x4C3610C: free (vg_replace_malloc.c:538)
==6991== by 0x4ABAC1: ngx_http_coro_coroutine_destroy (ngx_http_coro_coroutine.c:70)
==6991== by 0x4ABC8F: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:142)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Block was alloc'd at
==6991== at 0x4C34F0B: malloc (vg_replace_malloc.c:307)
==6991== by 0x44254A: ngx_alloc (ngx_alloc.c:22)
==6991== by 0x4ABA31: ngx_http_coro_coroutine_create (ngx_http_coro_coroutine.c:31)
==6991== by 0x4ACDF1: ngx_http_coro_ffi_redis_connect (ngx_http_coro_hiredis_wrapper.c:223)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4C64DE: ngx_http_lua_access_by_chunk (ngx_http_lua_accessby.c:337)
==6991== by 0x4C6A62: ngx_http_lua_access_handler_inline (ngx_http_lua_accessby.c:185)
==6991== by 0x4C6976: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:158)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x457D37: ngx_http_handler (ngx_http_core_module.c:868)
==6991== by 0x4638D7: ngx_http_process_request (ngx_http_request.c:2120)
==6991== by 0x463F04: ngx_http_process_request_headers (ngx_http_request.c:1498)
==6991== by 0x4642D1: ngx_http_process_request_line (ngx_http_request.c:1165)
==6991== by 0x464481: ngx_http_wait_request_handler (ngx_http_request.c:503)
==6991== by 0x449167: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_coro_coroutine_init
fun:ngx_http_coro_ffi_redis_command
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_co_ctx_resume
fun:ngx_http_lua_access_handler
fun:ngx_http_core_access_phase
fun:ngx_http_core_run_phases
fun:ngx_http_lua_co_ctx_resume_helper
fun:ngx_http_coro_coroutine_resume
fun:ngx_http_coro_connect_done
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
==6991== Invalid write of size 8
==6991== at 0x4AB97B: ngx_http_coro_coroutine_init (ngx_http_coro_coroutine.c:57)
==6991== by 0x4ACF9F: ngx_http_coro_ffi_redis_command (ngx_http_coro_hiredis_wrapper.c:303)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4D5597: ngx_http_lua_co_ctx_resume (ngx_http_lua_api.c:268)
==6991== by 0x4C66DC: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:100)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x4D59E8: ngx_http_lua_co_ctx_resume_helper (ngx_http_lua_api.c:326)
==6991== by 0x4ABCB2: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:146)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Address 0x6812bf0 is 1,728 bytes inside a block of size 34,808 free'd
==6991== at 0x4C3610C: free (vg_replace_malloc.c:538)
==6991== by 0x4ABAC1: ngx_http_coro_coroutine_destroy (ngx_http_coro_coroutine.c:70)
==6991== by 0x4ABC8F: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:142)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Block was alloc'd at
==6991== at 0x4C34F0B: malloc (vg_replace_malloc.c:307)
==6991== by 0x44254A: ngx_alloc (ngx_alloc.c:22)
==6991== by 0x4ABA31: ngx_http_coro_coroutine_create (ngx_http_coro_coroutine.c:31)
==6991== by 0x4ACDF1: ngx_http_coro_ffi_redis_connect (ngx_http_coro_hiredis_wrapper.c:223)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4C64DE: ngx_http_lua_access_by_chunk (ngx_http_lua_accessby.c:337)
==6991== by 0x4C6A62: ngx_http_lua_access_handler_inline (ngx_http_lua_accessby.c:185)
==6991== by 0x4C6976: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:158)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x457D37: ngx_http_handler (ngx_http_core_module.c:868)
==6991== by 0x4638D7: ngx_http_process_request (ngx_http_request.c:2120)
==6991== by 0x463F04: ngx_http_process_request_headers (ngx_http_request.c:1498)
==6991== by 0x4642D1: ngx_http_process_request_line (ngx_http_request.c:1165)
==6991== by 0x464481: ngx_http_wait_request_handler (ngx_http_request.c:503)
==6991== by 0x449167: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_coro_coroutine_init
fun:ngx_http_coro_ffi_redis_command
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_co_ctx_resume
fun:ngx_http_lua_access_handler
fun:ngx_http_core_access_phase
fun:ngx_http_core_run_phases
fun:ngx_http_lua_co_ctx_resume_helper
fun:ngx_http_coro_coroutine_resume
fun:ngx_http_coro_connect_done
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
==6991== Invalid write of size 8
==6991== at 0x4AB98D: ngx_http_coro_coroutine_init (ngx_http_coro_coroutine.c:59)
==6991== by 0x4ACF9F: ngx_http_coro_ffi_redis_command (ngx_http_coro_hiredis_wrapper.c:303)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4D5597: ngx_http_lua_co_ctx_resume (ngx_http_lua_api.c:268)
==6991== by 0x4C66DC: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:100)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x4D59E8: ngx_http_lua_co_ctx_resume_helper (ngx_http_lua_api.c:326)
==6991== by 0x4ABCB2: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:146)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Address 0x6812c00 is 1,744 bytes inside a block of size 34,808 free'd
==6991== at 0x4C3610C: free (vg_replace_malloc.c:538)
==6991== by 0x4ABAC1: ngx_http_coro_coroutine_destroy (ngx_http_coro_coroutine.c:70)
==6991== by 0x4ABC8F: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:142)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Block was alloc'd at
==6991== at 0x4C34F0B: malloc (vg_replace_malloc.c:307)
==6991== by 0x44254A: ngx_alloc (ngx_alloc.c:22)
==6991== by 0x4ABA31: ngx_http_coro_coroutine_create (ngx_http_coro_coroutine.c:31)
==6991== by 0x4ACDF1: ngx_http_coro_ffi_redis_connect (ngx_http_coro_hiredis_wrapper.c:223)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4C64DE: ngx_http_lua_access_by_chunk (ngx_http_lua_accessby.c:337)
==6991== by 0x4C6A62: ngx_http_lua_access_handler_inline (ngx_http_lua_accessby.c:185)
==6991== by 0x4C6976: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:158)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x457D37: ngx_http_handler (ngx_http_core_module.c:868)
==6991== by 0x4638D7: ngx_http_process_request (ngx_http_request.c:2120)
==6991== by 0x463F04: ngx_http_process_request_headers (ngx_http_request.c:1498)
==6991== by 0x4642D1: ngx_http_process_request_line (ngx_http_request.c:1165)
==6991== by 0x464481: ngx_http_wait_request_handler (ngx_http_request.c:503)
==6991== by 0x449167: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_coro_coroutine_init
fun:ngx_http_coro_ffi_redis_command
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_co_ctx_resume
fun:ngx_http_lua_access_handler
fun:ngx_http_core_access_phase
fun:ngx_http_core_run_phases
fun:ngx_http_lua_co_ctx_resume_helper
fun:ngx_http_coro_coroutine_resume
fun:ngx_http_coro_connect_done
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
==6991== Invalid write of size 8
==6991== at 0x4AB9F4: ngx_http_coro_coroutine_init (ngx_http_coro_coroutine.c:61)
==6991== by 0x4ACF9F: ngx_http_coro_ffi_redis_command (ngx_http_coro_hiredis_wrapper.c:303)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4D5597: ngx_http_lua_co_ctx_resume (ngx_http_lua_api.c:268)
==6991== by 0x4C66DC: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:100)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x4D59E8: ngx_http_lua_co_ctx_resume_helper (ngx_http_lua_api.c:326)
==6991== by 0x4ABCB2: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:146)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Address 0x6812bf8 is 1,736 bytes inside a block of size 34,808 free'd
==6991== at 0x4C3610C: free (vg_replace_malloc.c:538)
==6991== by 0x4ABAC1: ngx_http_coro_coroutine_destroy (ngx_http_coro_coroutine.c:70)
==6991== by 0x4ABC8F: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:142)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Block was alloc'd at
==6991== at 0x4C34F0B: malloc (vg_replace_malloc.c:307)
==6991== by 0x44254A: ngx_alloc (ngx_alloc.c:22)
==6991== by 0x4ABA31: ngx_http_coro_coroutine_create (ngx_http_coro_coroutine.c:31)
==6991== by 0x4ACDF1: ngx_http_coro_ffi_redis_connect (ngx_http_coro_hiredis_wrapper.c:223)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4C64DE: ngx_http_lua_access_by_chunk (ngx_http_lua_accessby.c:337)
==6991== by 0x4C6A62: ngx_http_lua_access_handler_inline (ngx_http_lua_accessby.c:185)
==6991== by 0x4C6976: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:158)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x457D37: ngx_http_handler (ngx_http_core_module.c:868)
==6991== by 0x4638D7: ngx_http_process_request (ngx_http_request.c:2120)
==6991== by 0x463F04: ngx_http_process_request_headers (ngx_http_request.c:1498)
==6991== by 0x4642D1: ngx_http_process_request_line (ngx_http_request.c:1165)
==6991== by 0x464481: ngx_http_wait_request_handler (ngx_http_request.c:503)
==6991== by 0x449167: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_coro_coroutine_init
fun:ngx_http_coro_ffi_redis_command
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_co_ctx_resume
fun:ngx_http_lua_access_handler
fun:ngx_http_core_access_phase
fun:ngx_http_core_run_phases
fun:ngx_http_lua_co_ctx_resume_helper
fun:ngx_http_coro_coroutine_resume
fun:ngx_http_coro_connect_done
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
==6991== Invalid write of size 8
==6991== at 0x4ACFC2: ngx_http_coro_ffi_redis_command (ngx_http_coro_hiredis_wrapper.c:311)
==6991== by 0x4: ???
==6991== by 0x7: ???
==6991== Address 0x6812c08 is 1,752 bytes inside a block of size 34,808 free'd
==6991== at 0x4C3610C: free (vg_replace_malloc.c:538)
==6991== by 0x4ABAC1: ngx_http_coro_coroutine_destroy (ngx_http_coro_coroutine.c:70)
==6991== by 0x4ABC8F: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:142)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Block was alloc'd at
==6991== at 0x4C34F0B: malloc (vg_replace_malloc.c:307)
==6991== by 0x44254A: ngx_alloc (ngx_alloc.c:22)
==6991== by 0x4ABA31: ngx_http_coro_coroutine_create (ngx_http_coro_coroutine.c:31)
==6991== by 0x4ACDF1: ngx_http_coro_ffi_redis_connect (ngx_http_coro_hiredis_wrapper.c:223)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4C64DE: ngx_http_lua_access_by_chunk (ngx_http_lua_accessby.c:337)
==6991== by 0x4C6A62: ngx_http_lua_access_handler_inline (ngx_http_lua_accessby.c:185)
==6991== by 0x4C6976: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:158)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x457D37: ngx_http_handler (ngx_http_core_module.c:868)
==6991== by 0x4638D7: ngx_http_process_request (ngx_http_request.c:2120)
==6991== by 0x463F04: ngx_http_process_request_headers (ngx_http_request.c:1498)
==6991== by 0x4642D1: ngx_http_process_request_line (ngx_http_request.c:1165)
==6991== by 0x464481: ngx_http_wait_request_handler (ngx_http_request.c:503)
==6991== by 0x449167: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_coro_ffi_redis_command
obj:*
obj:*
}
==6991== Invalid write of size 8
==6991== at 0x4ABACE: ngx_http_coro_coroutine_set_lua_param (ngx_http_coro_coroutine.c:79)
==6991== by 0x4ACFC6: ngx_http_coro_ffi_redis_command (ngx_http_coro_hiredis_wrapper.c:311)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4D5597: ngx_http_lua_co_ctx_resume (ngx_http_lua_api.c:268)
==6991== by 0x4C66DC: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:100)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x4D59E8: ngx_http_lua_co_ctx_resume_helper (ngx_http_lua_api.c:326)
==6991== by 0x4ABCB2: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:146)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Address 0x6812c10 is 1,760 bytes inside a block of size 34,808 free'd
==6991== at 0x4C3610C: free (vg_replace_malloc.c:538)
==6991== by 0x4ABAC1: ngx_http_coro_coroutine_destroy (ngx_http_coro_coroutine.c:70)
==6991== by 0x4ABC8F: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:142)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Block was alloc'd at
==6991== at 0x4C34F0B: malloc (vg_replace_malloc.c:307)
==6991== by 0x44254A: ngx_alloc (ngx_alloc.c:22)
==6991== by 0x4ABA31: ngx_http_coro_coroutine_create (ngx_http_coro_coroutine.c:31)
==6991== by 0x4ACDF1: ngx_http_coro_ffi_redis_connect (ngx_http_coro_hiredis_wrapper.c:223)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4C64DE: ngx_http_lua_access_by_chunk (ngx_http_lua_accessby.c:337)
==6991== by 0x4C6A62: ngx_http_lua_access_handler_inline (ngx_http_lua_accessby.c:185)
==6991== by 0x4C6976: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:158)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x457D37: ngx_http_handler (ngx_http_core_module.c:868)
==6991== by 0x4638D7: ngx_http_process_request (ngx_http_request.c:2120)
==6991== by 0x463F04: ngx_http_process_request_headers (ngx_http_request.c:1498)
==6991== by 0x4642D1: ngx_http_process_request_line (ngx_http_request.c:1165)
==6991== by 0x464481: ngx_http_wait_request_handler (ngx_http_request.c:503)
==6991== by 0x449167: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_coro_coroutine_set_lua_param
fun:ngx_http_coro_ffi_redis_command
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_co_ctx_resume
fun:ngx_http_lua_access_handler
fun:ngx_http_core_access_phase
fun:ngx_http_core_run_phases
fun:ngx_http_lua_co_ctx_resume_helper
fun:ngx_http_coro_coroutine_resume
fun:ngx_http_coro_connect_done
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
==6991== Invalid write of size 8
==6991== at 0x4ACFC7: ngx_http_coro_ffi_redis_command (ngx_http_coro_hiredis_wrapper.c:313)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4D5597: ngx_http_lua_co_ctx_resume (ngx_http_lua_api.c:268)
==6991== by 0x4C66DC: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:100)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x4D59E8: ngx_http_lua_co_ctx_resume_helper (ngx_http_lua_api.c:326)
==6991== by 0x4ABCB2: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:146)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Address 0x6812bd8 is 1,704 bytes inside a block of size 34,808 free'd
==6991== at 0x4C3610C: free (vg_replace_malloc.c:538)
==6991== by 0x4ABAC1: ngx_http_coro_coroutine_destroy (ngx_http_coro_coroutine.c:70)
==6991== by 0x4ABC8F: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:142)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Block was alloc'd at
==6991== at 0x4C34F0B: malloc (vg_replace_malloc.c:307)
==6991== by 0x44254A: ngx_alloc (ngx_alloc.c:22)
==6991== by 0x4ABA31: ngx_http_coro_coroutine_create (ngx_http_coro_coroutine.c:31)
==6991== by 0x4ACDF1: ngx_http_coro_ffi_redis_connect (ngx_http_coro_hiredis_wrapper.c:223)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4C64DE: ngx_http_lua_access_by_chunk (ngx_http_lua_accessby.c:337)
==6991== by 0x4C6A62: ngx_http_lua_access_handler_inline (ngx_http_lua_accessby.c:185)
==6991== by 0x4C6976: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:158)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x457D37: ngx_http_handler (ngx_http_core_module.c:868)
==6991== by 0x4638D7: ngx_http_process_request (ngx_http_request.c:2120)
==6991== by 0x463F04: ngx_http_process_request_headers (ngx_http_request.c:1498)
==6991== by 0x4642D1: ngx_http_process_request_line (ngx_http_request.c:1165)
==6991== by 0x464481: ngx_http_wait_request_handler (ngx_http_request.c:503)
==6991== by 0x449167: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_coro_ffi_redis_command
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_co_ctx_resume
fun:ngx_http_lua_access_handler
fun:ngx_http_core_access_phase
fun:ngx_http_core_run_phases
fun:ngx_http_lua_co_ctx_resume_helper
fun:ngx_http_coro_coroutine_resume
fun:ngx_http_coro_connect_done
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
==6991== Invalid write of size 8
==6991== at 0x4ACFD2: ngx_http_coro_ffi_redis_command (ngx_http_coro_hiredis_wrapper.c:314)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4D5597: ngx_http_lua_co_ctx_resume (ngx_http_lua_api.c:268)
==6991== by 0x4C66DC: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:100)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x4D59E8: ngx_http_lua_co_ctx_resume_helper (ngx_http_lua_api.c:326)
==6991== by 0x4ABCB2: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:146)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Address 0x6812be0 is 1,712 bytes inside a block of size 34,808 free'd
==6991== at 0x4C3610C: free (vg_replace_malloc.c:538)
==6991== by 0x4ABAC1: ngx_http_coro_coroutine_destroy (ngx_http_coro_coroutine.c:70)
==6991== by 0x4ABC8F: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:142)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Block was alloc'd at
==6991== at 0x4C34F0B: malloc (vg_replace_malloc.c:307)
==6991== by 0x44254A: ngx_alloc (ngx_alloc.c:22)
==6991== by 0x4ABA31: ngx_http_coro_coroutine_create (ngx_http_coro_coroutine.c:31)
==6991== by 0x4ACDF1: ngx_http_coro_ffi_redis_connect (ngx_http_coro_hiredis_wrapper.c:223)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4C64DE: ngx_http_lua_access_by_chunk (ngx_http_lua_accessby.c:337)
==6991== by 0x4C6A62: ngx_http_lua_access_handler_inline (ngx_http_lua_accessby.c:185)
==6991== by 0x4C6976: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:158)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x457D37: ngx_http_handler (ngx_http_core_module.c:868)
==6991== by 0x4638D7: ngx_http_process_request (ngx_http_request.c:2120)
==6991== by 0x463F04: ngx_http_process_request_headers (ngx_http_request.c:1498)
==6991== by 0x4642D1: ngx_http_process_request_line (ngx_http_request.c:1165)
==6991== by 0x464481: ngx_http_wait_request_handler (ngx_http_request.c:503)
==6991== by 0x449167: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_coro_ffi_redis_command
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_co_ctx_resume
fun:ngx_http_lua_access_handler
fun:ngx_http_core_access_phase
fun:ngx_http_core_run_phases
fun:ngx_http_lua_co_ctx_resume_helper
fun:ngx_http_coro_coroutine_resume
fun:ngx_http_coro_connect_done
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
==6991== Invalid read of size 4
==6991== at 0x4ABAE3: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:88)
==6991== by 0x4ACFF6: ngx_http_coro_ffi_redis_command (ngx_http_coro_hiredis_wrapper.c:321)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4D5597: ngx_http_lua_co_ctx_resume (ngx_http_lua_api.c:268)
==6991== by 0x4C66DC: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:100)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x4D59E8: ngx_http_lua_co_ctx_resume_helper (ngx_http_lua_api.c:326)
==6991== by 0x4ABCB2: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:146)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Address 0x6812bc0 is 1,680 bytes inside a block of size 34,808 free'd
==6991== at 0x4C3610C: free (vg_replace_malloc.c:538)
==6991== by 0x4ABAC1: ngx_http_coro_coroutine_destroy (ngx_http_coro_coroutine.c:70)
==6991== by 0x4ABC8F: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:142)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991== Block was alloc'd at
==6991== at 0x4C34F0B: malloc (vg_replace_malloc.c:307)
==6991== by 0x44254A: ngx_alloc (ngx_alloc.c:22)
==6991== by 0x4ABA31: ngx_http_coro_coroutine_create (ngx_http_coro_coroutine.c:31)
==6991== by 0x4ACDF1: ngx_http_coro_ffi_redis_connect (ngx_http_coro_hiredis_wrapper.c:223)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4C64DE: ngx_http_lua_access_by_chunk (ngx_http_lua_accessby.c:337)
==6991== by 0x4C6A62: ngx_http_lua_access_handler_inline (ngx_http_lua_accessby.c:185)
==6991== by 0x4C6976: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:158)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x457D37: ngx_http_handler (ngx_http_core_module.c:868)
==6991== by 0x4638D7: ngx_http_process_request (ngx_http_request.c:2120)
==6991== by 0x463F04: ngx_http_process_request_headers (ngx_http_request.c:1498)
==6991== by 0x4642D1: ngx_http_process_request_line (ngx_http_request.c:1165)
==6991== by 0x464481: ngx_http_wait_request_handler (ngx_http_request.c:503)
==6991== by 0x449167: ngx_epoll_process_events (ngx_epoll_module.c:901)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
==6991==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_http_coro_coroutine_resume
fun:ngx_http_coro_ffi_redis_command
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_co_ctx_resume
fun:ngx_http_lua_access_handler
fun:ngx_http_core_access_phase
fun:ngx_http_core_run_phases
fun:ngx_http_lua_co_ctx_resume_helper
fun:ngx_http_coro_coroutine_resume
fun:ngx_http_coro_connect_done
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
valgrind: m_mallocfree.c:305 (get_bszB_as_is): Assertion 'bszB_lo == bszB_hi' failed.
valgrind: Heap block lo/hi size mismatch: lo = 80, hi = 0.
This is probably caused by your program erroneously writing past the
end of a heap block and corrupting heap metadata. If you fix any
invalid writes reported by Memcheck, this assertion failure will
probably go away. Please try that before reporting this as a bug.
host stacktrace:
==6991== at 0x5804960C: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux)
==6991== by 0x58049737: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux)
==6991== by 0x580498DD: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux)
==6991== by 0x58053FE0: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux)
==6991== by 0x5803EEFA: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux)
==6991== by 0x5803DD76: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux)
==6991== by 0x58042FC4: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux)
==6991== by 0x5803D1C3: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux)
==6991== by 0x10038102A0: ???
==6991== by 0x1003172F2F: ???
==6991== by 0x100200845F: ???
==6991== by 0x1003172F17: ???
==6991== by 0x1003172F2F: ???
==6991== by 0x1003172F3F: ???
sched status:
running_tid=1
Thread 1: status = VgTs_Runnable (lwpid 6991)
==6991== at 0x5D45374: getcontext (getcontext.S:38)
==6991== by 0x4ABB41: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:90)
==6991== by 0x4ACFF6: ngx_http_coro_ffi_redis_command (ngx_http_coro_hiredis_wrapper.c:321)
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382)
==6991== by 0x40D1F6A: lj_cf_ffi_meta___call (lib_ffi.c:230)
==6991== by 0x4058B6D: lj_BC_FUNCC (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0)
==6991== by 0x4C17C9: ngx_http_lua_run_thread (ngx_http_lua_util.c:1185)
==6991== by 0x4D5597: ngx_http_lua_co_ctx_resume (ngx_http_lua_api.c:268)
==6991== by 0x4C66DC: ngx_http_lua_access_handler (ngx_http_lua_accessby.c:100)
==6991== by 0x45C6A7: ngx_http_core_access_phase (ngx_http_core_module.c:1110)
==6991== by 0x457C95: ngx_http_core_run_phases (ngx_http_core_module.c:885)
==6991== by 0x4D59E8: ngx_http_lua_co_ctx_resume_helper (ngx_http_lua_api.c:326)
==6991== by 0x4ABCB2: ngx_http_coro_coroutine_resume (ngx_http_coro_coroutine.c:146)
==6991== by 0x4ABFAC: ngx_http_coro_connect_done (ngx_http_coro_socket.c:166)
==6991== by 0x449264: ngx_epoll_process_events (ngx_epoll_module.c:930)
==6991== by 0x43DEF2: ngx_process_events_and_timers (ngx_event.c:257)
==6991== by 0x4481B5: ngx_single_process_cycle (ngx_process_cycle.c:323)
==6991== by 0x41D5FB: main (nginx.c:383)
client stack range: [0x1FFEFF9000 0x1FFF000FFF] client SP: 0x1FFEFFE278
valgrind stack range: [0x1003073000 0x1003172FFF] top usage: 10640 of 1048576
Note: see also the FAQ in the source distribution.
It contains workarounds to several common problems.
In particular, if Valgrind aborted or crashed after
identifying problems in your program, there's a good chance
that fixing those problems will prevent Valgrind aborting or
crashing, especially if it happened in m_mallocfree.c.
If that doesn't help, please report this bug to: www.valgrind.org
In the bug report, send all the above text, the valgrind
version, and what OS and version you are using. Thanks.
# Failed test 't/02-hiredis.t TEST 1: basic. - status code ok'
# at /home/ljl/code/orinc/coro-nginx-module/../test-nginx/lib/Test/Nginx/Socket.pm line 949.
# got: ''
# expected: '200'
# Failed test 't/02-hiredis.t TEST 1: basic. - response_body - response is expected (repeated req 0, req 0)'
# at /home/ljl/code/orinc/coro-nginx-module/../test-nginx/lib/Test/Nginx/Socket.pm line 1665.
# got: ""
# length: 0
# expected: "PONG\x{0a}"
# length: 5
# strings begin to differ at char 1 (line 1 column 1)
WARNING: Child process 6991 is already gone.
2022/01/01 12:24:28 [debug] 6991#0: malloc: 0000000006812530:34808
2022/01/01 12:24:28 [debug] 6991#0: malloc: 000000000681B620:48
2022/01/01 12:24:28 [debug] 6991#0: malloc: 000000000681B6E0:16
2022/01/01 12:24:28 [debug] 6991#0: malloc: 000000000681B730:16
2022/01/01 12:24:28 [debug] 6991#0: malloc: 000000000681B780:15
2022/01/01 12:24:28 [debug] 6991#0: malloc: 000000000681B7D0:16
2022/01/01 12:24:28 [debug] 6991#0: epoll add event: fd:11 op:1 ev:80000004
2022/01/01 12:24:28 [debug] 6991#0: connect to 127.0.0.1, fd:11 #2
2022/01/01 12:24:28 [debug] 6991#0: *1 lua resume returned 1
2022/01/01 12:24:28 [debug] 6991#0: *1 lua thread yielded
2022/01/01 12:24:28 [debug] 6991#0: timer delta: 13
2022/01/01 12:24:28 [debug] 6991#0: worker cycle
2022/01/01 12:24:28 [debug] 6991#0: epoll timer: -1
2022/01/01 12:24:28 [debug] 6991#0: epoll: fd:11 ev:0004 d:00000000068082E8
2022/01/01 12:24:28 [debug] 6991#0: socket connected
2022/01/01 12:24:28 [debug] 6991#0: *1 lua coctx resume handler: "/ping?"
2022/01/01 12:24:28 [debug] 6991#0: *1 access phase: 7
2022/01/01 12:24:28 [debug] 6991#0: *1 lua access handler, uri:"/ping" c:1
2022/01/01 12:24:28 [debug] 6991#0: *1 lua run thread, top:9 c:1
2022/01/01 12:24:28 [debug] 6991#0: *1 malloc: 000000000681B820:32
# Failed test 't/02-hiredis.t TEST 1: basic. - Can't connect to 127.0.0.1:1984: Connection refused (aborted)
# '
# at /home/ljl/code/orinc/coro-nginx-module/../test-nginx/lib/Test/Nginx/Socket.pm line 1974.
# Failed test 't/02-hiredis.t TEST 1: basic. - status code ok'
# at /home/ljl/code/orinc/coro-nginx-module/../test-nginx/lib/Test/Nginx/Socket.pm line 949.
# got: ''
# expected: '200'
# Failed test 't/02-hiredis.t TEST 1: basic. - response_body - response is expected (repeated req 1, req 0)'
# at /home/ljl/code/orinc/coro-nginx-module/../test-nginx/lib/Test/Nginx/Socket.pm line 1665.
# got: ""
# length: 0
# expected: "PONG\x{0a}"
# length: 5
# strings begin to differ at char 1 (line 1 column 1)
t/02-hiredis.t ..
Failed 5/6 subtests
Test Summary Report
-------------------
t/02-hiredis.t (Wstat: 0 Tests: 7 Failed: 6)
Failed tests: 1-2, 4-7
Parse errors: Bad plan. You planned 6 tests but ran 7.
Files=1, Tests=7, 4 wallclock secs ( 0.02 usr 0.00 sys + 2.86 cusr 0.06 csys = 2.94 CPU)
Result: FAIL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment