(This page was automatically generated by the tools in the opsboy project on 06:33:32 03-Feb-2023 GMT.)

Detailed Test Report for lua-resty-core in linux x86_64 (hv)

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
53cbd15e 2023-02-02 09:18:10 GMT 24 93 88 12118 1314 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 2cf51864

OpenSSL

OpenSSL 1.1.1s 1 Nov 2022

Compilation Errors

Unexpected Failures

File Name Details
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid write of size 8
==10717== at 0x52F6A2: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1197)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x8a96e30 is 0 bytes inside a block of size 24 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4273D2: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x467E67: ngx_http_cleanup_add (ngx_http_core_module.c:2646)
==10717== by 0x507734: ngx_http_lua_cleanup_add (ngx_http_lua_util.c:4226)
==10717== by 0x53191F: ngx_http_lua_ffi_pipe_spawn (ngx_http_lua_pipe.c:912)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x527A6FE: lua_pcall (lj_api.c:1145)
==10717== by 0x507680: ngx_http_lua_do_call (ngx_http_lua_util.c:4159)
==10717== by 0x51D3AC: ngx_http_lua_init_worker_by_inline (ngx_http_lua_initworkerby.c:333)
==10717== by 0x51D343: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:298)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid read of size 8
==10717== at 0x52F6B1: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x1FFEFFEBBF: ???
==10717== by 0x7: ???
==10717== Address 0x8663850 is 16 bytes inside a block of size 1,544 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4274F8: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x4274F8: ngx_pcalloc (ngx_palloc.c:215)
==10717== by 0x5074C0: ngx_http_lua_create_fake_request (ngx_http_lua_util.c:4042)
==10717== by 0x51CF55: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:269)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_lua_ffi_pipe_proc_destroy
obj:*
obj:*
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid read of size 8
==10717== at 0x50774D: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4237)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x8a96000 is 448 bytes inside a block of size 504 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4274F8: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x4274F8: ngx_pcalloc (ngx_palloc.c:215)
==10717== by 0x5074F0: ngx_http_lua_create_fake_request (ngx_http_lua_util.c:4078)
==10717== by 0x51CF55: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:269)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid read of size 8
==10717== at 0x50775A: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4242)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x8663cc8 is 1,160 bytes inside a block of size 1,544 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4274F8: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x4274F8: ngx_pcalloc (ngx_palloc.c:215)
==10717== by 0x5074C0: ngx_http_lua_create_fake_request (ngx_http_lua_util.c:4042)
==10717== by 0x51CF55: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:269)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid read of size 8
==10717== at 0x507761: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4252)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x8663d68 is 1,320 bytes inside a block of size 1,544 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4274F8: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x4274F8: ngx_pcalloc (ngx_palloc.c:215)
==10717== by 0x5074C0: ngx_http_lua_create_fake_request (ngx_http_lua_util.c:4042)
==10717== by 0x51CF55: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:269)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid read of size 8
==10717== at 0x507779: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4250)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x8a96e40 is 16 bytes inside a block of size 24 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4273D2: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x467E67: ngx_http_cleanup_add (ngx_http_core_module.c:2646)
==10717== by 0x507734: ngx_http_lua_cleanup_add (ngx_http_lua_util.c:4226)
==10717== by 0x53191F: ngx_http_lua_ffi_pipe_spawn (ngx_http_lua_pipe.c:912)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x527A6FE: lua_pcall (lj_api.c:1145)
==10717== by 0x507680: ngx_http_lua_do_call (ngx_http_lua_util.c:4159)
==10717== by 0x51D3AC: ngx_http_lua_init_worker_by_inline (ngx_http_lua_initworkerby.c:333)
==10717== by 0x51D343: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:298)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid write of size 8
==10717== at 0x50778D: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4254)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x8663d68 is 1,320 bytes inside a block of size 1,544 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4274F8: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x4274F8: ngx_pcalloc (ngx_palloc.c:215)
==10717== by 0x5074C0: ngx_http_lua_create_fake_request (ngx_http_lua_util.c:4042)
==10717== by 0x51CF55: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:269)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid read of size 8
==10717== at 0x507790: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4256)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x854c0b0 is 336 bytes inside a block of size 440 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4273D2: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x51D01A: ngx_http_lua_create_ctx (ngx_http_lua_util.h:293)
==10717== by 0x51D01A: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:287)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid write of size 8
==10717== at 0x507797: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4256)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x8a96e40 is 16 bytes inside a block of size 24 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4273D2: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x467E67: ngx_http_cleanup_add (ngx_http_core_module.c:2646)
==10717== by 0x507734: ngx_http_lua_cleanup_add (ngx_http_lua_util.c:4226)
==10717== by 0x53191F: ngx_http_lua_ffi_pipe_spawn (ngx_http_lua_pipe.c:912)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x527A6FE: lua_pcall (lj_api.c:1145)
==10717== by 0x507680: ngx_http_lua_do_call (ngx_http_lua_util.c:4159)
==10717== by 0x51D3AC: ngx_http_lua_init_worker_by_inline (ngx_http_lua_initworkerby.c:333)
==10717== by 0x51D343: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:298)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid write of size 8
==10717== at 0x50779B: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4257)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x854c0b0 is 336 bytes inside a block of size 440 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4273D2: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x51D01A: ngx_http_lua_create_ctx (ngx_http_lua_util.h:293)
==10717== by 0x51D01A: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:287)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid read of size 8
==10717== at 0x5077A2: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4259)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x8663848 is 8 bytes inside a block of size 1,544 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4274F8: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x4274F8: ngx_pcalloc (ngx_palloc.c:215)
==10717== by 0x5074C0: ngx_http_lua_create_fake_request (ngx_http_lua_util.c:4042)
==10717== by 0x51CF55: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:269)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid read of size 8
==10717== at 0x5077AA: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4259)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x85f4ff0 is 0 bytes inside a block of size 80 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4274F8: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x4274F8: ngx_pcalloc (ngx_palloc.c:215)
==10717== by 0x50744C: ngx_http_lua_create_fake_connection (ngx_http_lua_util.c:4002)
==10717== by 0x51CF35: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:262)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid read of size 8
==10717== at 0x426578: ngx_log_error_core (ngx_log.c:128)
==10717== by 0x5077D5: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4259)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x85f5000 is 16 bytes inside a block of size 80 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4274F8: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x4274F8: ngx_pcalloc (ngx_palloc.c:215)
==10717== by 0x50744C: ngx_http_lua_create_fake_connection (ngx_http_lua_util.c:4002)
==10717== by 0x51CF35: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:262)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_log_error_core
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid read of size 8
==10717== at 0x42669C: ngx_log_error_core (ngx_log.c:171)
==10717== by 0x5077D5: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4259)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x85f4ff0 is 0 bytes inside a block of size 80 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4274F8: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x4274F8: ngx_pcalloc (ngx_palloc.c:215)
==10717== by 0x50744C: ngx_http_lua_create_fake_connection (ngx_http_lua_util.c:4002)
==10717== by 0x51CF35: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:262)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_log_error_core
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid read of size 8
==10717== at 0x4266C0: ngx_log_error_core (ngx_log.c:175)
==10717== by 0x5077D5: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4259)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x85f4ff0 is 0 bytes inside a block of size 80 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4274F8: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x4274F8: ngx_pcalloc (ngx_palloc.c:215)
==10717== by 0x50744C: ngx_http_lua_create_fake_connection (ngx_http_lua_util.c:4002)
==10717== by 0x51CF35: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:262)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_log_error_core
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid read of size 8
==10717== at 0x4266CA: ngx_log_error_core (ngx_log.c:179)
==10717== by 0x5077D5: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4259)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x85f5020 is 48 bytes inside a block of size 80 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4274F8: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x4274F8: ngx_pcalloc (ngx_palloc.c:215)
==10717== by 0x50744C: ngx_http_lua_create_fake_connection (ngx_http_lua_util.c:4002)
==10717== by 0x51CF35: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:262)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_log_error_core
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid read of size 8
==10717== at 0x4266ED: ngx_log_error_core (ngx_log.c:184)
==10717== by 0x5077D5: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4259)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x85f5008 is 24 bytes inside a block of size 80 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4274F8: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x4274F8: ngx_pcalloc (ngx_palloc.c:215)
==10717== by 0x50744C: ngx_http_lua_create_fake_connection (ngx_http_lua_util.c:4002)
==10717== by 0x51CF35: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:262)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_log_error_core
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid read of size 8
==10717== at 0x4266F3: ngx_log_error_core (ngx_log.c:195)
==10717== by 0x5077D5: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4259)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x85f4ff8 is 8 bytes inside a block of size 80 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4274F8: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x4274F8: ngx_pcalloc (ngx_palloc.c:215)
==10717== by 0x50744C: ngx_http_lua_create_fake_connection (ngx_http_lua_util.c:4002)
==10717== by 0x51CF35: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:262)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_log_error_core
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid read of size 8
==10717== at 0x426722: ngx_log_error_core (ngx_log.c:201)
==10717== by 0x5077D5: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4259)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x85f4ff8 is 8 bytes inside a block of size 80 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4274F8: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x4274F8: ngx_pcalloc (ngx_palloc.c:215)
==10717== by 0x50744C: ngx_http_lua_create_fake_connection (ngx_http_lua_util.c:4002)
==10717== by 0x51CF35: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:262)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_log_error_core
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 30: user case with read and wait ==10717== Invalid read of size 8
==10717== at 0x426732: ngx_log_error_core (ngx_log.c:207)
==10717== by 0x5077D5: ngx_http_lua_cleanup_free (ngx_http_lua_util.c:4259)
==10717== by 0x52F6B5: ngx_http_lua_ffi_pipe_proc_destroy (ngx_http_lua_pipe.c:1198)
==10717== by 0x526348C: lj_vm_ffi_call (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x52BEF51: lj_ccall_func (lj_ccall.c:1382)
==10717== by 0x52D7766: lj_cf_ffi_meta___call (lib_ffi.c:230)
==10717== by 0x5260EB3: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526383E: gc_call_finalizer (lj_gc.c:520)
==10717== by 0x5265364: lj_gc_finalize_cdata (lj_gc.c:596)
==10717== by 0x526E5B8: cpfinalize (lj_state.c:272)
==10717== by 0x52612A9: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==10717== by 0x526EA15: lua_close (lj_state.c:299)
==10717== by 0x502830: ngx_http_lua_cleanup_vm (ngx_http_lua_util.c:3960)
==10717== by 0x4272D1: ngx_destroy_pool (ngx_palloc.c:48)
==10717== by 0x44EB5F: ngx_worker_process_exit (ngx_process_cycle.c:1079)
==10717== by 0x44EC00: ngx_worker_process_cycle (ngx_process_cycle.c:787)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Address 0x85f5038 is 72 bytes inside a block of size 80 free'd
==10717== at 0x4C2A0A8: free (vg_replace_malloc.c:538)
==10717== by 0x427337: ngx_destroy_pool (ngx_palloc.c:76)
==10717== by 0x51D34C: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:300)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717== Block was alloc'd at
==10717== at 0x4C28EFB: malloc (vg_replace_malloc.c:307)
==10717== by 0x44A117: ngx_alloc (ngx_alloc.c:22)
==10717== by 0x427134: ngx_malloc (ngx_palloc.c:137)
==10717== by 0x4274F8: ngx_palloc (ngx_palloc.c:120)
==10717== by 0x4274F8: ngx_pcalloc (ngx_palloc.c:215)
==10717== by 0x50744C: ngx_http_lua_create_fake_connection (ngx_http_lua_util.c:4002)
==10717== by 0x51CF35: ngx_http_lua_init_worker (ngx_http_lua_initworkerby.c:262)
==10717== by 0x44E60E: ngx_worker_process_init (ngx_process_cycle.c:977)
==10717== by 0x44EBB7: ngx_worker_process_cycle (ngx_process_cycle.c:778)
==10717== by 0x44D2BC: ngx_spawn_process (ngx_process.c:199)
==10717== by 0x44DE54: ngx_start_worker_processes (ngx_process_cycle.c:382)
==10717== by 0x44FD3D: ngx_master_process_cycle (ngx_process_cycle.c:241)
==10717== by 0x425BEC: main (nginx.c:386)
==10717==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_log_error_core
fun:ngx_http_lua_cleanup_free
fun:ngx_http_lua_ffi_pipe_proc_destroy
fun:lj_vm_ffi_call
fun:lj_ccall_func
fun:lj_cf_ffi_meta___call
fun:lj_BC_FUNCC
fun:gc_call_finalizer
fun:lj_gc_finalize_cdata
fun:cpfinalize
fun:lj_vm_cpcall
fun:lua_close
fun:ngx_http_lua_cleanup_vm
fun:ngx_destroy_pool
fun:ngx_worker_process_exit
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
pipe-stdout.t TEST 10: read process, pattern is read any, with limited, limit larger than read data - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
-hello
+helloworld
-world
+closed
'
process-type-hup.t TEST 1: sanity - pattern "init_worker_by_lua(nginx.conf:48):6: process type: privileged" should match a line in error.log (req 0) Looks like you failed 1 test of 8.
stream/time.t TEST 7: "resty.core.time".monotonic_msec - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
true
-true
+false
'
worker.t TEST 5: ngx.worker.pids - response_body_like - response is expected (worker pid: 4580 worker pids is wrong. worker pid is wrong.) 'worker pid: 4580
worker pids is wrong.
worker pid is wrong.
'
doesn't match '(?^s:worker pid: \d+
worker pid is correct\.
)'

Expected Failures

File Name Details
errlog.t TEST 25: get system default filter level during Nginx starts (init) - pattern "log a warning event" should match a line in error.log (req 0)
errlog.t TEST 25: get system default filter level during Nginx starts (init) - pattern "do not log another warning event" should not match any line in error.log but matches line "2023/02/02 18:31:30 [warn] 4172\#4172: *53 [lua] content_by_lua(nginx.conf:59):7: do not log another warning event, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) '
errlog.t TEST 25: get system default filter level during Nginx starts (init) - pattern "log a warning event" should match a line in error.log (req 1)
errlog.t TEST 25: get system default filter level during Nginx starts (init) - pattern "do not log another warning event" should not match any line in error.log but matches line "2023/02/02 18:31:30 [warn] 4172\#4172: *54 [lua] content_by_lua(nginx.conf:59):7: do not log another warning event, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) '
errlog.t TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#10 log level:6 log body:2023/02/02 18:31:32 [notice] 4114\#4114: start worker processes log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *111 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *112 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *113 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *114 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *115 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *116 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *117 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *118 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *119 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:6
log body:2023/02/02 18:31:32 [notice] 4114#4114: start worker processes
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *111 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *112 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *113 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *114 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *115 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *116 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *117 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *118 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *119 client 127.0.0.1 closed keepalive connection
'
doesn't match '(?^s:\Alog lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#10 log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *120 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *121 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *122 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *123 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *124 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *125 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *126 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *127 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *128 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:33 [info] 4290\#4290: *129 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *120 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *121 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *122 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *123 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *124 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *125 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *126 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *127 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *128 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:33 [info] 4290#4290: *129 client 127.0.0.1 closed keepalive connection
'
doesn't match '(?^s:\Alog lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:10
'
expected: 'log lines:2
'
errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 1, req 0) got: 'log lines:10
'
expected: 'log lines:2
'
errlog.t nginx: [emerg] invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25
errlog.t TEST 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1675362698.773 log body: 2023/02/02 18:31:38 [error] 4454\#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********21, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362698.773 log body: 2023/02/02 18:31:38 [error] 4454\#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********22, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362698.773 log body: 2023/02/02 18:31:38 [error] 4454\#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********23, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362698.773 log body: 2023/02/02 18:31:38 [error] 4454\#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********24, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362698.773 log body: 2023/02/02 18:31:38 [error] 4454\#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********25, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362698.773 log body: 2023/02/02 18:31:38 [error] 4454\#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********26, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362698.773 log body: 2023/02/02 18:31:38 [error] 4454\#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********27, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362698.773 log body: 2023/02/02 18:31:38 [error] 4454\#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********28, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362698.773 log body: 2023/02/02 18:31:38 [error] 4454\#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362698.773 log body: 2023/02/02 18:31:38 [error] 4454\#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") 'log level: 4
log time: 1675362698.773
log body: 2023/02/02 18:31:38 [error] 4454#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********21, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362698.773
log body: 2023/02/02 18:31:38 [error] 4454#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********22, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362698.773
log body: 2023/02/02 18:31:38 [error] 4454#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********23, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362698.773
log body: 2023/02/02 18:31:38 [error] 4454#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********24, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362698.773
log body: 2023/02/02 18:31:38 [error] 4454#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********25, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362698.773
log body: 2023/02/02 18:31:38 [error] 4454#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********26, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362698.773
log body: 2023/02/02 18:31:38 [error] 4454#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********27, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362698.773
log body: 2023/02/02 18:31:38 [error] 4454#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********28, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362698.773
log body: 2023/02/02 18:31:38 [error] 4454#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362698.773
log body: 2023/02/02 18:31:38 [error] 4454#4454: *27 [lua] content_by_lua(nginx.conf:67):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
'
doesn't match '(?^s:log level: 4
log time: \d+(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*39, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: \d{10}(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*40, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost")'
errlog.t TEST 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1675362699.148 log body: 2023/02/02 18:31:39 [error] 4454\#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362699.148 log body: 2023/02/02 18:31:39 [error] 4454\#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362699.148 log body: 2023/02/02 18:31:39 [error] 4454\#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362699.148 log body: 2023/02/02 18:31:39 [error] 4454\#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********32, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362699.148 log body: 2023/02/02 18:31:39 [error] 4454\#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********33, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362699.148 log body: 2023/02/02 18:31:39 [error] 4454\#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********34, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362699.148 log body: 2023/02/02 18:31:39 [error] 4454\#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********35, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362699.148 log body: 2023/02/02 18:31:39 [error] 4454\#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********36, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362699.148 log body: 2023/02/02 18:31:39 [error] 4454\#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********37, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675362699.148 log body: 2023/02/02 18:31:39 [error] 4454\#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********38, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") 'log level: 4
log time: 1675362699.148
log body: 2023/02/02 18:31:39 [error] 4454#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362699.148
log body: 2023/02/02 18:31:39 [error] 4454#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362699.148
log body: 2023/02/02 18:31:39 [error] 4454#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362699.148
log body: 2023/02/02 18:31:39 [error] 4454#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********32, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362699.148
log body: 2023/02/02 18:31:39 [error] 4454#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********33, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362699.148
log body: 2023/02/02 18:31:39 [error] 4454#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********34, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362699.148
log body: 2023/02/02 18:31:39 [error] 4454#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********35, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362699.148
log body: 2023/02/02 18:31:39 [error] 4454#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********36, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362699.148
log body: 2023/02/02 18:31:39 [error] 4454#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********37, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675362699.148
log body: 2023/02/02 18:31:39 [error] 4454#4454: *28 [lua] content_by_lua(nginx.conf:67):8: **********38, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
'
doesn't match '(?^s:log level: 4
log time: \d+(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*39, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: \d{10}(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*40, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost")'
errlog.t TEST 31: ringbuf sentinel bug2 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
log lines: \#18
-log lines: \#8
+log lines: \#10
'
errlog.t TEST 16: check the captured error log body - response_body_like - response is expected (log level:6 log body:2023/02/02 18:31:43 [notice] 4426\#4426: start worker processes log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *163 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *164 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *165 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *166 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *167 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *168 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *169 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *170 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *171 client 127.0.0.1 closed keepalive connection) 'log level:6
log body:2023/02/02 18:31:43 [notice] 4426#4426: start worker processes
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *163 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *164 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *165 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *166 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *167 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *168 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *169 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *170 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *171 client 127.0.0.1 closed keepalive connection
'
doesn't match '(?^s:log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->2, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->3, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
)'
errlog.t TEST 16: check the captured error log body - response_body_like - response is expected (log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *172 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *173 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *174 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *175 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *176 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *177 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *178 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *179 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *180 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:43 [info] 4661\#4661: *181 client 127.0.0.1 closed keepalive connection) 'log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *172 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *173 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *174 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *175 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *176 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *177 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *178 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *179 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *180 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:43 [info] 4661#4661: *181 client 127.0.0.1 closed keepalive connection
'
doesn't match '(?^s:log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->2, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->3, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
)'
errlog.t TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:10
'
expected: 'log lines:3
'
errlog.t TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 1, req 0) got: 'log lines:10
'
expected: 'log lines:3
'
errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:10
'
expected: 'log lines:0
'
errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 1, req 0) got: 'log lines:10
'
expected: 'log lines:0
'
errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected (maybe log lines: \#10 log level:6 log body:2023/02/02 18:31:47 [notice] 4426\#4426: start worker processes log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *293 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *294 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *295 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *296 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *297 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *298 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *299 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *300 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *301 client 127.0.0.1 closed keepalive connection end maybe log lines: \#10 log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *302 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *303 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *304 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *305 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *306 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *307 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *308 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *309 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *310 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *311 client 127.0.0.1 closed keepalive connection end) 'maybe log lines: #10
log level:6
log body:2023/02/02 18:31:47 [notice] 4426#4426: start worker processes
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *293 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *294 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *295 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *296 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *297 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *298 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *299 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *300 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *301 client 127.0.0.1 closed keepalive connection
end
maybe log lines: #10
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *302 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *303 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *304 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *305 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *306 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *307 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *308 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *309 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *310 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *311 client 127.0.0.1 closed keepalive connection
end
'
doesn't match '(?^s:\Amaybe log lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
end
maybe log lines: #1
end
\z)'
errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected (maybe log lines: \#3 log level:7 log body:2023/02/02 18:31:47 [info] 4841\#4841: *312 client 127.0.0.1 closed keepalive connection log level:4 log body:2023/02/02 18:31:47 [error] 4841\#4841: *313 [lua] access_by_lua(nginx.conf:58):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/02 18:31:48 [error] 4841\#4841: *314 [lua] access_by_lua(nginx.conf:58):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" end maybe log lines: \#3 end) 'maybe log lines: #3
log level:7
log body:2023/02/02 18:31:47 [info] 4841#4841: *312 client 127.0.0.1 closed keepalive connection
log level:4
log body:2023/02/02 18:31:47 [error] 4841#4841: *313 [lua] access_by_lua(nginx.conf:58):8: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/02 18:31:48 [error] 4841#4841: *314 [lua] access_by_lua(nginx.conf:58):8: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
end
maybe log lines: #3
end
'
doesn't match '(?^s:\Amaybe log lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
end
maybe log lines: #1
end
\z)'
errlog.t TEST 30: ringbuf sentinel bug1 - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
log lines: \#2
-AAA
+aaa
aaa
'
errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2023/02/02 18:31:52 [warn] 5045\#5045: *470 [lua] access_by_lua(nginx.conf:58):10: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/02 18:31:52 [error] 5045\#5045: *470 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2023/02/02 18:31:52 [warn] 5045\#5045: *470 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 log level:4 log body:2023/02/02 18:31:52 [error] 5045\#5045: *470 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2023/02/02 18:31:52 [warn] 5045\#5045: *470 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/02 18:31:52 [error] 5045\#5045: *470 [lua] access_by_lua(nginx.conf:58):11: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/02 18:31:52 [error] 5045\#5045: *470 [lua] content_by_lua(nginx.conf:72):14: --> 102, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/02 18:31:52 [error] 5045\#5045: *470 [lua] content_by_lua(nginx.conf:72):15: --> 103, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/02 18:31:52 [error] 5045\#5045: *470 [lua] content_by_lua(nginx.conf:72):16: --> 104, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") 'msg count: 3
log level:5
log body:2023/02/02 18:31:52 [warn] 5045#5045: *470 [lua] access_by_lua(nginx.conf:58):10: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/02 18:31:52 [error] 5045#5045: *470 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:2023/02/02 18:31:52 [warn] 5045#5045: *470 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
msg count: 3
log level:4
log body:2023/02/02 18:31:52 [error] 5045#5045: *470 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:2023/02/02 18:31:52 [warn] 5045#5045: *470 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/02 18:31:52 [error] 5045#5045: *470 [lua] access_by_lua(nginx.conf:58):11: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/02 18:31:52 [error] 5045#5045: *470 [lua] content_by_lua(nginx.conf:72):14: --> 102, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/02 18:31:52 [error] 5045#5045: *470 [lua] content_by_lua(nginx.conf:72):15: --> 103, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/02 18:31:52 [error] 5045#5045: *470 [lua] content_by_lua(nginx.conf:72):16: --> 104, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
'
doesn't match '(?^s:\Amsg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t nginx: [emerg] invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25
pipe-stderr.t TEST 7: read stderr, pattern is read any - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
-hello
+helloworld
-world
+closed
'
process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: "process type: worker\x{0a}"
length: 21
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 15 (line 1 column 15)
process-type-single.t TEST 1: sanity - grep_error_log_out (req 0) '[TRACE 1 init_by_lua(nginx.conf:26):18 loop]
[TRACE 2 init_worker_by_lua(nginx.conf:50):4 loop]
[TRACE 2 content_by_lua(nginx.conf:76):4 loop]
process type in init_by_lua*: master
init_worker_by_lua(nginx.conf:50):10: process type: worker
'
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua\(nginx.conf:\d+\):\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua\(nginx.conf:\d+\):\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua\(nginx.conf:\d+\):10: process type: single
)'
process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: "process type: worker\x{0a}"
length: 21
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 15 (line 1 column 15)
process-type-single.t TEST 1: sanity - grep_error_log_out (req 1) '[TRACE 1 init_by_lua(nginx.conf:26):18 loop]
[TRACE 2 init_worker_by_lua(nginx.conf:50):4 loop]
[TRACE 2 content_by_lua(nginx.conf:76):4 loop]
process type in init_by_lua*: master
init_worker_by_lua(nginx.conf:50):10: process type: worker
'
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua\(nginx.conf:\d+\):\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua\(nginx.conf:\d+\):\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua\(nginx.conf:\d+\):10: process type: single
)'
request.t TEST 7: ngx.req.start_time() - response_body - response is expected (repeated req 0, req 0) got: "true\x{0a}>= 0.099: true\x{0a}< 0.11: false\x{0a}"
length: 34
expected: "true\x{0a}>= 0.099: true\x{0a}< 0.11: true\x{0a}"
length: 33
strings begin to differ at char 29 (line 3 column 9)
semaphore.t TEST 27: kill a light thread that is waiting on a semaphore (after post) - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:12 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 1) 2023/02/02 18:40:12 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:12 [debug] 18716\#18716: *141 event timer add: 0: 1000:33808260
2023/02/02 18:40:12 [debug] 18716\#18716: http lua semaphore wait yielding
2023/02/02 18:40:12 [debug] 18716\#18716: *141 lua resume returned 1
2023/02/02 18:40:12 [debug] 18716\#18716: *141 lua thread yielded
2023/02/02 18:40:12 [debug] 18716\#18716: *141 lua run thread returned -2
2023/02/02 18:40:12 [debug] 18716\#18716: worker cycle
2023/02/02 18:40:12 [debug] 18716\#18716: epoll timer: 116
2023/02/02 18:40:12 [debug] 18752\#18752: timer delta: 14
'
semaphore.t TEST 32: semaphore wait time is zero - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:13 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:40:13 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:13 [debug] 18716\#18716: *141 event timer add: 0: 1000:33809260
2023/02/02 18:40:13 [debug] 18716\#18716: http lua semaphore wait yielding
2023/02/02 18:40:13 [debug] 18824\#18824: epoll add event: fd:7 op:1 ev:00002001
2023/02/02 18:40:13 [debug] 18716\#18716: *141 lua resume returned 1
2023/02/02 18:40:13 [debug] 18716\#18716: *141 lua thread yielded
2023/02/02 18:40:13 [debug] 18716\#18716: *141 lua run thread returned -2
2023/02/02 18:40:13 [debug] 18716\#18716: worker cycle
2023/02/02 18:40:13 [debug] 18716\#18716: epoll timer: 1000
'
semaphore.t TEST 19: semaphore wait post in rewrite_by_lua - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:14 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:40:14 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:14 [debug] 18716\#18716: *141 event timer add: 0: 1000:33810261
2023/02/02 18:40:14 [debug] 18716\#18716: http lua semaphore wait yielding
2023/02/02 18:40:14 [debug] 18716\#18716: *141 lua resume returned 1
2023/02/02 18:40:14 [debug] 18716\#18716: *141 lua thread yielded
2023/02/02 18:40:14 [debug] 18716\#18716: *141 lua run thread returned -2
2023/02/02 18:40:14 [debug] 18716\#18716: worker cycle
2023/02/02 18:40:14 [debug] 18716\#18716: epoll timer: 1000
2023/02/02 18:40:14 [debug] 18860\#18860: *246 HTTP/1.1 200 OK
'
semaphore.t TEST 23: semaphore post in set_by_lua - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:15 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:40:15 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer
2023/02/02 18:40:15 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:15 [debug] 18716\#18716: *141 event timer add: 0: 1000:33811262
2023/02/02 18:40:15 [debug] 18716\#18716: http lua semaphore wait yielding
2023/02/02 18:40:15 [debug] 18716\#18716: *141 lua resume returned 1
2023/02/02 18:40:15 [debug] 18716\#18716: *141 lua thread yielded
2023/02/02 18:40:15 [debug] 18716\#18716: *141 lua run thread returned -2
2023/02/02 18:40:15 [debug] 18716\#18716: worker cycle
2023/02/02 18:40:15 [debug] 18716\#18716: epoll timer: 1000
'
semaphore.t TEST 23: semaphore post in set_by_lua - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:15 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer" (req 0) 2023/02/02 18:40:15 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:15 [debug] 18716\#18716: *141 event timer add: 0: 1000:33811262
2023/02/02 18:40:15 [debug] 18716\#18716: http lua semaphore wait yielding
2023/02/02 18:40:15 [debug] 18716\#18716: *141 lua resume returned 1
2023/02/02 18:40:15 [debug] 18716\#18716: *141 lua thread yielded
2023/02/02 18:40:15 [debug] 18716\#18716: *141 lua run thread returned -2
2023/02/02 18:40:15 [debug] 18716\#18716: worker cycle
2023/02/02 18:40:15 [debug] 18716\#18716: epoll timer: 1000
2023/02/02 18:40:15 [debug] 18890\#18890: http lua semaphore post: 000000000A1C89B8, n: 1, resources: 0
'
semaphore.t TEST 39: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:18 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:40:18 [debug] 19034\#19034: *381 malloc: 0000000008E51FC0:80
2023/02/02 18:40:18 [debug] 19034\#19034: *381 malloc: 00000000092D5A50:16
2023/02/02 18:40:18 [debug] 19034\#19034: *381 malloc: 000000000887DA40:1024
2023/02/02 18:40:18 [debug] 19034\#19034: *381 malloc: 00000000092D7AC0:16
2023/02/02 18:40:18 [debug] 19034\#19034: *381 recv: eof:0, avail:-1
2023/02/02 18:40:18 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:18 [debug] 18716\#18716: *141 event timer add: 0: 1000:33814263
2023/02/02 18:40:18 [debug] 19034\#19034: *381 recv: fd:4 77 of 1024
2023/02/02 18:40:18 [debug] 18716\#18716: http lua semaphore wait yielding
'
semaphore.t TEST 1: basic semaphore in uthread - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:20 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:40:20 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:20 [debug] 18716\#18716: *141 event timer add: 0: 1000:33816264
2023/02/02 18:40:20 [debug] 18716\#18716: http lua semaphore wait yielding
2023/02/02 18:40:20 [debug] 18716\#18716: *141 lua resume returned 1
2023/02/02 18:40:20 [debug] 18716\#18716: *141 lua thread yielded
2023/02/02 18:40:20 [debug] 18716\#18716: *141 lua run thread returned -2
2023/02/02 18:40:20 [debug] 18716\#18716: worker cycle
2023/02/02 18:40:20 [debug] 18716\#18716: epoll timer: 1000
2023/02/02 18:40:20 [notice] 18520\#18520: start worker processes
'
semaphore.t TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:21 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:40:21 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer
2023/02/02 18:40:21 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:21 [debug] 18716\#18716: *141 event timer add: 0: 1000:33817264
2023/02/02 18:40:21 [debug] 18716\#18716: http lua semaphore wait yielding
2023/02/02 18:40:21 [debug] 18716\#18716: *141 lua resume returned 1
2023/02/02 18:40:21 [debug] 18716\#18716: *141 lua thread yielded
2023/02/02 18:40:21 [debug] 18716\#18716: *141 lua run thread returned -2
2023/02/02 18:40:21 [debug] 18716\#18716: worker cycle
2023/02/02 18:40:21 [debug] 18716\#18716: epoll timer: 1000
'
semaphore.t TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:21 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer" (req 0) 2023/02/02 18:40:21 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:21 [debug] 18716\#18716: *141 event timer add: 0: 1000:33817264
2023/02/02 18:40:21 [debug] 18716\#18716: http lua semaphore wait yielding
2023/02/02 18:40:21 [debug] 18716\#18716: *141 lua resume returned 1
2023/02/02 18:40:21 [debug] 18716\#18716: *141 lua thread yielded
2023/02/02 18:40:21 [debug] 18716\#18716: *141 lua run thread returned -2
2023/02/02 18:40:21 [debug] 18716\#18716: worker cycle
2023/02/02 18:40:21 [debug] 18716\#18716: epoll timer: 1000
2023/02/02 18:40:21 [debug] 19172\#19172: epoll: fd:6 ev:0001 d:0000000008869290
'
semaphore.t TEST 24: semaphore post in timer.at - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:22 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:40:22 [debug] 19202\#19202: epoll: fd:4 ev:2001 d:00000000084FA0B0
2023/02/02 18:40:22 [debug] 19202\#19202: *518 http keepalive handler
2023/02/02 18:40:22 [debug] 19202\#19202: *518 malloc: 0000000008A4CC90:1024
2023/02/02 18:40:22 [debug] 19202\#19202: *518 malloc: 00000000085E3EC0:16
2023/02/02 18:40:22 [debug] 19202\#19202: *518 recv: eof:1, avail:-1
2023/02/02 18:40:22 [debug] 19202\#19202: *518 recv: fd:4 0 of 1024
2023/02/02 18:40:22 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:22 [info] 19202\#19202: *518 client 127.0.0.1 closed keepalive connection
2023/02/02 18:40:22 [debug] 18716\#18716: *141 event timer add: 0: 1000:33818265
'
semaphore.t TEST 18: semaphore wait post in access_by_lua - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:23 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 1) 2023/02/02 18:40:23 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:23 [debug] 18716\#18716: *141 event timer add: 0: 1000:33819265
2023/02/02 18:40:23 [debug] 18716\#18716: http lua semaphore wait yielding
2023/02/02 18:40:23 [debug] 18716\#18716: *141 lua resume returned 1
2023/02/02 18:40:23 [debug] 18716\#18716: *141 lua thread yielded
2023/02/02 18:40:23 [debug] 18716\#18716: *141 lua run thread returned -2
2023/02/02 18:40:23 [debug] 18716\#18716: worker cycle
'
semaphore.t TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:24 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:40:24 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:24 [debug] 18716\#18716: *141 event timer add: 0: 1000:33820265
2023/02/02 18:40:24 [debug] 18716\#18716: http lua semaphore wait yielding
2023/02/02 18:40:24 [debug] 18716\#18716: *141 lua resume returned 1
2023/02/02 18:40:24 [debug] 18716\#18716: *141 lua thread yielded
2023/02/02 18:40:24 [debug] 18716\#18716: *141 lua run thread returned -2
2023/02/02 18:40:24 [debug] 18716\#18716: worker cycle
2023/02/02 18:40:24 [debug] 18716\#18716: epoll timer: 1000
2023/02/02 18:40:24 [notice] 18520\#18520: start worker processes
'
semaphore.t TEST 15: semaphore in body_filter_by_lua (wait not allowed) - grep_error_log_out (req 0) @@ -1,3 +1,4 @@
+sem: timeout,
sem: 1,
sem: API disabled in the context of body_filter_by_lua*,
sem: 1,
'
semaphore.t TEST 28: kill a thread that is waiting on another thread that is waiting on semaphore - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:27 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:40:27 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer
2023/02/02 18:40:27 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:27 [debug] 18716\#18716: *141 event timer add: 0: 1000:33823266
2023/02/02 18:40:27 [debug] 18716\#18716: http lua semaphore wait yielding
2023/02/02 18:40:27 [debug] 18716\#18716: *141 lua resume returned 1
2023/02/02 18:40:27 [debug] 18716\#18716: *141 lua thread yielded
2023/02/02 18:40:27 [debug] 18716\#18716: *141 lua run thread returned -2
2023/02/02 18:40:27 [debug] 18716\#18716: worker cycle
2023/02/02 18:40:27 [debug] 18716\#18716: epoll timer: 1000
'
semaphore.t TEST 28: kill a thread that is waiting on another thread that is waiting on semaphore - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:27 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer" (req 0) 2023/02/02 18:40:27 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:27 [debug] 18716\#18716: *141 event timer add: 0: 1000:33823266
2023/02/02 18:40:27 [debug] 18716\#18716: http lua semaphore wait yielding
2023/02/02 18:40:27 [debug] 18716\#18716: *141 lua resume returned 1
2023/02/02 18:40:27 [debug] 18716\#18716: *141 lua thread yielded
2023/02/02 18:40:27 [debug] 18716\#18716: *141 lua run thread returned -2
2023/02/02 18:40:27 [debug] 18716\#18716: worker cycle
2023/02/02 18:40:27 [debug] 18716\#18716: epoll timer: 1000
2023/02/02 18:40:27 [debug] 19412\#19412: epoll: fd:6 ev:0001 d:0000000008869290
'
semaphore.t TEST 10: semaphore in rewrite_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
sem: timeout,
+sem: timeout,
sem: 1,
'
semaphore.t TEST 4: basic semaphore in subrequest - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:32 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:40:32 [debug] 19556\#19556: in lua gc, semaphore 000000000A474348
2023/02/02 18:40:32 [debug] 19556\#19556: add to free queue head semaphore: 000000000A474348 epoch: 2mid_epoch: 2 cur_epoch: 3
2023/02/02 18:40:32 [debug] 19556\#19556: in lua gc, semaphore 0000000008D6C248
2023/02/02 18:40:32 [debug] 19556\#19556: add to free queue tail semaphore: 0000000008D6C248 epoch: 1mid_epoch: 2 cur_epoch: 3
2023/02/02 18:40:32 [debug] 19556\#19556: in lua gc, semaphore 000000000A4DA828
2023/02/02 18:40:32 [debug] 19556\#19556: add to free queue head semaphore: 000000000A4DA828 epoch: 2mid_epoch: 2 cur_epoch: 3
2023/02/02 18:40:32 [debug] 19556\#19556: in lua gc, semaphore 000000000A567B88
2023/02/02 18:40:32 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:32 [debug] 19556\#19556: add to free queue head semaphore: 000000000A567B88 epoch: 3mid_epoch: 2 cur_epoch: 3
'
semaphore.t TEST 16: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
sem: timeout,
sem: 1,
+sem: timeout,
'
semaphore.t TEST 8: semaphore in init_worker_by_lua (new and post) - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:36 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:40:36 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:36 [debug] 18716\#18716: *141 event timer add: 0: 1000:33832275
2023/02/02 18:40:36 [debug] 18716\#18716: http lua semaphore wait yielding
2023/02/02 18:40:36 [debug] 18716\#18716: *141 lua resume returned 1
2023/02/02 18:40:36 [debug] 18716\#18716: *141 lua thread yielded
2023/02/02 18:40:36 [debug] 18716\#18716: *141 lua run thread returned -2
2023/02/02 18:40:36 [debug] 18716\#18716: worker cycle
2023/02/02 18:40:36 [debug] 18716\#18716: epoll timer: 1000
2023/02/02 18:40:36 [debug] 19706\#19706: *895 code cache miss (key='content_by_lua_nhli_26d2afbc6601a4431a4b444ac17dab52', ref=-1)
'
semaphore.t TEST 26: kill a light thread that is waiting on a semaphore (no resource) - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:38 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:40:38 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:38 [debug] 18716\#18716: *141 event timer add: 0: 1000:33834275
2023/02/02 18:40:38 [debug] 18716\#18716: http lua semaphore wait yielding
2023/02/02 18:40:38 [debug] 18716\#18716: *141 lua resume returned 1
2023/02/02 18:40:38 [debug] 18716\#18716: *141 lua thread yielded
2023/02/02 18:40:38 [debug] 18716\#18716: *141 lua run thread returned -2
2023/02/02 18:40:38 [debug] 18716\#18716: worker cycle
2023/02/02 18:40:38 [debug] 18716\#18716: epoll timer: 1000
2023/02/02 18:40:38 [debug] 19778\#19778: epoll: fd:6 ev:0001 d:000000000A052AF0
'
semaphore.t TEST 21: semaphore post in header_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:39 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:40:39 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer
2023/02/02 18:40:39 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:39 [debug] 18716\#18716: *141 event timer add: 0: 1000:33835275
2023/02/02 18:40:39 [debug] 18716\#18716: http lua semaphore wait yielding
2023/02/02 18:40:39 [debug] 18716\#18716: *141 lua resume returned 1
2023/02/02 18:40:39 [debug] 18716\#18716: *141 lua thread yielded
2023/02/02 18:40:39 [debug] 18716\#18716: *141 lua run thread returned -2
2023/02/02 18:40:39 [debug] 19844\#19844: *981 event timer del: 4: 33902215
2023/02/02 18:40:39 [debug] 18716\#18716: worker cycle
'
semaphore.t TEST 21: semaphore post in header_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:40:39 [error] 18716\#18716: *141 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer" (req 0) 2023/02/02 18:40:39 [debug] 18716\#18716: http lua semaphore wait: 0000000009FB3358, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:40:39 [debug] 18716\#18716: *141 event timer add: 0: 1000:33835275
2023/02/02 18:40:39 [debug] 18716\#18716: http lua semaphore wait yielding
2023/02/02 18:40:39 [debug] 18716\#18716: *141 lua resume returned 1
2023/02/02 18:40:39 [debug] 18716\#18716: *141 lua thread yielded
2023/02/02 18:40:39 [debug] 18716\#18716: *141 lua run thread returned -2
2023/02/02 18:40:39 [debug] 19844\#19844: *981 event timer del: 4: 33902215
2023/02/02 18:40:39 [debug] 18716\#18716: worker cycle
2023/02/02 18:40:39 [debug] 18716\#18716: epoll timer: 1000
'
semaphore.t TEST 9: semaphore in set_by_lua (wait is not allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
sem: 1,
sem: API disabled in the context of set_by_lua*,
+sem: timeout,
'
shared.t TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to get ttl: not found
'
shared.t TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to get ttl: not found
'
stream/errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected (msg count: 3 log level:4 log body:2023/02/02 18:45:05 [error] 26396\#26396: *123 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/02 18:45:05 [warn] 26396\#26396: *123 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:05 [error] 26396\#26396: *123 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2023/02/02 18:45:05 [error] 26396\#26396: *123 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/02 18:45:05 [warn] 26396\#26396: *123 stream [lua] content_by_lua(nginx.conf:93):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:05 [error] 26396\#26396: *123 stream [lua] content_by_lua(nginx.conf:93):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:05 [error] 26396\#26396: *123 stream [lua] content_by_lua(nginx.conf:93):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:05 [error] 26396\#26396: *123 stream [lua] content_by_lua(nginx.conf:93):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:05 [error] 26396\#26396: *123 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985) 'msg count: 3
log level:4
log body:2023/02/02 18:45:05 [error] 26396#26396: *123 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/02 18:45:05 [warn] 26396#26396: *123 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:05 [error] 26396#26396: *123 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:4
log body:2023/02/02 18:45:05 [error] 26396#26396: *123 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/02 18:45:05 [warn] 26396#26396: *123 stream [lua] content_by_lua(nginx.conf:93):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:05 [error] 26396#26396: *123 stream [lua] content_by_lua(nginx.conf:93):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:05 [error] 26396#26396: *123 stream [lua] content_by_lua(nginx.conf:93):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:05 [error] 26396#26396: *123 stream [lua] content_by_lua(nginx.conf:93):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:05 [error] 26396#26396: *123 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\Amsg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+
|msg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected (msg count: 3 log level:4 log body:2023/02/02 18:45:06 [error] 26396\#26396: *126 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/02 18:45:06 [warn] 26396\#26396: *126 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:06 [error] 26396\#26396: *126 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2023/02/02 18:45:06 [error] 26396\#26396: *126 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/02 18:45:06 [warn] 26396\#26396: *126 stream [lua] content_by_lua(nginx.conf:93):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:06 [error] 26396\#26396: *126 stream [lua] content_by_lua(nginx.conf:93):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:06 [error] 26396\#26396: *126 stream [lua] content_by_lua(nginx.conf:93):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:06 [error] 26396\#26396: *126 stream [lua] content_by_lua(nginx.conf:93):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:06 [error] 26396\#26396: *126 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985) 'msg count: 3
log level:4
log body:2023/02/02 18:45:06 [error] 26396#26396: *126 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/02 18:45:06 [warn] 26396#26396: *126 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:06 [error] 26396#26396: *126 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:4
log body:2023/02/02 18:45:06 [error] 26396#26396: *126 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/02 18:45:06 [warn] 26396#26396: *126 stream [lua] content_by_lua(nginx.conf:93):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:06 [error] 26396#26396: *126 stream [lua] content_by_lua(nginx.conf:93):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:06 [error] 26396#26396: *126 stream [lua] content_by_lua(nginx.conf:93):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:06 [error] 26396#26396: *126 stream [lua] content_by_lua(nginx.conf:93):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:06 [error] 26396#26396: *126 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\Amsg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+
|msg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:3
'
expected: 'log lines:2
'
stream/errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected (maybe log lines: \#2 log level:6 log body:2023/02/02 18:45:06 [notice] 26272\#26272: start worker processes log level:4 log body:2023/02/02 18:45:07 [error] 26468\#26468: *183 stream [lua] content_by_lua(nginx.conf:75):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985 end maybe log lines: \#2 end) 'maybe log lines: #2
log level:6
log body:2023/02/02 18:45:06 [notice] 26272#26272: start worker processes
log level:4
log body:2023/02/02 18:45:07 [error] 26468#26468: *183 stream [lua] content_by_lua(nginx.conf:75):8: -->
new line, client: 127.0.0.1, server: 0.0.0.0:1985
end
maybe log lines: #2
end
'
doesn't match '(?^s:\Amaybe log lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: 0.0.0.0:\d+
end
maybe log lines: #1
end
\z)'
stream/errlog.t TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#2 log level:6 log body:2023/02/02 18:45:10 [notice] 26272\#26272: start worker processes log level:4 log body:2023/02/02 18:45:11 [error] 26645\#26645: *333 stream [lua] content_by_lua(nginx.conf:67):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #2
log level:6
log body:2023/02/02 18:45:10 [notice] 26272#26272: start worker processes
log level:4
log body:2023/02/02 18:45:11 [error] 26645#26645: *333 stream [lua] content_by_lua(nginx.conf:67):8: -->
new line, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\Alog lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t nginx: [emerg] invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17
stream/errlog.t TEST 17: flood the capturing buffer (4k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2023/02/02 18:45:13 [error] 26685\#26685: *3 stream [lua] content_by_lua(nginx.conf:78):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/02 18:45:13 [warn] 26685\#26685: *3 stream [lua] content_by_lua(nginx.conf:78):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:13 [error] 26685\#26685: *3 stream [lua] content_by_lua(nginx.conf:78):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:13 [error] 26685\#26685: *3 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/02 18:45:13 [warn] 26685\#26685: *3 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:13 [error] 26685\#26685: *3 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #25
log level:4
log body:2023/02/02 18:45:13 [error] 26685#26685: *3 stream [lua] content_by_lua(nginx.conf:78):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/02 18:45:13 [warn] 26685#26685: *3 stream [lua] content_by_lua(nginx.conf:78):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:13 [error] 26685#26685: *3 stream [lua] content_by_lua(nginx.conf:78):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:13 [error] 26685#26685: *3 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/02 18:45:13 [warn] 26685#26685: *3 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:13 [error] 26685#26685: *3 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\A(?:log lines: #26
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
)\z)'
stream/errlog.t TEST 17: flood the capturing buffer (4k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2023/02/02 18:45:14 [error] 26685\#26685: *6 stream [lua] content_by_lua(nginx.conf:78):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/02 18:45:14 [warn] 26685\#26685: *6 stream [lua] content_by_lua(nginx.conf:78):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:14 [error] 26685\#26685: *6 stream [lua] content_by_lua(nginx.conf:78):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:14 [error] 26685\#26685: *6 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/02 18:45:14 [warn] 26685\#26685: *6 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:14 [error] 26685\#26685: *6 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #25
log level:4
log body:2023/02/02 18:45:14 [error] 26685#26685: *6 stream [lua] content_by_lua(nginx.conf:78):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/02 18:45:14 [warn] 26685#26685: *6 stream [lua] content_by_lua(nginx.conf:78):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:14 [error] 26685#26685: *6 stream [lua] content_by_lua(nginx.conf:78):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:14 [error] 26685#26685: *6 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/02 18:45:14 [warn] 26685#26685: *6 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:14 [error] 26685#26685: *6 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\A(?:log lines: #26
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
)\z)'
stream/errlog.t TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:4
'
expected: 'log lines:3
'
stream/errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:1
'
expected: 'log lines:0
'
stream/errlog.t TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#31 log level:4 log body:2023/02/02 18:45:21 [error] 26983\#26983: *273 stream [lua] content_by_lua(nginx.conf:78):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/02 18:45:21 [warn] 26983\#26983: *273 stream [lua] content_by_lua(nginx.conf:78):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:21 [error] 26983\#26983: *273 stream [lua] content_by_lua(nginx.conf:78):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:21 [error] 26983\#26983: *273 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/02 18:45:21 [warn] 26983\#26983: *273 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:21 [error] 26983\#26983: *273 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #31
log level:4
log body:2023/02/02 18:45:21 [error] 26983#26983: *273 stream [lua] content_by_lua(nginx.conf:78):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/02 18:45:21 [warn] 26983#26983: *273 stream [lua] content_by_lua(nginx.conf:78):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:21 [error] 26983#26983: *273 stream [lua] content_by_lua(nginx.conf:78):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:21 [error] 26983#26983: *273 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/02 18:45:21 [warn] 26983#26983: *273 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:21 [error] 26983#26983: *273 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\A(?:log lines: #33
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
)\z)'
stream/errlog.t TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#31 log level:4 log body:2023/02/02 18:45:21 [error] 26983\#26983: *276 stream [lua] content_by_lua(nginx.conf:78):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/02 18:45:21 [warn] 26983\#26983: *276 stream [lua] content_by_lua(nginx.conf:78):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:21 [error] 26983\#26983: *276 stream [lua] content_by_lua(nginx.conf:78):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:21 [error] 26983\#26983: *276 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/02 18:45:21 [warn] 26983\#26983: *276 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:21 [error] 26983\#26983: *276 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #31
log level:4
log body:2023/02/02 18:45:21 [error] 26983#26983: *276 stream [lua] content_by_lua(nginx.conf:78):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/02 18:45:21 [warn] 26983#26983: *276 stream [lua] content_by_lua(nginx.conf:78):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:21 [error] 26983#26983: *276 stream [lua] content_by_lua(nginx.conf:78):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:21 [error] 26983#26983: *276 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/02 18:45:21 [warn] 26983#26983: *276 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:21 [error] 26983#26983: *276 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\A(?:log lines: #33
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
)\z)'
stream/errlog.t nginx: [emerg] invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17
stream/errlog.t TEST 3: client connected info - grep_error_log_out (req 0) 'client 127.0.0.1:45986 connected to
capture log line:2
'
doesn't match '(?^:^client .*? connected to .*?
capture log line:1
$)'
stream/errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2023/02/02 18:45:27 [warn] 27147\#27147: *63 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:27 [error] 27147\#27147: *63 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/02 18:45:27 [warn] 27147\#27147: *63 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2023/02/02 18:45:27 [error] 27147\#27147: *63 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/02 18:45:27 [warn] 27147\#27147: *63 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:27 [error] 27147\#27147: *63 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:27 [error] 27147\#27147: *63 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:27 [error] 27147\#27147: *63 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:27 [error] 27147\#27147: *63 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) 'msg count: 3
log level:5
log body:2023/02/02 18:45:27 [warn] 27147#27147: *63 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:27 [error] 27147#27147: *63 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/02 18:45:27 [warn] 27147#27147: *63 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:4
log body:2023/02/02 18:45:27 [error] 27147#27147: *63 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/02 18:45:27 [warn] 27147#27147: *63 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:27 [error] 27147#27147: *63 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:27 [error] 27147#27147: *63 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:27 [error] 27147#27147: *63 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:27 [error] 27147#27147: *63 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\Amsg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2023/02/02 18:45:27 [warn] 27147\#27147: *66 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:27 [error] 27147\#27147: *66 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/02 18:45:27 [warn] 27147\#27147: *66 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2023/02/02 18:45:27 [error] 27147\#27147: *66 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/02 18:45:27 [warn] 27147\#27147: *66 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:27 [error] 27147\#27147: *66 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:27 [error] 27147\#27147: *66 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:27 [error] 27147\#27147: *66 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/02 18:45:27 [error] 27147\#27147: *66 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) 'msg count: 3
log level:5
log body:2023/02/02 18:45:27 [warn] 27147#27147: *66 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:27 [error] 27147#27147: *66 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/02 18:45:27 [warn] 27147#27147: *66 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:4
log body:2023/02/02 18:45:27 [error] 27147#27147: *66 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/02 18:45:27 [warn] 27147#27147: *66 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:27 [error] 27147#27147: *66 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:27 [error] 27147#27147: *66 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:27 [error] 27147#27147: *66 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/02 18:45:27 [error] 27147#27147: *66 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\Amsg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/process-type-hup.t TEST 1: sanity - pattern "init_worker_by_lua:6: process type: privileged" should match a line in error.log (req 0) Looks like you failed 1 test of 8.
stream/process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: "process type: worker\x{0a}"
length: 21
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 15 (line 1 column 15)
stream/process-type-single.t TEST 1: sanity - grep_error_log_out (req 0) '[TRACE 1 init_by_lua:31 loop]
[TRACE 2 init_worker_by_lua:4 loop]
[TRACE 2 content_by_lua(nginx.conf:78):4 loop]
process type in init_by_lua*: master
init_worker_by_lua:10: process type: worker
'
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua:10: process type: single
)'
stream/process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: "process type: worker\x{0a}"
length: 21
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 15 (line 1 column 15)
stream/process-type-single.t TEST 1: sanity - grep_error_log_out (req 1) '[TRACE 1 init_by_lua:31 loop]
[TRACE 2 init_worker_by_lua:4 loop]
[TRACE 2 content_by_lua(nginx.conf:78):4 loop]
process type in init_by_lua*: master
init_worker_by_lua:10: process type: worker
'
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua:10: process type: single
)'
stream/request.t TEST 1: ngx.req.start_time() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
true
>= 0.099: true
-< 0.11: true
+< 0.11: false
'
Looks like you failed 1 test of 12.
stream/semaphore.t TEST 10: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
sem: 1 while returning text,
sem: API disabled in the context of log_by_lua* while returning text,
+sem: timeout,
'
stream/semaphore.t TEST 21: multi wait and mult post with one semaphore - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:48:20 [error] 31687\#31687: *252 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:48:20 [debug] 31687\#31687: stream lua semaphore wait: 000000000995E0D8, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:48:20 [debug] 31687\#31687: *252 event timer add: 0: 1000:34296065
2023/02/02 18:48:20 [debug] 31687\#31687: stream lua semaphore wait yielding
2023/02/02 18:48:20 [debug] 31687\#31687: *252 lua resume returned 1
2023/02/02 18:48:20 [debug] 31687\#31687: *252 lua thread yielded
2023/02/02 18:48:20 [debug] 31687\#31687: *252 lua run thread returned -2
2023/02/02 18:48:20 [debug] 31687\#31687: worker cycle
2023/02/02 18:48:20 [debug] 31687\#31687: epoll timer: 1000
2023/02/02 18:48:20 [debug] 31765\#31765: epoll: fd:7 ev:0001 d:0000000008654BE0
'
stream/semaphore.t TEST 30: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:48:23 [error] 31687\#31687: *252 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2023/02/02 18:48:23 [debug] 31687\#31687: stream lua semaphore wait: 000000000995E0D8, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:48:23 [debug] 31687\#31687: *252 event timer add: 0: 1000:34299067
2023/02/02 18:48:23 [debug] 31687\#31687: stream lua semaphore wait yielding
2023/02/02 18:48:23 [debug] 31687\#31687: *252 lua resume returned 1
2023/02/02 18:48:23 [debug] 31687\#31687: *252 lua thread yielded
2023/02/02 18:48:23 [debug] 31687\#31687: *252 lua run thread returned -2
2023/02/02 18:48:23 [debug] 31687\#31687: worker cycle
'
stream/semaphore.t TEST 11: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,4 @@
sem: timeout,
+sem: 3 times,
+sem: timeout,
sem: 1,
'
stream/semaphore.t TEST 11: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 1) @@ -1,2 +1,3 @@
sem: timeout,
sem: 1,
+sem: timeout,
'
stream/semaphore.t TEST 17: kill a light thread that is waiting on a semaphore (after post) - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:48:26 [error] 31687\#31687: *252 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2023/02/02 18:48:26 [debug] 31951\#31951: *490 lua reset ctx
2023/02/02 18:48:26 [debug] 31951\#31951: *490 http lua finalize threads
2023/02/02 18:48:26 [debug] 31951\#31951: *490 lua creating new thread
2023/02/02 18:48:26 [debug] 31687\#31687: stream lua semaphore wait: 000000000995E0D8, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:48:26 [debug] 31687\#31687: *252 event timer add: 0: 1000:34302070
2023/02/02 18:48:26 [debug] 31687\#31687: stream lua semaphore wait yielding
2023/02/02 18:48:26 [debug] 31687\#31687: *252 lua resume returned 1
2023/02/02 18:48:26 [debug] 31687\#31687: *252 lua thread yielded
2023/02/02 18:48:26 [debug] 31687\#31687: *252 lua run thread returned -2
'
stream/semaphore.t TEST 29: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:48:27 [error] 31687\#31687: *252 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:48:27 [error] 31687\#31687: *252 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer
2023/02/02 18:48:27 [debug] 31687\#31687: stream lua semaphore wait: 000000000995E0D8, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:48:27 [debug] 31687\#31687: *252 event timer add: 0: 1000:34303071
2023/02/02 18:48:27 [debug] 31687\#31687: stream lua semaphore wait yielding
2023/02/02 18:48:27 [debug] 31687\#31687: *252 lua resume returned 1
2023/02/02 18:48:27 [debug] 31687\#31687: *252 lua thread yielded
2023/02/02 18:48:27 [debug] 31687\#31687: *252 lua run thread returned -2
2023/02/02 18:48:27 [debug] 31687\#31687: worker cycle
2023/02/02 18:48:27 [debug] 31687\#31687: epoll timer: 1000
'
stream/semaphore.t TEST 29: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:48:27 [error] 31687\#31687: *252 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) 2023/02/02 18:48:27 [debug] 31687\#31687: stream lua semaphore wait: 000000000995E0D8, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:48:27 [debug] 31687\#31687: *252 event timer add: 0: 1000:34303071
2023/02/02 18:48:27 [debug] 31687\#31687: stream lua semaphore wait yielding
2023/02/02 18:48:27 [debug] 31687\#31687: *252 lua resume returned 1
2023/02/02 18:48:27 [debug] 31687\#31687: *252 lua thread yielded
2023/02/02 18:48:27 [debug] 31687\#31687: *252 lua run thread returned -2
2023/02/02 18:48:27 [debug] 31687\#31687: worker cycle
2023/02/02 18:48:27 [debug] 31687\#31687: epoll timer: 1000
2023/02/02 18:48:27 [debug] 31981\#31981: epoll: fd:7 ev:0001 d:0000000008654BE0
'
stream/semaphore.t TEST 9: semaphore in content_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
sem: timeout,
+sem: timeout,
sem: 1,
'
stream/semaphore.t TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:48:31 [error] 31687\#31687: *252 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:48:31 [debug] 31687\#31687: stream lua semaphore wait: 000000000995E0D8, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:48:31 [debug] 31687\#31687: *252 event timer add: 0: 1000:34307072
2023/02/02 18:48:31 [debug] 31687\#31687: stream lua semaphore wait yielding
2023/02/02 18:48:31 [debug] 31687\#31687: *252 lua resume returned 1
2023/02/02 18:48:31 [debug] 31687\#31687: *252 lua thread yielded
2023/02/02 18:48:31 [debug] 31687\#31687: *252 lua run thread returned -2
2023/02/02 18:48:31 [debug] 31687\#31687: worker cycle
2023/02/02 18:48:31 [debug] 31687\#31687: epoll timer: 1000
2023/02/02 18:48:31 [debug] 32161\#32161: epoll: fd:7 ev:0001 d:0000000009842D50
'
stream/semaphore.t TEST 18: kill a thread that is waiting on another thread that is waiting on semaphore - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:48:33 [error] 31687\#31687: *252 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2023/02/02 18:48:33 [error] 31687\#31687: *252 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer
2023/02/02 18:48:33 [debug] 31687\#31687: stream lua semaphore wait: 000000000995E0D8, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:48:33 [debug] 31687\#31687: *252 event timer add: 0: 1000:34309074
2023/02/02 18:48:33 [debug] 31687\#31687: stream lua semaphore wait yielding
2023/02/02 18:48:33 [debug] 31687\#31687: *252 lua resume returned 1
2023/02/02 18:48:33 [debug] 31687\#31687: *252 lua thread yielded
2023/02/02 18:48:33 [debug] 31687\#31687: *252 lua run thread returned -2
2023/02/02 18:48:33 [debug] 31687\#31687: worker cycle
2023/02/02 18:48:33 [debug] 31687\#31687: epoll timer: 1000
'
stream/semaphore.t TEST 18: kill a thread that is waiting on another thread that is waiting on semaphore - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:48:33 [error] 31687\#31687: *252 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 1) 2023/02/02 18:48:33 [debug] 31687\#31687: stream lua semaphore wait: 000000000995E0D8, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:48:33 [debug] 31687\#31687: *252 event timer add: 0: 1000:34309074
2023/02/02 18:48:33 [debug] 31687\#31687: stream lua semaphore wait yielding
2023/02/02 18:48:33 [debug] 31687\#31687: *252 lua resume returned 1
2023/02/02 18:48:33 [debug] 31687\#31687: *252 lua thread yielded
2023/02/02 18:48:33 [debug] 31687\#31687: *252 lua run thread returned -2
2023/02/02 18:48:33 [debug] 31687\#31687: worker cycle
2023/02/02 18:48:33 [debug] 31687\#31687: epoll timer: 1000
2023/02/02 18:48:33 [debug] 32227\#32227: timer delta: 89
'
stream/semaphore.t TEST 7: semaphore in init_worker_by_lua (new and post) - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:48:35 [error] 31687\#31687: *252 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:48:35 [debug] 32263\#32263: in lua gc, semaphore 00000000088B2AE8
2023/02/02 18:48:35 [debug] 32263\#32263: add to free queue tail semaphore: 00000000088B2AE8 epoch: 1mid_epoch: 2 cur_epoch: 3
2023/02/02 18:48:35 [debug] 32263\#32263: in lua gc, semaphore 0000000009321328
2023/02/02 18:48:35 [debug] 32263\#32263: add to free queue head semaphore: 0000000009321328 epoch: 3mid_epoch: 2 cur_epoch: 3
2023/02/02 18:48:35 [debug] 32263\#32263: in lua gc, semaphore 0000000009321178
2023/02/02 18:48:35 [debug] 32263\#32263: add to free queue head semaphore: 0000000009321178 epoch: 3mid_epoch: 2 cur_epoch: 3
2023/02/02 18:48:35 [debug] 31687\#31687: stream lua semaphore wait: 000000000995E0D8, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:48:35 [debug] 31687\#31687: *252 event timer add: 0: 1000:34311075
2023/02/02 18:48:35 [debug] 32263\#32263: in lua gc, semaphore 0000000009330748
'
stream/semaphore.t TEST 22: semaphore wait time is zero - pattern "[error]" should not match any line in error.log but matches line "2023/02/02 18:48:37 [error] 31687\#31687: *252 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2023/02/02 18:48:37 [debug] 31687\#31687: stream lua semaphore wait: 000000000995E0D8, timeout: 1000, resources: 0, event posted: 0
2023/02/02 18:48:37 [debug] 31687\#31687: *252 event timer add: 0: 1000:34313076
2023/02/02 18:48:37 [debug] 31687\#31687: stream lua semaphore wait yielding
2023/02/02 18:48:37 [debug] 31687\#31687: *252 lua resume returned 1
2023/02/02 18:48:37 [debug] 31687\#31687: *252 lua thread yielded
2023/02/02 18:48:37 [debug] 31687\#31687: *252 lua run thread returned -2
2023/02/02 18:48:37 [debug] 31687\#31687: worker cycle
2023/02/02 18:48:37 [debug] 31687\#31687: epoll timer: 1000
2023/02/02 18:48:37 [debug] 32377\#32377: *837 http copy filter: 0 "/ver?"
'
stream/semaphore.t TEST 8: semaphore in preread_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
+sem: timeout,
sem: timeout while prereading client data,
sem: 1 while prereading client data,
'
stream/time.t TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
true
>= 0.099: true
-< 0.11: true
+< 0.11: false
'
time.t TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
true
>= 0.099: true
-< 0.11: true
+< 0.11: false
'

Warnings

Go back to the index page.